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

Public Member Functions

 visible_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~visible_action ()
 
 visible_action (const visible_action &a_from)
 
visible_actionoperator= (const visible_action &a_from)
 
void reset ()
 
void increment ()
 
unsigned int count () 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

unsigned int m_count
 
- 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 12 of file visible_action.

Constructor & Destructor Documentation

◆ visible_action() [1/2]

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

Definition at line 15 of file visible_action.

16  :parent(a_out,a_ww,a_wh)
17  ,m_count(0)
18  {}

◆ ~visible_action()

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

Definition at line 19 of file visible_action.

19 {}

◆ visible_action() [2/2]

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

Definition at line 21 of file visible_action.

22  :parent(a_from)
23  ,m_count(0)
24  {}

Member Function Documentation

◆ count()

unsigned int tools::sg::visible_action::count ( ) const
inline

Definition at line 34 of file visible_action.

34 {return m_count;}

◆ increment()

void tools::sg::visible_action::increment ( )
inline

Definition at line 33 of file visible_action.

33 {m_count++;}

◆ operator=()

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

Definition at line 25 of file visible_action.

25  {
26  parent::operator=(a_from);
27  m_count = 0;
28  return *this;
29  }

◆ reset()

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

Definition at line 31 of file visible_action.

31 {m_count = 0;}

Member Data Documentation

◆ m_count

unsigned int tools::sg::visible_action::m_count
protected

Definition at line 36 of file visible_action.


The documentation for this class was generated from the following file:
tools::sg::visible_action::m_count
unsigned int m_count
Definition: visible_action:36