Public Member Functions | Protected Attributes
srs_ui_but::CMaterialListener Class Reference

#include <but_projection.h>

List of all members.

Public Member Functions

 CMaterialListener (Ogre::Material *material, const std::string &schemeName)
 Constructor.
float getTestedDistance ()
 Get current tested distance.
Ogre::Technique * handleSchemeNotFound (unsigned short, const Ogre::String &schemeName, Ogre::Material *mat, unsigned short, const Ogre::Renderable *)
 Scheme not found event handler - return stored material technique.
void setCameraPosition (const Ogre::Vector4 &position, const Ogre::Vector4 &camPlane, const Ogre::Matrix4 &projMatrix)
 Set camera position parameters.
void setPaused (bool bPaused)
 Pause/run listener.
void setTestedDistance (float distance)
 Set tested distance.
 ~CMaterialListener ()
 Destructor.

Protected Attributes

bool m_bDistanceChanged
 Is distance changed.
bool m_bMatricesChanged
 Matrices have changed.
bool m_bNotPaused
 Is listener not paused?
Ogre::Vector4 m_camPlane
 Camera plane.
Ogre::Vector4 m_camPosition
 Camera position.
boost::mutex m_lock
 Whole data locking mutex.
Ogre::Material * m_materialPtr
 Material pointer.
Ogre::Matrix4 m_projMatrix
 Projection matrix.
std::string m_schemeName
 Tested scheme name.
float m_testingDistance
 Testing distance.

Detailed Description

Used material listener

Definition at line 76 of file but_projection.h.


Constructor & Destructor Documentation

CMaterialListener::CMaterialListener ( Ogre::Material *  material,
const std::string &  schemeName 
)

Constructor.

Constructor

Material listener constructor Material listener constructor

Definition at line 100 of file but_projection.cpp.

Destructor.

Material listener destructor

Definition at line 133 of file but_projection.cpp.


Member Function Documentation

Get current tested distance.

Definition at line 129 of file but_projection.h.

Ogre::Technique * CMaterialListener::handleSchemeNotFound ( unsigned  short,
const Ogre::String &  schemeName,
Ogre::Material *  mat,
unsigned  short,
const Ogre::Renderable *   
)

Scheme not found event handler - return stored material technique.

Scheme not found event handler - return stored material technique

Definition at line 143 of file but_projection.cpp.

void CMaterialListener::setCameraPosition ( const Ogre::Vector4 &  position,
const Ogre::Vector4 &  camPlane,
const Ogre::Matrix4 &  projMatrix 
)

Set camera position parameters.

Definition at line 224 of file but_projection.cpp.

void srs_ui_but::CMaterialListener::setPaused ( bool  bPaused) [inline]

Pause/run listener.

Definition at line 120 of file but_projection.h.

void CMaterialListener::setTestedDistance ( float  distance)

Set tested distance.

Set tested distance

Definition at line 214 of file but_projection.cpp.


Member Data Documentation

Is distance changed.

Definition at line 92 of file but_projection.h.

Matrices have changed.

Definition at line 95 of file but_projection.h.

Is listener not paused?

Definition at line 86 of file but_projection.h.

Ogre::Vector4 srs_ui_but::CMaterialListener::m_camPlane [protected]

Camera plane.

Definition at line 104 of file but_projection.h.

Camera position.

Definition at line 98 of file but_projection.h.

boost::mutex srs_ui_but::CMaterialListener::m_lock [protected]

Whole data locking mutex.

Definition at line 107 of file but_projection.h.

Ogre::Material* srs_ui_but::CMaterialListener::m_materialPtr [protected]

Material pointer.

Definition at line 80 of file but_projection.h.

Projection matrix.

Definition at line 101 of file but_projection.h.

Tested scheme name.

Definition at line 83 of file but_projection.h.

Testing distance.

Definition at line 89 of file but_projection.h.


The documentation for this class was generated from the following files:


srs_ui_but
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Michal Spanel (spanel@fit.vutbr.cz), Tomas Lokaj
autogenerated on Mon Oct 6 2014 08:49:31