11 HandleWheel(osg::Vec3d
point, osg::Vec3d normal,
double radius,
double tubeRadius,
double color[4]);
14 virtual osg::Node *
getNode(
void)
override;
16 virtual void mouseOver(
bool flag)
override;
17 virtual void setInteraction(
int intersectionIndex,
double intersectionRatio)
override;
26 void createWheel(osg::Geode * _geode,
double color[4],
double wheelRadius,
double tubeRadius,
int numberSegments);
27 void updateTransform(
void);
28 double calculateAngle(
int intersectionIndex,
double intersectionRatio);
30 osg::ref_ptr<osg::MatrixTransform> osgNode;
31 osg::ref_ptr<osg::Switch> osgSwitchNode;
32 osg::ref_ptr<osg::Geode> wheelNode;
33 osg::ref_ptr<osg::Geode> wheelNodeSelected;
35 osg::Vec3d wheelPosition;
36 osg::Vec3d wheelNormal;
41 double referenceAngleDeg;
42 double rotationAngleDeg;
43 double wheelRotationAngleDeg;
@ point
Definition MonitorSettings.h:19
Definition HandleWheel.h:8
virtual osg::Node * getNode(void) override
Definition HandleWheel.cpp:64
virtual void mouseOver(bool flag) override
Definition HandleWheel.cpp:235
virtual void setInteractionReference(int intersectionIndex, double intersectionRatio) override
Definition HandleWheel.cpp:241
virtual void setInteraction(int intersectionIndex, double intersectionRatio) override
Definition HandleWheel.cpp:248
osg::Vec3d getPosition(void)
Definition HandleWheel.h:21
void setPosition(osg::Vec3d pos)
Definition HandleWheel.cpp:229
virtual ~HandleWheel()
Definition HandleWheel.cpp:59
double getRotationAngleDeg(void)
Definition HandleWheel.h:23
Definition HandlerBase.h:29