public class SbSphereSectionProjector extends SbSphereProjector
SbSphereSectionProjector
projects a window space point (usually based on the mouse location) onto the section of a sphere that has been sliced by a plane. Two projected points can produce a rotation about the sphere's center. The tolerance slice can be specified as a fraction of the radius of the sphere. The projection point will not extend beyond the sliced portion of the sphere.
Incremental changes (delta rotation) can be computed during interactive sessions. Sphere projectors are typically used to write interactive 3D manipulators and viewers.
See also:
SbCylinderProjector
, SbCylinderSectionProjector
, SbCylinderPlaneProjector
, SbCylinderSheetProjector
, SbLineProjector
, SbPlaneProjector
, SbSpherePlaneProjector
, SbSphereSheetProjector
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbSphereSectionProjector()
Calls SbSphereSectionProjector((float)0.9f, true).
|
SbSphereSectionProjector(float edgeTol)
Calls SbSphereSectionProjector(edgeTol, true).
|
SbSphereSectionProjector(float edgeTol,
boolean orientToEye)
Constructor that uses a default sphere centered at the origin with radius 1.0.
|
SbSphereSectionProjector(SbSphere sph)
Calls SbSphereSectionProjector(sph, (float)0.9f, true).
|
SbSphereSectionProjector(SbSphere sph,
float edgeTol)
Calls SbSphereSectionProjector(sph, edgeTol, true).
|
SbSphereSectionProjector(SbSphere sph,
float edgeTol,
boolean orientToEye)
Constructor that uses a supplied sphere.
|
Modifier and Type | Method and Description |
---|---|
float |
getRadialFactor()
Gets the radial rotation factor.
|
float |
getTolerance()
Gets the edge tolerance as a fraction of the radius of the sphere.
|
boolean |
isWithinTolerance(SbVec3f point)
Finds whether this point on the sphere or tolerance plane is within tolerance.
|
void |
setRadialFactor()
Calls setRadialFactor((float)0.0).
|
void |
setRadialFactor(float rad)
Sets the radial rotation factor.
|
void |
setTolerance(float edgeTol)
Sets the edge tolerance as a fraction of the radius of the sphere.
|
getRotation, getSphere, isFront, isOrientToEye, isPointInFront, projectAndGetRotation, setFront, setOrientToEye, setSphere
copy, getViewVolume, getWorkingSpace, intersect, project, setViewVolume, setWorkingSpace
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbSphereSectionProjector(SbSphere sph)
public SbSphereSectionProjector(float edgeTol)
public SbSphereSectionProjector()
public SbSphereSectionProjector(SbSphere sph, float edgeTol)
public SbSphereSectionProjector(float edgeTol, boolean orientToEye)
The default view volume is undefined, and the working space is identity.
public SbSphereSectionProjector(SbSphere sph, float edgeTol, boolean orientToEye)
The default view volume is undefined, and the working space is identity.
public void setRadialFactor()
public void setTolerance(float edgeTol)
public void setRadialFactor(float rad)
public float getTolerance()
public float getRadialFactor()
public boolean isWithinTolerance(SbVec3f point)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com