~saiarcot895/ubuntu/trusty/openscenegraph/armhf-support

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osgManipulator/RotateCylinderDragger

  • Committer: Bazaar Package Importer
  • Author(s): Loic Dachary (OuoU)
  • Date: 2009-03-23 14:08:20 UTC
  • mfrom: (1.1.7 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090323140820-i4j3jozdlhyn4lre
rules prevent lib64 with -D LIB_POSTFIX="" (Closes: #517671)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        RotateCylinderDragger();
31
31
 
32
32
        /**
33
 
         * Handle pick events on dragger and generate TranslateInLine commands.
34
 
         */
 
33
         * Handle pick events on dragger and generate TranslateInLine commands.
 
34
         */
35
35
        virtual bool handle(const PointerInfo& pi, const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
36
36
 
37
37
        /** Setup default geometry for dragger. */
42
42
        inline const osg::Vec4 getColor() const { return _color; }
43
43
 
44
44
        /**
45
 
         * Set/Get pick color for dragger. Pick color is color of the dragger
46
 
         * when picked. It gives a visual feedback to show that the dragger has
47
 
         * been picked.
48
 
         */
 
45
         * Set/Get pick color for dragger. Pick color is color of the dragger
 
46
         * when picked. It gives a visual feedback to show that the dragger has
 
47
         * been picked.
 
48
         */
49
49
        inline void setPickColor(const osg::Vec4& color) { _pickColor = color; }
50
50
        inline const osg::Vec4 getPickColor() const { return _pickColor; }
51
51
 
56
56
 
57
57
        osg::ref_ptr<CylinderPlaneProjector> _projector;
58
58
 
59
 
        osg::Vec3   _prevWorldProjPt;
 
59
        osg::Vec3d  _prevWorldProjPt;
60
60
        bool        _prevPtOnCylinder;
61
61
        osg::Matrix _startLocalToWorld, _startWorldToLocal;
62
62
        osg::Quat   _prevRotation;