2#ifndef _CO_VR_3D_TRANS_GIZMO
3#define _CO_VR_3D_TRANS_GIZMO
16 const float _arrowLength{5.0f};
18 bool _translateXonly{
false}, _translateYonly{
false}, _translateZonly{
false};
19 bool _translateXYonly{
false}, _translateXZonly{
false}, _translateYZonly{
false};
21 osg::ref_ptr<osg::MatrixTransform> axisTransform;
22 osg::ref_ptr<osg::MatrixTransform> xAxisTransform;
23 osg::ref_ptr<osg::MatrixTransform> yAxisTransform;
24 osg::ref_ptr<osg::MatrixTransform> zAxisTransform;
25 osg::ref_ptr<osg::MatrixTransform> xConeTransform;
26 osg::ref_ptr<osg::MatrixTransform> yConeTransform;
27 osg::ref_ptr<osg::MatrixTransform> zConeTransform;
28 osg::ref_ptr<osg::MatrixTransform> xyPlaneTransform;
29 osg::ref_ptr<osg::MatrixTransform> xzPlaneTransform;
30 osg::ref_ptr<osg::MatrixTransform> yzPlaneTransform;
32 osg::ref_ptr<osg::Geode> sphereGeode;
33 osg::ref_ptr<osg::Geode> translateXaxisGeode;
34 osg::ref_ptr<osg::Geode> translateYaxisGeode;
35 osg::ref_ptr<osg::Geode> translateZaxisGeode;
36 osg::ref_ptr<osg::Geode> translateXconeGeode;
37 osg::ref_ptr<osg::Geode> translateYconeGeode;
38 osg::ref_ptr<osg::Geode> translateZconeGeode;
39 osg::ref_ptr<osg::Geode> translateXYplaneGeode;
40 osg::ref_ptr<osg::Geode> translateXZplaneGeode;
41 osg::ref_ptr<osg::Geode> translateYZplaneGeode;
44 osg::Vec3 calculatePointOfShortestDistance(
const osg::Vec3& lp0,
const osg::Vec3& lp1, osg::Vec3 axis_o)
const;
53 coVR3DTransGizmo(osg::Matrix m,
float s, coInteraction::InteractionType type,
const char *iconName,
const char *interactorName, coInteraction::InteractionPriority priority,
coVR3DGizmo* gizmoPointer =
nullptr);
Definition: ARToolKit.h:33
Definition: coVR3DGizmo.h:20
Definition: coVR3DGizmoType.h:22
Definition: coVR3DTransGizmo.h:14
virtual void stopInteraction() override
virtual void doInteraction() override
virtual void startInteraction() override
int hit(vrui::vruiHit *hit) override
virtual void resetState() override
virtual void createGeometry() override
virtual ~coVR3DTransGizmo()
coVR3DTransGizmo(osg::Matrix m, float s, coInteraction::InteractionType type, const char *iconName, const char *interactorName, coInteraction::InteractionPriority priority, coVR3DGizmo *gizmoPointer=nullptr)