15#ifndef OSGMANIPULATOR_PROJECTOR
16#define OSGMANIPULATOR_PROJECTOR 1
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();
osg::Plane _plane
Definition Projector:303
osg::Quat getRotation(const osg::Vec3d &p1, const osg::Vec3d &p2) const
bool _parallelPlane
Definition Projector:305
osg::Vec3d _planeLineEnd
Definition Projector:304
virtual ~CylinderPlaneProjector()
CylinderPlaneProjector(osg::Cylinder *cylinder)
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const
osg::ref_ptr< osg::Cylinder > _cylinder
Definition Projector:260
bool _front
Definition Projector:262
const osg::Cylinder * getCylinder() const
Definition Projector:238
bool isPointInFront(const PointerInfo &pi, const osg::Matrix &localToWorld) const
CylinderProjector(osg::Cylinder *cylinder)
void setCylinder(osg::Cylinder *cylinder)
Definition Projector:232
osg::Vec3d _cylinderAxis
Definition Projector:261
void setFront(bool front)
Definition Projector:254
virtual ~CylinderProjector()
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const
osg::ref_ptr< osg::LineSegment > _line
Definition Projector:116
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const
const osg::LineSegment::vec_type & getLineEnd() const
Definition Projector:102
osg::LineSegment::vec_type & getLineStart()
Definition Projector:100
const osg::LineSegment::vec_type & getLineStart() const
Definition Projector:99
void setLine(const osg::LineSegment::vec_type &s, const osg::LineSegment::vec_type &e)
Definition Projector:97
osg::LineSegment::vec_type & getLineEnd()
Definition Projector:103
LineProjector(const osg::LineSegment::vec_type &s, const osg::LineSegment::vec_type &e)
void setPlane(const osg::Plane &plane)
Definition Projector:130
virtual ~PlaneProjector()
const osg::Plane & getPlane() const
Definition Projector:131
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const
osg::Plane _plane
Definition Projector:144
PlaneProjector(const osg::Plane &plane)
const osg::Matrix & getWorldToLocal() const
Definition Projector:65
const osg::Matrix & getLocalToWorld() const
Definition Projector:59
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const =0
bool _worldToLocalDirty
Definition Projector:82
void setLocalToWorld(const osg::Matrix &localToWorld)
Definition Projector:49
osg::Matrix _worldToLocal
Definition Projector:80
osg::Matrix _localToWorld
Definition Projector:79
osg::Plane _plane
Definition Projector:217
bool isProjectionOnSphere() const
Definition Projector:207
virtual ~SpherePlaneProjector()
osg::Quat getRotation(const osg::Vec3d &p1, bool p1OnSphere, const osg::Vec3d &p2, bool p2OnSphere, float radialFactor=0.0f) const
bool _onSphere
Definition Projector:218
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const
SpherePlaneProjector(osg::Sphere *sphere)
void setFront(bool front)
Definition Projector:174
const osg::Sphere * getSphere() const
Definition Projector:159
SphereProjector(osg::Sphere *sphere)
virtual bool project(const PointerInfo &pi, osg::Vec3d &projectedPoint) const
void setSphere(osg::Sphere *sphere)
Definition Projector:158
virtual ~SphereProjector()
osg::ref_ptr< osg::Sphere > _sphere
Definition Projector:180
bool isPointInFront(const PointerInfo &pi, const osg::Matrix &localToWorld) const
bool _front
Definition Projector:181
const Quat & getRotation() const
Definition Shape:345
bool invert(const Matrixd &rhs)
Definition Matrixd:233
A plane class. It can be used to represent an infinite plane.
Definition Plane:34
Matrixd Matrix
Definition Matrix:27
#define OSGMANIPULATOR_EXPORT
Definition osgManipulator/Export:27