public class SbCylinderSectionProjector extends SbCylinderProjector
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
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbCylinderSectionProjector()
Calls SbCylinderSectionProjector((float)0.9f, true).
|
SbCylinderSectionProjector(float edgeTol)
Calls SbCylinderSectionProjector(edgeTol, true).
|
SbCylinderSectionProjector(float edgeTol,
boolean orientToEye)
Constructor that uses a default cylinder aligned with the Y axis with radius 1.0.
|
SbCylinderSectionProjector(SbCylinder cyl)
Calls SbCylinderSectionProjector(cyl, (float)0.9f, true).
|
SbCylinderSectionProjector(SbCylinder cyl,
float edgeTol)
Calls SbCylinderSectionProjector(cyl, edgeTol, true).
|
SbCylinderSectionProjector(SbCylinder cyl,
float edgeTol,
boolean orientToEye)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getTolerance()
Gets the edge tolerance as a fraction of the radius of the cylinder.
|
boolean |
isWithinTolerance(SbVec3f point)
Finds whether this point on the cylinder or tolerance plane is within tolerance.
|
void |
setTolerance(float edgeTol)
Sets the edge tolerance as a fraction of the radius of the cylinder.
|
getCylinder, getRotation, isFront, isOrientToEye, isPointInFront, projectAndGetRotation, setCylinder, setFront, setOrientToEye
copy, getViewVolume, getWorkingSpace, intersect, project, setViewVolume, setWorkingSpace
dispose, getNativeResourceHandle
public SbCylinderSectionProjector()
public SbCylinderSectionProjector(SbCylinder cyl)
public SbCylinderSectionProjector(float edgeTol)
public SbCylinderSectionProjector(SbCylinder cyl, float edgeTol)
public SbCylinderSectionProjector(float edgeTol, boolean orientToEye)
The default view volume is undefined, and the working space is identity.
public SbCylinderSectionProjector(SbCylinder cyl, float edgeTol, boolean orientToEye)
The default view volume is undefined, and the working space is identity.
public void setTolerance(float edgeTol)
public float getTolerance()
public boolean isWithinTolerance(SbVec3f point)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com