SbPlaneProjector — plane projector
Contents
Description
SbPlaneProjector projects the mouse onto a plane. This is typically used to write interactive 3D
manipulators and viewers.
Inherits From
SbProjector > SbPlaneProjector
Methods
SbPlaneProjector(SbBoolorient=FALSE)
Constructor. The default plane passes through the origin and is oriented perpendicular to the Z axis.
SbPlaneProjector(constSbPlane&plane,SbBoolorient=FALSE)
Constructor which is passed a plane. If orient to eye is TRUE, the plane will be reoriented to the
eye.
~SbPlaneProjector()
Destructor.
voidsetPlane(constSbPlane&plane)constSbPlane&getPlane()const
Set and get the plane to use.
voidsetOrientToEye(SbBoolorientToEye)SbBoolisOrientToEye()const
Set and get whether the projector should be oriented towards the eye. If orientToEye is set to TRUE,
the given plane's direction is ignored, and the plane will be oriented to the eye. It will pass
through the same point from the origin defined by the original dir * dist. Set to FALSE if the plane's
direction should remain in working space.
virtualSbVec3fgetVector(constSbVec2f&mousePosition1,constSbVec2f&mousePosition2)
Get a vector on this plane given two normalized mouse positions.
virtualSbVec3fgetVector(constSbVec2f&mousePosition)
Get a vector given the current mouse point. Uses the last point on this projector from the previous
call to 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.
voidsetStartPosition(constSbVec2f&mousePosition)
Set the initial mouse position.
voidsetStartPosition(constSbVec3f&point)
Set the initial position from a point on the projector.
Name
SbPlaneProjector — plane projector
See Also
SbCylinderProjector,SbCylinderPlaneProjector,SbCylinderSectionProjector,SbCylinderSheetProjector,SbLineProjector,SbSpherePlaneProjector,SbSphereProjector,SbSphereSectionProjector,SbSphereSheetProjectorSbPlaneProjector(3IV)()
Synopsis
#include<Inventor/projectors/SbPlaneProjector.h>
Methods from class SbPlaneProjector:
SbPlaneProjector(SbBoolorient=FALSE)SbPlaneProjector(constSbPlane&plane,SbBoolorient=FALSE)~SbPlaneProjector()voidsetPlane(constSbPlane&plane)constSbPlane&getPlane()constvoidsetOrientToEye(SbBoolorientToEye)SbBoolisOrientToEye()constvirtualSbVec3fgetVector(constSbVec2f&mousePosition1,constSbVec2f&mousePosition2)virtualSbVec3fgetVector(constSbVec2f&mousePosition)voidsetStartPosition(constSbVec2f&mousePosition)voidsetStartPosition(constSbVec3f&point)
Methods from class SbProjector:
virtualSbVec3fproject(constSbVec2f&point)virtualvoidsetViewVolume(constSbViewVolume&vol)constSbViewVolume&getViewVolume()constvirtualvoidsetWorkingSpace(constSbMatrix&space)constSbMatrix&getWorkingSpace()constvirtualSbProjector*copy()const