public class SbProjector extends Inventor
SbProjector
is the base class for all projector classes. Projector classes are used to convert from window space (usually based on the mouse location) into a 3D point. This is done by projecting the window coordinate as a 3D vector onto a geometric function in 3-space, and computing the intersection point. Most projectors actually compute incremental changes and produce incremental rotations and translation as needed. Projectors are used to write 3D interactive manipulators and viewers.
See also:
SbCylinderProjector
, SbCylinderPlaneProjector
, SbCylinderSectionProjector
, SbCylinderSheetProjector
, SbLineProjector
, SbPlaneProjector
, SbSpherePlaneProjector
, SbSphereProjector
, SbSphereSectionProjector
, SbSphereSheetProjector
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
SbProjector |
copy()
Creates and returns an exact copy of the projector.
|
SbViewVolume |
getViewVolume()
Get the view volume to use for the projection.
|
SbMatrix |
getWorkingSpace()
Get the transform space to work in.
|
SbVec3f |
intersect(SbLine line)
Applies the projector using the given line in world coordinates, returning the point in three dimensions that it projects to.
|
SbVec3f |
project(SbVec2f point)
Apply the projector using the given point, returning the point in three dimensions that it projects to.
|
void |
setViewVolume(SbViewVolume vol)
Set the view volume to use for the projection.
|
void |
setWorkingSpace(SbMatrix space)
Set the transform space to work in.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbVec3f intersect(SbLine line)
public SbVec3f project(SbVec2f point)
public void setWorkingSpace(SbMatrix space)
public void setViewVolume(SbViewVolume vol)
SoCamera.getViewVolume()
.public SbMatrix getWorkingSpace()
public SbViewVolume getViewVolume()
public SbProjector copy()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com