TrueReality  v0.1.1912
trCore::SceneObjects::RingArrayCallback Class Reference

A ring array callback that is used to rotate the ring array (RingArray.h) More...

#include <RingArrayCallback.h>

Inheritance diagram for trCore::SceneObjects::RingArrayCallback:
Collaboration diagram for trCore::SceneObjects::RingArrayCallback:

Public Member Functions

 RingArrayCallback ()
 Default constructor. More...
 
 ~RingArrayCallback ()
 Destructor. More...
 
virtual void operator() (osg::Node *nodePtr, osg::NodeVisitor *nvPtr) override
 Callback method called by the NodeVisitor when visiting a node. More...
 

Private Attributes

bool mFirstFrame = true
 
trUtil::Timer mTimer
 

Detailed Description

A ring array callback that is used to rotate the ring array (RingArray.h)

Author
Maxim Serebrennik

Definition at line 45 of file RingArrayCallback.h.

Constructor & Destructor Documentation

◆ RingArrayCallback()

trCore::SceneObjects::RingArrayCallback::RingArrayCallback ( )

Default constructor.

Definition at line 31 of file RingArrayCallback.cpp.

◆ ~RingArrayCallback()

trCore::SceneObjects::RingArrayCallback::~RingArrayCallback ( )

Destructor.

Definition at line 36 of file RingArrayCallback.cpp.

Member Function Documentation

◆ operator()()

void trCore::SceneObjects::RingArrayCallback::operator() ( osg::Node *  nodePtr,
osg::NodeVisitor *  nvPtr 
)
overridevirtual

Callback method called by the NodeVisitor when visiting a node.

Parameters
[in,out]nodePtrIf non-null, the node.
[in,out]nvPtrIf non-null, the nv.

Definition at line 41 of file RingArrayCallback.cpp.

References trUtil::Timer::GetSecondsPerTick(), LOG_E, mFirstFrame, mTimer, trUtil::Timer::SetStartTick(), and trUtil::Timer::Tick().

Here is the call graph for this function:

Member Data Documentation

◆ mFirstFrame

bool trCore::SceneObjects::RingArrayCallback::mFirstFrame = true
private

Definition at line 75 of file RingArrayCallback.h.

Referenced by operator()().

◆ mTimer

trUtil::Timer trCore::SceneObjects::RingArrayCallback::mTimer
private

Definition at line 76 of file RingArrayCallback.h.

Referenced by operator()().


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