List of all members.
Public Member Functions
-
CViewer (const string &name, int p, const RefPtr< VCreationPreferences > &VP)
-
bool load (const string &filename)
-
void onIdle ()
-
bool onInit ()
-
void onKey (unsigned char key, int x, int y)
-
void onRender ()
-
void onShutdown ()
-
override void render (VGLRenderContext &) const
- override bool request (VRequest &R, double precision, const WeakVObjectPtr &ImmediateRequestor, const WeakVObjectPtr &RootRequestor)
- Request an action, to be performed with a certain precision.
-
override void update (VContext &, double prec)
Public Attributes
Protected Member Functions
-
GLuint loadTexture (const std::string &strFilename)
-
bool parseModelConfiguration (const std::string &strFilename)
-
void renderModel () const
Protected Attributes
-
double m_blendTime
-
bool m_bPaused
-
CalCoreModel m_calCoreModel
-
int m_currentAnimationId
-
float m_distance
-
unsigned int m_lastTick
-
float m_leftAnimationTime
-
float m_lodLevel
-
float m_scale
-
CalModel * pm_calModel
Member Function Documentation
Request an action, to be performed with a certain precision.
Its main purpose is to iterate all parameters and forward the request to them. If this all parameters have fullfilled their request(), then the virtual update() function is called.
In rare case, an object might want to overload this function, for instance when request shall be forwarded to input objects only under certain circumstances (e.g. an Viewer object that is not visible at the moment).
- Returns:
- true if the object was changed
- Exceptions:
-
VRequest::Incomplete | might occur if a synchroneous request is issued but some operations are still in asynchroneous construction. This is the case when a synchroneous request is issued after an asynchroneous one that has not yet been completed. In such a case, the caller may just repeat the same request. The caller may and should do something else in the meantime, as the async request may still take a while to finish. |
- Note:
- Requests are only processed if enableRequestProcessing() has been called for this object. By default, processing of requests is disabled to avoid requests() to be processed when an object is yet incomplete during construction which may happen in a multithreading environment. This flag must be set after an object is completely constructed.
Check the age of the local state
Some parameter has changed, so call object's update().
Reimplemented from Wizt::VObject.
The documentation for this class was generated from the following files:
- modules/cal3dvish/CViewer.hpp
- modules/cal3dvish/CalVObject.cpp
- modules/cal3dvish/CViewer.cpp