TimeSensor Class Reference

WARNING: cannot derive from X3DSensorNode to avoid ambiguous derivation. Is this an ISO error ? More...

#include <TimeSensor.h>

Inherits X3D::X3DTimeDependentNode, and AP::AP_Thread.

Collaboration diagram for TimeSensor:

Collaboration graph

Public Member Functions

void Destroy (void)
AP_Bool Init (void)
 Interface The render and init API function is not present in the X3D ISO/IEC 19775-1:2008 standard. We will use it to OpenGL direct rendering. It is a pure virtual function and must be overloaded from some X3D classes.
void run (void)
 TimeSensor (const AP_Xml &xml, SFNode scene)

Protected Attributes

SFTime _m_cycleInterval
SFTime _m_cycleTime
SFFloat _m_fraction_changed
SFTime _m_time

Detailed Description

WARNING: cannot derive from X3DSensorNode to avoid ambiguous derivation. Is this an ISO error ?

Constructor & Destructor Documentation

TimeSensor ( const AP_Xml xml,
SFNode  scene 
)


Member Function Documentation

void Destroy ( void   )  [inline, virtual]

Reimplemented from X3DNode.

AP_Bool Init ( void   )  [inline, virtual]

Interface The render and init API function is not present in the X3D ISO/IEC 19775-1:2008 standard. We will use it to OpenGL direct rendering. It is a pure virtual function and must be overloaded from some X3D classes.

Reimplemented from X3DNode.

void run ( void   )  [virtual]

Main thread function. It must be overloaded in your derived class. It has no parameter.

Example:
void run(void)
{
while(is_running())
{
... do something ...
}
}

Reimplemented from AP_Thread.


Field Documentation

SFTime _m_cycleInterval [protected]

SFTime _m_cycleTime [protected]

SFFloat _m_fraction_changed [protected]

SFTime _m_time [protected]


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

Generated on Fri Mar 5 16:50:46 2010 for CarLinO by  doxygen 1.5.8