Changeset 13041 for OpenSceneGraph/trunk/include/osgManipulator/Projector
 Timestamp:
 03/21/12 18:36:20 (3 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osgManipulator/Projector
r13027 r13041 36 36 /** 37 37 * Calculates the object/world coordinates (projectedPoint) of a window 38 * coordinate (pointToProject) when projected onto some shape or 38 * coordinate (pointToProject) when projected onto some shape or 39 39 * geometry (implemented in derived classes). SceneView in used for i 40 40 * projecting window coordinates into object coordinates and vice versa. … … 63 63 * system to the command's local coordinate system. 64 64 */ 65 inline const osg::Matrix& getWorldToLocal() const 65 inline const osg::Matrix& getWorldToLocal() const 66 66 { 67 67 if (_worldToLocalDirty) … … 104 104 105 105 /** 106 * Calculates the object coordinates (projectedPoint) of a window 107 * coordinate (pointToProject) when projected onto the given line. 106 * Calculates the object coordinates (projectedPoint) of a window 107 * coordinate (pointToProject) when projected onto the given line. 108 108 * Returns true on successful projection. 109 109 */ … … 132 132 133 133 /** 134 * Calculates the object coordinates (projectedPoint) of a window 135 * coordinate (pointToProject) when projected onto the given plane. 134 * Calculates the object coordinates (projectedPoint) of a window 135 * coordinate (pointToProject) when projected onto the given plane. 136 136 * Returns true on successful projection. 137 137 */ … … 160 160 161 161 /** 162 * Calculates the object coordinates (projectedPoint) of a window 163 * coordinate (pointToProject) when projected onto the given sphere. 162 * Calculates the object coordinates (projectedPoint) of a window 163 * coordinate (pointToProject) when projected onto the given sphere. 164 164 * Returns true on successful projection. 165 165 */ … … 195 195 196 196 /** 197 * Calculates the object coordinates (projectedPoint) of a window 198 * coordinate (pointToProject) when projected onto the given sphere. 199 * Returns true on successful projection. 200 */ 201 virtual bool project(const PointerInfo& pi, osg::Vec3d& projectedPoint) const; 202 203 /** 204 * Returns true if the previous projection was on the sphere and false 197 * Calculates the object coordinates (projectedPoint) of a window 198 * coordinate (pointToProject) when projected onto the given sphere. 199 * Returns true on successful projection. 200 */ 201 virtual bool project(const PointerInfo& pi, osg::Vec3d& projectedPoint) const; 202 203 /** 204 * Returns true if the previous projection was on the sphere and false 205 205 * if the projection was on the plane. 206 206 */ 207 207 bool isProjectionOnSphere() const { return _onSphere; } 208 208 209 osg::Quat getRotation(const osg::Vec3d& p1, bool p1OnSphere, 209 osg::Quat getRotation(const osg::Vec3d& p1, bool p1OnSphere, 210 210 const osg::Vec3d& p2, bool p2OnSphere, 211 211 float radialFactor = 0.0f) const; … … 239 239 240 240 /** 241 * Calculates the object coordinates (projectedPoint) of a window 242 * coordinate (pointToProject) when projected onto the given plane. 243 * Returns true on successful projection. 244 */ 245 virtual bool project(const PointerInfo& pi, osg::Vec3d& projectedPoint) const; 246 247 248 /** 249 * Returns true is the point is in front of the cylinder given the eye 241 * Calculates the object coordinates (projectedPoint) of a window 242 * coordinate (pointToProject) when projected onto the given plane. 243 * Returns true on successful projection. 244 */ 245 virtual bool project(const PointerInfo& pi, osg::Vec3d& projectedPoint) const; 246 247 248 /** 249 * Returns true is the point is in front of the cylinder given the eye 250 250 * direction. 251 251 */ … … 279 279 280 280 /** 281 * Calculates the object coordinates (projectedPoint) of a window 282 * coordinate (pointToProject) when projected onto the given plane. 281 * Calculates the object coordinates (projectedPoint) of a window 282 * coordinate (pointToProject) when projected onto the given plane. 283 283 * Returns true on successful projection. 284 284 * \param[in] pi Incoming intersection information