Class SbSphereSheetProjector
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.projectors.SbProjector
com.openinventor.inventor.projectors.SbSphereProjector
com.openinventor.inventor.projectors.SbSphereSheetProjector
Sphere-sheet projector.
SbSphereSheetProjector
projects a window space point (usually based on the mouse location) onto the surface of a sphere with a hyperbolic sheet draped over it. This allows smooth transitions onto and off of the sphere. Two projected points can produce a rotation about the sphere's center. When the mouse position projects on to the sheet, the rotations will be as if the sheet is being dragged, causing the sphere to roll beneath it.
Incremental changes (delta rotation) can be computed during interactive sessions. Sphere projectors are typically used to write interactive 3D manipulators and viewers.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCalls SbSphereSheetProjector(true).SbSphereSheetProjector
(boolean orientToEye) Constructor that uses a default sphere centered at the origin with radius 1.0.Calls SbSphereSheetProjector(sph, true).SbSphereSheetProjector
(SbSphere sph, boolean orientToEye) Constructor that uses a supplied sphere. -
Method Summary
Methods inherited from class com.openinventor.inventor.projectors.SbSphereProjector
getRotation, getSphere, isFront, isOrientToEye, isPointInFront, projectAndGetRotation, setFront, setOrientToEye, setSphere
Methods inherited from class com.openinventor.inventor.projectors.SbProjector
copy, getViewVolume, getWorkingSpace, intersect, project, setViewVolume, setWorkingSpace
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SbSphereSheetProjector
Calls SbSphereSheetProjector(sph, true). -
SbSphereSheetProjector
public SbSphereSheetProjector()Calls SbSphereSheetProjector(true). -
SbSphereSheetProjector
public SbSphereSheetProjector(boolean orientToEye) Constructor that uses a default sphere centered at the origin with radius 1.0. The orientToEye parameter determines whether the sheet is perpendicular to the eye, or perpendicular to the sphere's Z axis. Setting that parameter to true (the default) specifies that the sheet be perpendicular to the eye, which is most often the desired behavior.The default view volume is undefined, and the working space is identity.
-
SbSphereSheetProjector
Constructor that uses a supplied sphere. The orientToEye parameter determines whether the sheet is perpendicular to the eye, or perpendicular to the sphere's Z axis. Setting that parameter to true (the default) specifies that the sheet be perpendicular to the eye, which is most often the desired behavior.The default view volume is undefined, and the working space is identity.
-