#include <but_projection.h>
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. |
Used material listener
Definition at line 76 of file but_projection.h.
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.
float srs_ui_but::CMaterialListener::getTestedDistance | ( | ) | [inline] |
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 | ) |
Is distance changed.
Definition at line 92 of file but_projection.h.
Matrices have changed.
Definition at line 95 of file but_projection.h.
bool srs_ui_but::CMaterialListener::m_bNotPaused [protected] |
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.
Ogre::Vector4 srs_ui_but::CMaterialListener::m_camPosition [protected] |
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.
Ogre::Matrix4 srs_ui_but::CMaterialListener::m_projMatrix [protected] |
Projection matrix.
Definition at line 101 of file but_projection.h.
std::string srs_ui_but::CMaterialListener::m_schemeName [protected] |
Tested scheme name.
Definition at line 83 of file but_projection.h.
float srs_ui_but::CMaterialListener::m_testingDistance [protected] |
Testing distance.
Definition at line 89 of file but_projection.h.