|
| SbCylinderSectionProjector (float edgeTol=.9, bool orientToEye=TRUE) |
| Default constructor.
|
|
| SbCylinderSectionProjector (const SbCylinder &cyl, float edgeTol=.9, bool orientToEye=TRUE) |
| Constructor taking the cylinder.
|
|
| ~SbCylinderSectionProjector () |
| Destructor.
|
|
virtual SbProjector * | copy () const |
| Returns an instance that is a copy of this instance.
|
|
virtual SbVec3f | project (const SbVec2f &point) |
| Apply the projector using the given point, returning the point in three dimensions that it projects to.
|
|
virtual SbRotation | getRotation (const SbVec3f &point1, const SbVec3f &point2) |
| Computes a rotation based on two points on this projector.
|
|
void | setTolerance (float edgeTol) |
|
float | getTolerance () const |
| Set and get the edge tolerance as a fraction of the radius of the cylinder.
|
|
bool | isWithinTolerance (const SbVec3f &point) |
| Find whether this point on the cylinder or tolerance plane is within tolerance.
|
|
| ~SbCylinderProjector () |
| Destructor.
|
|
virtual SbVec3f | project (const SbVec2f &point)=0 |
| Apply the projector using the given point, returning the point in three dimensions that it projects to.
|
|
SbVec3f | projectAndGetRotation (const SbVec2f &point, SbRotation &rot) |
| Apply the projector using the given point, returning the point in three dimensions that it projects to.
|
|
virtual SbRotation | getRotation (const SbVec3f &point1, const SbVec3f &point2)=0 |
| Get a rotation given two points on this cylinder projector.
|
|
void | setCylinder (const SbCylinder &cyl) |
| Set and get the cylinder on which to project points.
|
|
const SbCylinder & | getCylinder () const |
| Set and get the cylinder on which to project points.
|
|
void | setOrientToEye (bool orientToEye) |
| Set and get whether the projector should always be oriented towards the eye.
|
|
bool | isOrientToEye () const |
| Set and get whether the projector should always be oriented towards the eye.
|
|
void | setFront (bool isFront) |
| Set and get whether the projector should intersect the half of the cylinder that faces the eye.
|
|
bool | isFront () const |
| Set and get whether the projector should intersect the half of the cylinder that faces the eye.
|
|
bool | isPointInFront (const SbVec3f &point) const |
| Set and get whether the projector should intersect the half of the cylinder that faces the eye.
|
|
virtual void | setWorkingSpace (const SbMatrix &space) |
| Set the transform space to work in.
|
|
virtual SbVec3f | project (const SbVec2f &point)=0 |
| Apply the projector using the given point, returning the point in three dimensions that it projects to.
|
|
virtual void | setViewVolume (const SbViewVolume &vol) |
| Set the view volume to use for the projection.
|
|
const SbViewVolume & | getViewVolume () const |
| Get the view volume to use for the projection.
|
|
virtual void | setWorkingSpace (const SbMatrix &space) |
| Set the transform space to work in.
|
|
const SbMatrix & | getWorkingSpace () const |
| Get the transform space to work in.
|
|
virtual SbProjector * | copy () const =0 |
| Creates and returns an exact copy of the projector.
|
|
SbCylinderSectionProjector projects a window space point (usually based on the mouse location) onto the section of a cylinder that has been sliced by a plane. Two projected points can produce a rotation along the cylinder's axis. The tolerance slice can be specified as a fraction of the radius of the cylinder. The projection point will not extend beyond the sliced portion of the cylinder.
Incremental changes (delta rotation) can be computed during interactive sessions. Cylinder projectors are typically used to write interactive 3D manipulators and viewers.
- See Also
- SbCylinderPlaneProjector, SbCylinderSheetProjector, SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector
Definition at line 91 of file SbCylinderSectionProjector.h.