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

Public Member Functions

 event_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh, event &a_event)
 
virtual ~event_action ()
 
 event_action (const event_action &a_from)
 
event_actionoperator= (const event_action &a_from)
 
void reset ()
 
const eventget_event () const
 
eventget_event ()
 
void set_done (bool a_value)
 
bool done () const
 
void set_do_switch_children (bool a_value)
 
bool do_switch_children () 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

eventm_event
 
bool m_do_switch_children
 
bool m_done
 
- 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 14 of file event_action.

Constructor & Destructor Documentation

◆ event_action() [1/2]

tools::sg::event_action::event_action ( std::ostream &  a_out,
unsigned int  a_ww,
unsigned int  a_wh,
event a_event 
)
inline

Definition at line 17 of file event_action.

18  :matrix_action(a_out,a_ww,a_wh)
19  ,m_event(a_event)
20  ,m_do_switch_children(false)
21 
22  ,m_done(false)
23  {}

◆ ~event_action()

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

Definition at line 24 of file event_action.

24 {}

◆ event_action() [2/2]

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

Definition at line 26 of file event_action.

27  :matrix_action(a_from)
28  ,m_event(a_from.m_event)
29  ,m_do_switch_children(a_from.m_do_switch_children)
30 
31  ,m_done(false)
32  {}

Member Function Documentation

◆ do_switch_children()

bool tools::sg::event_action::do_switch_children ( ) const
inline

Definition at line 53 of file event_action.

53 {return m_do_switch_children;}

◆ done()

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

Definition at line 50 of file event_action.

50 {return m_done;}

◆ get_event() [1/2]

event& tools::sg::event_action::get_event ( )
inline

Definition at line 47 of file event_action.

47 {return m_event;}

◆ get_event() [2/2]

const event& tools::sg::event_action::get_event ( ) const
inline

Definition at line 46 of file event_action.

46 {return m_event;}

◆ operator=()

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

Definition at line 33 of file event_action.

33  {
35  m_do_switch_children = a_from.m_do_switch_children;
36 
37  m_done = false;
38  return *this;
39  }

◆ reset()

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

Definition at line 41 of file event_action.

41  {
43  m_done = false;
44  }

◆ set_do_switch_children()

void tools::sg::event_action::set_do_switch_children ( bool  a_value)
inline

Definition at line 52 of file event_action.

52 {m_do_switch_children = a_value;}

◆ set_done()

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

Definition at line 49 of file event_action.

49 {m_done = a_value;}

Member Data Documentation

◆ m_do_switch_children

bool tools::sg::event_action::m_do_switch_children
protected

Definition at line 56 of file event_action.

◆ m_done

bool tools::sg::event_action::m_done
protected

Definition at line 57 of file event_action.

◆ m_event

event& tools::sg::event_action::m_event
protected

Definition at line 55 of file event_action.


The documentation for this class was generated from the following file:
tools::sg::event_action::m_event
event & m_event
Definition: event_action:55
tools::sg::matrix_action::reset
void reset()
Definition: matrix_action:110
tools::sg::matrix_action::operator=
matrix_action & operator=(const matrix_action &a_from)
Definition: matrix_action:41
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::event_action::m_do_switch_children
bool m_do_switch_children
Definition: event_action:56
tools::sg::event_action::m_done
bool m_done
Definition: event_action:57