g4tools
5.4.0
g4tools
tools
sg
get_matrix_action
Go to the documentation of this file.
1
// Copyright (C) 2010, Guy Barrand. All rights reserved.
2
// See the file tools.license for terms.
3
4
#ifndef tools_sg_get_matrix_action
5
#define tools_sg_get_matrix_action
6
7
#include "
matrix_action
"
8
9
namespace
tools
{
10
namespace
sg {
11
class
node;
12
}}
13
14
namespace
tools
{
15
namespace
sg {
16
17
class
get_matrix_action
:
public
matrix_action
{
18
TOOLS_ACTION
(
get_matrix_action
,
tools::sg::get_matrix_action
,
matrix_action
)
19
public
:
20
get_matrix_action
(std::ostream& a_out,
unsigned
int
a_ww,
unsigned
int
a_wh)
21
:
matrix_action
(a_out,a_ww,a_wh)
22
,
m_node
(0)
//not owner
23
,
m_done
(false)
24
{}
25
virtual
~get_matrix_action
(){}
26
public
:
27
get_matrix_action
(
const
get_matrix_action
& a_from)
28
:
matrix_action
(a_from)
29
,
m_node
(a_from.
m_node
)
30
,
m_done
(false)
31
{}
32
get_matrix_action
&
operator=
(
const
get_matrix_action
& a_from){
33
matrix_action::operator=
(a_from);
34
m_node
= a_from.
m_node
;
35
reset
();
36
return
*
this
;
37
}
38
public
:
39
void
reset
() {
40
m_found_model
.set_zero();
41
m_done
=
false
;
42
}
43
44
void
set_found_model
(
const
mat4f
& a_m) {
m_found_model
= a_m;}
45
const
mat4f
&
found_model
()
const
{
return
m_found_model
;}
46
47
void
set_done
(
bool
a_value) {
m_done
= a_value;}
48
bool
done
()
const
{
return
m_done
;}
49
50
void
set_node
(
sg::node
* a_v) {
m_node
= a_v;}
51
sg::node
*
node
()
const
{
return
m_node
;}
52
53
protected
:
54
sg::node
*
m_node
;
//not owner.
55
bool
m_done
;
56
mat4f
m_found_model
;
57
};
58
59
}}
60
61
#endif
tools::sg::get_matrix_action::set_node
void set_node(sg::node *a_v)
Definition:
get_matrix_action:50
tools::sg::get_matrix_action::operator=
get_matrix_action & operator=(const get_matrix_action &a_from)
Definition:
get_matrix_action:32
tools::sg::get_matrix_action::~get_matrix_action
virtual ~get_matrix_action()
Definition:
get_matrix_action:25
tools::sg::node
Definition:
node:28
tools::sg::matrix_action
Definition:
matrix_action:15
tools::sg::matrix_action::operator=
matrix_action & operator=(const matrix_action &a_from)
Definition:
matrix_action:41
tools::sg::get_matrix_action::set_found_model
void set_found_model(const mat4f &a_m)
Definition:
get_matrix_action:44
tools::sg::get_matrix_action::done
bool done() const
Definition:
get_matrix_action:48
tools::sg::get_matrix_action::m_done
bool m_done
Definition:
get_matrix_action:55
tools::sg::get_matrix_action::found_model
const mat4f & found_model() const
Definition:
get_matrix_action:45
matrix_action
TOOLS_ACTION
#define TOOLS_ACTION(a__class, a__sclass, a__parent)
Definition:
action:60
tools::sg::get_matrix_action::set_done
void set_done(bool a_value)
Definition:
get_matrix_action:47
tools::sg::get_matrix_action::node
sg::node * node() const
Definition:
get_matrix_action:51
tools::sg::get_matrix_action::m_node
sg::node * m_node
Definition:
get_matrix_action:54
tools::sg::get_matrix_action
Definition:
get_matrix_action:17
tools
inlined C code : ///////////////////////////////////
Definition:
aida_ntuple:26
tools::mat4f
Definition:
mat4f:12
tools::sg::get_matrix_action::m_found_model
mat4f m_found_model
Definition:
get_matrix_action:56
tools::sg::get_matrix_action::get_matrix_action
get_matrix_action(std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
Definition:
get_matrix_action:20
tools::sg::get_matrix_action::reset
void reset()
Definition:
get_matrix_action:39
tools::sg::get_matrix_action::get_matrix_action
get_matrix_action(const get_matrix_action &a_from)
Definition:
get_matrix_action:27
Generated by
1.8.20