15 #ifndef OSGMANIPULATOR_PROJECTOR
16 #define OSGMANIPULATOR_PROJECTOR 1
18 #include <osgManipulator/Export>
20 #include <osg/LineSegment>
21 #include <osgUtil/SceneView>
23 #include <osgManipulator/Dragger>
51 _localToWorld = localToWorld;
52 _worldToLocalDirty =
true;
67 if (_worldToLocalDirty)
69 _worldToLocal.
invert(_localToWorld);
70 _worldToLocalDirty =
false;
211 float radialFactor = 0.0f)
const;
234 _cylinder = cylinder;
236 _cylinderAxis.normalize();
void setFront(bool front)
void setSphere(osg::Sphere *sphere)
#define OSGMANIPULATOR_EXPORT
const osg::Plane & getPlane() const
osg::LineSegment::vec_type & getLineStart()
osg::Matrix _localToWorld
bool isProjectionOnSphere() const
const osg::Matrix & getWorldToLocal() const
osg::Vec3d _planeLineStart
void setFront(bool front)
osg::Matrix _worldToLocal
void setLocalToWorld(const osg::Matrix &localToWorld)
const osg::LineSegment::vec_type & getLineStart() const
osg::ref_ptr< osg::LineSegment > _line
void setCylinder(osg::Cylinder *cylinder)
const osg::LineSegment::vec_type & getLineEnd() const
A plane class. It can be used to represent an infinite plane.
const Quat & getRotation() const
osg::LineSegment::vec_type & getLineEnd()
osg::ref_ptr< osg::Sphere > _sphere
bool invert(const Matrixd &rhs)
osg::ref_ptr< osg::Cylinder > _cylinder
const osg::Cylinder * getCylinder() const
const osg::Matrix & getLocalToWorld() const
const osg::Sphere * getSphere() const
void setLine(const osg::LineSegment::vec_type &s, const osg::LineSegment::vec_type &e)
void setPlane(const osg::Plane &plane)