Class SbCylinderProjector

Direct Known Subclasses:
SbCylinderSectionProjector, SbCylinderSheetProjector

public class SbCylinderProjector extends SbProjector
Cylinder projector. SbCylinderProjector is an abstract base class for projectors that use a cylinder in their projection. The getRotation() method for an SbCylinderProjector will always return a rotation that is about the axis of the cylinder. Cylinder projectors are typically used to write interactive 3D manipulators and viewers.

See Also:
  • Method Details

    • setOrientToEye

      public void setOrientToEye(boolean orientToEye)
      Sets whether the projector should always be oriented towards the eye. Set to false if the tolerance should be evaluated in working space.
    • isPointInFront

      public boolean isPointInFront(SbVec3f point)
      Gets whether the projector should intersect the half of the cylinder that faces the eye.
    • isOrientToEye

      public boolean isOrientToEye()
      Gets whether the projector should always be oriented towards the eye.
    • setCylinder

      public void setCylinder(SbCylinder cyl)
      Sets the cylinder on which to project points. The default cylinder is aligned with the Y axis and has radius 1.0.
    • getCylinder

      public SbCylinder getCylinder()
      Gets the cylinder on which to project points.
    • getRotation

      public SbRotation getRotation(SbVec3f point1, SbVec3f point2)
      Gets a rotation given two points on this cylinder projector. The rotation will be about the axis of the cylinder.
    • isFront

      public boolean isFront()
      Gets whether the projector should intersect the half of the cylinder that faces the eye.
    • projectAndGetRotation

      public SbRotation projectAndGetRotation(SbVec2f point)
      Applies the projector using the given point, returning the point in three dimensions that it projects to. This also returns in rot a rotation about the axis of the cylinder from the last projected point to this one. The passed point should be normalized (i.e. lie in the range [0.0,1.0]), with (0,0) at the lower-left.
    • setFront

      public void setFront(boolean isFront)
      Sets whether the projector should intersect the half of the cylinder that faces the eye. Set to false if the projector should intersect with the rear half.