SbSphereProjector Class Reference
[Projectors]

Sphere projector. More...

#include <Inventor/projectors/SbSphereProjector.h>

Inheritance diagram for SbSphereProjector:
SbProjector SbSphereSectionProjector SbSphereSheetProjector SbSpherePlaneProjector

List of all members.

Public Member Functions

virtual SbVec3f project (const SbVec2f &point)=0
virtual SbVec3f intersect (const SbLine &line)=0
SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot)
virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)=0
void setSphere (const SbSphere &sph)
const SbSpheregetSphere () const
void setOrientToEye (SbBool orientToEye)
SbBool isOrientToEye () const
void setFront (SbBool inFront)
SbBool isFront () const
SbBool isPointInFront (const SbVec3f &point) const
virtual void setWorkingSpace (const SbMatrix &space)
virtual ~SbSphereProjector ()

Detailed Description

Sphere projector.

SbSphereProjector is an abstract base class for projectors that use a sphere in their projection. Sphere projectors are typically used to write interactive 3D manipulators and viewers.

SEE ALSO

SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereSectionProjector, SbSphereSheetProjector


Constructor & Destructor Documentation

virtual SbSphereProjector::~SbSphereProjector (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual SbRotation SbSphereProjector::getRotation ( const SbVec3f point1,
const SbVec3f point2 
) [pure virtual]

Gets a rotation given two points on this sphere projector.

The rotation will be on the surface of the sphere.

Implemented in SbSpherePlaneProjector, SbSphereSectionProjector, and SbSphereSheetProjector.

const SbSphere& SbSphereProjector::getSphere (  )  const [inline]

Gets the sphere on which to project points.

virtual SbVec3f SbSphereProjector::intersect ( const SbLine line  )  [pure virtual]

Applies the projector using the given line in world coordinates, returning the point in three dimensions that it projects to.

New for v3.0.

Implements SbProjector.

Implemented in SbSpherePlaneProjector, SbSphereSectionProjector, and SbSphereSheetProjector.

SbBool SbSphereProjector::isFront (  )  const [inline]

Gets whether the projector should intersect the half of the sphere that faces the eye.

SbBool SbSphereProjector::isOrientToEye (  )  const [inline]

Gets whether the projector should always be oriented towards the eye.

SbBool SbSphereProjector::isPointInFront ( const SbVec3f point  )  const

Gets whether the projector should intersect the half of the sphere that faces the eye.

virtual SbVec3f SbSphereProjector::project ( const SbVec2f point  )  [pure virtual]

Applies the projector using the given point, returning the point in three dimensions that it projects to.

The point should be normalized from 0-1, with (0,0) at the lower-left.

Implements SbProjector.

Implemented in SbSpherePlaneProjector, SbSphereSectionProjector, and SbSphereSheetProjector.

SbVec3f SbSphereProjector::projectAndGetRotation ( const SbVec2f point,
SbRotation rot 
)

Applies the projector using the given point, returning the point in three dimensions that it projects to.

This also returns in rot a rotation on the surface of the sphere from the last projected point to this one. The passed point should be normalized (i.e. lie in the range [0.0,1.0]), with (0,0) at the lower-left.

void SbSphereProjector::setFront ( SbBool  inFront  ) 

Sets whether the projector should intersect the half of the sphere that faces the eye.

Set to FALSE if the projector should intersect with the rear half.

void SbSphereProjector::setOrientToEye ( SbBool  orientToEye  ) 

Sets whether the projector should always be oriented towards the eye.

Set to FALSE if the tolerance should be evaluated in working space.

void SbSphereProjector::setSphere ( const SbSphere sph  ) 

Sets the sphere on which to project points.

The default sphere has radius 1.0.

virtual void SbSphereProjector::setWorkingSpace ( const SbMatrix space  )  [virtual]

Sets the transform space to work in.

Reimplemented from SbProjector.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/