public class SbCylinderProjector extends SbProjector
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:
SbCylinderPlaneProjector
, SbCylinderSectionProjector
, SbCylinderSheetProjector
, SbLineProjector
, SbPlaneProjector
, SbSpherePlaneProjector
, SbSphereProjector
, SbSphereSectionProjector
, SbSphereSheetProjector
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
SbCylinder |
getCylinder()
Gets the cylinder on which to project points.
|
SbRotation |
getRotation(SbVec3f point1,
SbVec3f point2)
Gets a rotation given two points on this cylinder projector.
|
boolean |
isFront()
Gets whether the projector should intersect the half of the cylinder that faces the eye.
|
boolean |
isOrientToEye()
Gets whether the projector should always be oriented towards the eye.
|
boolean |
isPointInFront(SbVec3f point)
Gets whether the projector should intersect the half of the cylinder that faces the eye.
|
SbRotation |
projectAndGetRotation(SbVec2f point)
Applies the projector using the given point, returning the point in three dimensions that it projects to.
|
void |
setCylinder(SbCylinder cyl)
Sets the cylinder on which to project points.
|
void |
setFront(boolean isFront)
Sets whether the projector should intersect the half of the cylinder that faces the eye.
|
void |
setOrientToEye(boolean orientToEye)
Sets whether the projector should always be oriented towards the eye.
|
copy, getViewVolume, getWorkingSpace, intersect, project, setViewVolume, setWorkingSpace
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void setOrientToEye(boolean orientToEye)
public boolean isPointInFront(SbVec3f point)
public boolean isOrientToEye()
public void setCylinder(SbCylinder cyl)
public SbCylinder getCylinder()
public SbRotation getRotation(SbVec3f point1, SbVec3f point2)
public boolean isFront()
public SbRotation projectAndGetRotation(SbVec2f point)
public void setFront(boolean isFront)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com