g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::sg::get_matrix_action Class Reference
Inheritance diagram for tools::sg::get_matrix_action:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::get_matrix_action:
Collaboration graph
[legend]

Public Member Functions

 get_matrix_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~get_matrix_action ()
 
 get_matrix_action (const get_matrix_action &a_from)
 
get_matrix_actionoperator= (const get_matrix_action &a_from)
 
void reset ()
 
void set_found_model (const mat4f &a_m)
 
const mat4ffound_model () const
 
void set_done (bool a_value)
 
bool done () const
 
void set_node (sg::node *a_v)
 
sg::nodenode () const
 
- Public Member Functions inherited from tools::sg::matrix_action
 matrix_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~matrix_action ()
 
 matrix_action (const matrix_action &a_from)
 
matrix_actionoperator= (const matrix_action &a_from)
 
void push_matrices ()
 
void pop_matrices ()
 
mat4fprojection_matrix ()
 
mat4fmodel_matrix ()
 
bool end () const
 
int cur () const
 
bool project_point (float &a_x, float &a_y, float &a_z, float &a_w)
 
void model_point (float &a_x, float &a_y, float &a_z, float &a_w)
 
void projected_origin (float &a_x, float &a_y, float &a_z)
 
- Public Member Functions inherited from tools::sg::win_action
 win_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~win_action ()
 
unsigned int ww () const
 
unsigned int wh () const
 
- Public Member Functions inherited from tools::sg::action
virtual void * cast (const std::string &a_class) const
 
virtual const std::string & s_cls () const =0
 
 action (std::ostream &a_out)
 
virtual ~action ()
 
std::ostream & out () const
 
- Public Member Functions inherited from tools::sg::states
 states (unsigned int a_ww, unsigned int a_wh)
 
virtual ~states ()
 
const sg::statestate () const
 
sg::statestate ()
 
void pop_state ()
 
void push_state ()
 
void save_state (const sg::state &a_state)
 
const sg::statesaved_state () const
 
sg::statesaved_state ()
 

Protected Attributes

sg::nodem_node
 
bool m_done
 
mat4f m_found_model
 
- Protected Attributes inherited from tools::sg::matrix_action
std::vector< mat4fm_projs
 
std::vector< mat4fm_models
 
int m_cur
 
mat4f m_identity
 
- Protected Attributes inherited from tools::sg::win_action
unsigned int m_ww
 
unsigned int m_wh
 
- Protected Attributes inherited from tools::sg::action
std::ostream & m_out
 
- Protected Attributes inherited from tools::sg::states
std::vector< sg::statem_states
 
sg::state m_state
 
sg::state m_saved_state
 

Additional Inherited Members

- Protected Member Functions inherited from tools::sg::matrix_action
void reset ()
 
- Protected Member Functions inherited from tools::sg::win_action
 win_action (const win_action &a_from)
 
win_actionoperator= (const win_action &a_from)
 
- Protected Member Functions inherited from tools::sg::action
 action (const action &a_from)
 
actionoperator= (const action &)
 
- Protected Member Functions inherited from tools::sg::states
 states (const states &a_from)
 
statesoperator= (const states &a_from)
 

Detailed Description

Definition at line 17 of file get_matrix_action.

Constructor & Destructor Documentation

◆ get_matrix_action() [1/2]

tools::sg::get_matrix_action::get_matrix_action ( std::ostream &  a_out,
unsigned int  a_ww,
unsigned int  a_wh 
)
inline

Definition at line 20 of file get_matrix_action.

21  :matrix_action(a_out,a_ww,a_wh)
22  ,m_node(0) //not owner
23  ,m_done(false)
24  {}

◆ ~get_matrix_action()

virtual tools::sg::get_matrix_action::~get_matrix_action ( )
inlinevirtual

Definition at line 25 of file get_matrix_action.

25 {}

◆ get_matrix_action() [2/2]

tools::sg::get_matrix_action::get_matrix_action ( const get_matrix_action a_from)
inline

Definition at line 27 of file get_matrix_action.

28  :matrix_action(a_from)
29  ,m_node(a_from.m_node)
30  ,m_done(false)
31  {}

Member Function Documentation

◆ done()

bool tools::sg::get_matrix_action::done ( ) const
inline

Definition at line 48 of file get_matrix_action.

48 {return m_done;}

◆ found_model()

const mat4f& tools::sg::get_matrix_action::found_model ( ) const
inline

Definition at line 45 of file get_matrix_action.

45 {return m_found_model;}

◆ node()

sg::node* tools::sg::get_matrix_action::node ( ) const
inline

Definition at line 51 of file get_matrix_action.

51 {return m_node;}

◆ operator=()

get_matrix_action& tools::sg::get_matrix_action::operator= ( const get_matrix_action a_from)
inline

Definition at line 32 of file get_matrix_action.

32  {
34  m_node = a_from.m_node;
35  reset();
36  return *this;
37  }

◆ reset()

void tools::sg::get_matrix_action::reset ( )
inline

Definition at line 39 of file get_matrix_action.

39  {
40  m_found_model.set_zero();
41  m_done = false;
42  }

◆ set_done()

void tools::sg::get_matrix_action::set_done ( bool  a_value)
inline

Definition at line 47 of file get_matrix_action.

47 {m_done = a_value;}

◆ set_found_model()

void tools::sg::get_matrix_action::set_found_model ( const mat4f a_m)
inline

Definition at line 44 of file get_matrix_action.

44 {m_found_model = a_m;}

◆ set_node()

void tools::sg::get_matrix_action::set_node ( sg::node a_v)
inline

Definition at line 50 of file get_matrix_action.

50 {m_node = a_v;}

Member Data Documentation

◆ m_done

bool tools::sg::get_matrix_action::m_done
protected

Definition at line 55 of file get_matrix_action.

◆ m_found_model

mat4f tools::sg::get_matrix_action::m_found_model
protected

Definition at line 56 of file get_matrix_action.

◆ m_node

sg::node* tools::sg::get_matrix_action::m_node
protected

Definition at line 54 of file get_matrix_action.


The documentation for this class was generated from the following file:
tools::sg::matrix_action::operator=
matrix_action & operator=(const matrix_action &a_from)
Definition: matrix_action:41
tools::sg::get_matrix_action::m_done
bool m_done
Definition: get_matrix_action:55
tools::sg::get_matrix_action::m_node
sg::node * m_node
Definition: get_matrix_action:54
tools::sg::get_matrix_action::m_found_model
mat4f m_found_model
Definition: get_matrix_action:56
tools::sg::matrix_action::matrix_action
matrix_action(std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
Definition: matrix_action:18
tools::sg::get_matrix_action::reset
void reset()
Definition: get_matrix_action:39