31 #include <osgDB/ReadFile> A rotating ring array model.
RingArray()
Default constructor.
double mRing3RotationDelay
static const double TWO_PI
/ pi*2.
static const std::string RING_1_FILE_NAME
Namespace that contains controls for sample scene objects.
double Deg2Rad(double degree)
Takes Degrees and converts them to Radians.
trBase::SmrtPtr< osg::PositionAttitudeTransform > mRing2Slide
trBase::SmrtPtr< osg::PositionAttitudeTransform > mRing3Slide
const Vec3 Z_AXIS(0.0, 0.0, 1.0)
void UpdateRing4Angle(double deltaTime)
Updates the ring 4 angle.
double mRing3RotationSpeed
trBase::SmrtPtr< osg::PositionAttitudeTransform > mRing3Rotation
void UpdateRing2Angle(double deltaTime)
Updates the ring 2 angle.
double mRing2RotationAngle
const double MAX_RING_SPEED
void UpdateRing2Slide(double deltaTime)
Updates the ring 2 slide.
trBase::SmrtPtr< osg::PositionAttitudeTransform > mRing2Rotation
double mRing3RotationAngle
TR_UTIL_EXPORT std::string GetStaticMeshesPath()
Gets static meshes path.
trBase::SmrtPtr< osg::Group > mRing2
Represents a quaternion, that is used for angular calculations and transformations.
trBase::SmrtPtr< osg::Group > mRing1
trBase::SmrtPtr< osg::PositionAttitudeTransform > mAngleCorrection
trBase::SmrtPtr< osg::Node > mRing4
double mRing4RotationDelay
double mRing4RotationAngle
double mRing2RotationSpeed
void UpdateRing3Slide(double deltaTime)
Updates the ring 3 slide.
double mRing4RotationSpeed
static const std::string RING_2_FILE_NAME
static const std::string RING_3_FILE_NAME
trBase::SmrtPtr< osg::PositionAttitudeTransform > mRing4Rotation
const Vec3 Y_AXIS(0.0, 1.0, 0.0)
trBase::SmrtPtr< osg::PositionAttitudeTransform > mRing1Slide
const Vec3 X_AXIS(1.0, 0.0, 0.0)
double mRing2RotationDelay
virtual void Update(double deltaTime)
This function gets called by the RingArrayCallback.
trBase::SmrtPtr< osg::Group > mRing3
static const std::string RING_4_FILE_NAME
void UpdateRing3Angle(double deltaTime)
Updates the ring 3 angle.
void SetupModelTree()
Sets up the model tree.
void LoadModels()
Loads the models and creates transform nodes for the model tree.
void UpdateRing1Slide(double deltaTime)
Updates the ring 1 slide.