man SbPlaneProjector () - plane projector
NAME
SbPlaneProjector - plane projector
INHERITS FROM
SbProjector > SbPlaneProjector
SYNOPSIS
#include <Inventor/projectors/SbPlaneProjector.h>
Methods from class SbPlaneProjector:
c
}
c
}
SbPlaneProjector(SbBool orient = FALSE)
c
}
c
}
SbPlaneProjector(const SbPlane &plane, SbBool orient = FALSE)
c
}
c
}
~SbPlaneProjector()
c
}
c
}
setPlane(const SbPlane &plane)
c
}
c
}
getPlane() const
c
}
c
}
setOrientToEye(SbBool orientToEye)
c
}
c
}
isOrientToEye() const
c
}
c
}
getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
c
}
c
}
getVector(const SbVec2f &mousePosition)
c
}
c
}
setStartPosition(const SbVec2f &mousePosition)
c
}
c
}
setStartPosition(const SbVec3f &point)
Methods from class SbProjector:
c
}
c
}
project(const SbVec2f &point)
c
}
c
}
setViewVolume(const SbViewVolume &vol)
c
}
c
}
getViewVolume() const
c
}
c
}
setWorkingSpace(const SbMatrix &space)
c
}
c
}
getWorkingSpace() const
c
}
c
}
copy() const
DESCRIPTION
SbPlaneProjector projects the mouse onto a plane. This is typically used to write interactive 3D manipulators and viewers.
METHODS
c
}
c
}
SbPlaneProjector(SbBool orient = FALSE)
Constructor. The default plane passes through the origin and is oriented perpendicular to the Z axis.
c
}
c
}
SbPlaneProjector(const SbPlane &plane, SbBool orient = FALSE)
Constructor which is passed a plane. If orient to eye is TRUE, the plane will be reoriented to the eye.
c
}
c
}
~SbPlaneProjector()
Destructor.
c
}
c
}
setPlane(const SbPlane &plane)
c
}
c
}
getPlane() const
Set and get the plane to use.
c
}
c
}
setOrientToEye(SbBool orientToEye)
c
}
c
}
isOrientToEye() 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.
c
}
c
}
getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
Get a vector on this plane given two normalized mouse positions.
c
}
c
}
getVector(const SbVec2f &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.
c
}
c
}
setStartPosition(const SbVec2f &mousePosition)
Set the initial mouse position.
c
}
c
}
setStartPosition(const SbVec3f &point)
Set the initial position from a point on the projector.
SEE ALSO
SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbLineProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector