public class SbPlaneProjector extends SbProjector
SbPlaneProjector
projects the mouse onto a plane. This is typically used to write interactive 3D manipulators and viewers.
See also:
SbCylinderProjector
, SbCylinderPlaneProjector
, SbCylinderSectionProjector
, SbCylinderSheetProjector
, SbLineProjector
, SbSpherePlaneProjector
, SbSphereProjector
, SbSphereSectionProjector
, SbSphereSheetProjector
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbPlaneProjector()
Calls SbPlaneProjector(false).
|
SbPlaneProjector(boolean orient)
Constructor.
|
SbPlaneProjector(SbPlane plane)
Calls SbPlaneProjector(plane, false).
|
SbPlaneProjector(SbPlane plane,
boolean orient)
Constructor which is passed a plane.
|
Modifier and Type | Method and Description |
---|---|
SbPlane |
getPlane()
Gets the plane to use.
|
SbVec3f |
getVector(SbVec2f mousePosition)
Gets a vector given the current mouse point.
|
SbVec3f |
getVector(SbVec2f mousePosition1,
SbVec2f mousePosition2)
Gets a vector on this plane given two normalized mouse positions.
|
boolean |
isOrientToEye()
Gets whether the projector should be oriented towards the eye.
|
void |
setOrientToEye(boolean orientToEye)
Sets whether the projector should be oriented towards the eye.
|
void |
setPlane(SbPlane plane)
Sets the plane to use.
|
void |
setStartPosition(SbVec2f mousePosition)
Sets the initial mouse position.
|
void |
setStartPosition(SbVec3f point)
Sets the initial position from a point on the projector.
|
copy, getViewVolume, getWorkingSpace, intersect, project, setViewVolume, setWorkingSpace
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbPlaneProjector()
public SbPlaneProjector(SbPlane plane)
public SbPlaneProjector(SbPlane plane, boolean orient)
public SbPlaneProjector(boolean orient)
public void setStartPosition(SbVec3f point)
public void setOrientToEye(boolean orientToEye)
public SbVec3f getVector(SbVec2f mousePosition1, SbVec2f mousePosition2)
public void setPlane(SbPlane plane)
public boolean isOrientToEye()
public void setStartPosition(SbVec2f mousePosition)
public SbPlane getPlane()
public SbVec3f getVector(SbVec2f mousePosition)
getVector()
or setStartPostion(). Do not use this if the working space transform is changing since the new point will be in a different space than the old one.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com