8 #ifndef _CO_VR_3D_TRANSROT_INTERACTOR_H
9 #define _CO_VR_3D_TRANSROT_INTERACTOR_H
12 #include <vrbclient/SharedStateSerializer.h>
14 #include <net/tokenbuffer.h>
22 bool _rotateOnly =
false, _translateOnly =
false;
23 osg::Matrix _interMat_o, _oldHandMat;
24 osg::Matrix _invOldHandMat_o;
25 osg::Matrix _oldInteractorXformMat_o;
27 osg::Geometry *createLine(osg::Vec3 pos1, osg::Vec3 pos2, osg::Vec4 c);
28 osg::ref_ptr<osg::MatrixTransform> axisTransform;
29 osg::ref_ptr<osg::MatrixTransform> xrTransform;
30 osg::ref_ptr<osg::MatrixTransform> yrTransform;
31 osg::ref_ptr<osg::MatrixTransform> zrTransform;
32 osg::ref_ptr<osg::MatrixTransform> xlTransform;
33 osg::ref_ptr<osg::MatrixTransform> ylTransform;
34 osg::ref_ptr<osg::MatrixTransform> zlTransform;
35 osg::ref_ptr<osg::Geode> sphereGeode;
36 osg::ref_ptr<osg::Geode> rotateGeode;
37 osg::ref_ptr<osg::Geode> translateGeode;
43 virtual void createGeometry()
override;
44 void updateSharedState()
override;
47 coVR3DTransRotInteractor(osg::Matrix m,
float s, coInteraction::InteractionType type,
const char *iconName,
const char *interactorName, coInteraction::InteractionPriority priority);
53 virtual void startInteraction()
override;
54 virtual void doInteraction()
override;
56 virtual void updateTransform(osg::Matrix m);
62 void setShared(
bool state)
override;
Definition: coVRIntersectionInteractor.h:55
const osg::Matrix & getMatrix() const
Definition: coVR3DTransRotInteractor.h:58
vrb::SharedState< osg::Matrix > SharedMatrix
Definition: coVR3DTransRotInteractor.h:45
Definition: coVR3DTransRotInteractor.h:18