Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SbSphereSheetProjector Class Reference

The SbSphereSheetProjector class projects 2D points to 3D points on a sheet covering a spherical shape. More...

#include <Inventor/projectors/SbSphereSheetProjector.h>

Inheritance diagram for SbSphereSheetProjector::

SbSphereProjector SbProjector List of all members.

Public Methods

 SbSphereSheetProjector (const SbBool orienttoeye=TRUE)
 SbSphereSheetProjector (const SbSphere &sph, const SbBool orienttoeye=TRUE)
virtual SbProjectorcopy (void) const
virtual SbVec3f project (const SbVec2f &point)
virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)

Protected Methods

void setupPlane (void)

Protected Attributes

SbVec3f workingProjPoint
SbVec3f planePoint
SbVec3f planeDir
float planeDist
SbPlane tolPlane

Detailed Description

The SbSphereSheetProjector class projects 2D points to 3D points on a sheet covering a spherical shape.


Constructor & Destructor Documentation

SbSphereSheetProjector::SbSphereSheetProjector const SbBool orienttoeye = TRUE
 

Constructor. Uses default sphere defintion, see SbSphereProjector::SbSphereProjector().

orienttoeye decides whether or not the sheet should always be oriented towards the viewer.

SbSphereSheetProjector::SbSphereSheetProjector const SbSphere & sph,
const SbBool orienttoeye = TRUE
 

Constructor with explicit definition of projection sphere.


Member Function Documentation

SbProjector * SbSphereSheetProjector::copy void const [virtual]
 

Construct and return a copy of this projector. The caller is responsible for destructing the new instance.

Reimplemented from SbProjector.

SbVec3f SbSphereSheetProjector::project const SbVec2f & point [virtual]
 

Project the 2D point from normalized viewport coordinates to a 3D point. The mapping will be done in accordance with the type of the projector.

Reimplemented from SbProjector.

SbRotation SbSphereSheetProjector::getRotation const SbVec3f & point1,
const SbVec3f & point2
[virtual]
 

Returns rotation on the projection surface which re-orients point1 to point2.

Reimplemented from SbSphereProjector.

void SbSphereSheetProjector::setupPlane void [protected]
 

Recalculates projection surface settings after changes to the parameters.


Member Data Documentation

SbSphereSheetProjector::workingProjPoint [protected]
 

Last projected point, in the working space coordinate system.

SbSphereSheetProjector::planePoint [protected]
 

Position of the center of the sphere in the plane of the hyberbolic sheet.

SbSphereSheetProjector::planeDir [protected]
 

Normal vector of the plane defining the orientation of the sheet.

SbSphereSheetProjector::planeDist [protected]
 

For internal use only.

SbSphereSheetProjector::tolPlane [protected]
 

The tolerance value specifying how much of the sphere is "above" the sheet.


The documentation for this class was generated from the following files:
Generated at Tue Mar 5 03:31:31 2002 for Coin by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001