inlib
1.2.0
|
Public Member Functions | |
mtx_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh) | |
virtual | ~mtx_action () |
void | push_matrices () |
void | pop_matrices () |
inlib::mat4f & | projection_matrix () |
inlib::mat4f & | model_matrix () |
bool | end () const |
void | reset () |
Protected Member Functions | |
mtx_action (const inlib::sg::mtx_action &a_from) | |
inlib::sg::mtx_action & | operator= (const inlib::sg::mtx_action &a_from) |
Definition at line 14 of file mtx_action.
inlib::sg::mtx_action::mtx_action | ( | std::ostream & | a_out, |
unsigned int | a_ww, | ||
unsigned int | a_wh | ||
) | [inline] |
Definition at line 16 of file mtx_action.
: win_action(a_out,a_ww,a_wh) ,m_cur(0) { m_projs.resize(5); m_models.resize(5); m_projs[0].set_identity(); m_models[0].set_identity(); m_cur = 0; }
virtual inlib::sg::mtx_action::~mtx_action | ( | ) | [inline, virtual] |
Definition at line 26 of file mtx_action.
{}
inlib::sg::mtx_action::mtx_action | ( | const inlib::sg::mtx_action & | a_from | ) | [inline, protected] |
Definition at line 28 of file mtx_action.
: win_action(a_from) {}
bool inlib::sg::mtx_action::end | ( | ) | const [inline] |
Definition at line 52 of file mtx_action.
{return m_cur==0?true:false;}
inlib::mat4f& inlib::sg::mtx_action::model_matrix | ( | ) | [inline] |
Definition at line 50 of file mtx_action.
{return m_models[m_cur];}
inlib::sg::mtx_action& inlib::sg::mtx_action::operator= | ( | const inlib::sg::mtx_action & | a_from | ) | [inline, protected] |
Definition at line 31 of file mtx_action.
{ win_action::operator=(a_from); return *this; }
void inlib::sg::mtx_action::pop_matrices | ( | ) | [inline] |
Definition at line 48 of file mtx_action.
{m_cur--;}
inlib::mat4f& inlib::sg::mtx_action::projection_matrix | ( | ) | [inline] |
Definition at line 49 of file mtx_action.
{return m_projs[m_cur];}
void inlib::sg::mtx_action::push_matrices | ( | ) | [inline] |
Definition at line 36 of file mtx_action.
{ if((m_cur+1)>=(int)m_projs.size()) { m_projs.resize(m_projs.size()+5); m_models.resize(m_models.size()+5); } m_cur++; m_projs[m_cur].set_matrix(m_projs[m_cur-1]); m_models[m_cur].set_matrix(m_models[m_cur-1]); }
void inlib::sg::mtx_action::reset | ( | ) | [inline] |
Reimplemented in inlib::sg::pick_action, and inlib::sg::bbox_action.
Definition at line 54 of file mtx_action.
{ m_projs[0].set_identity(); m_models[0].set_identity(); m_cur = 0; }