Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

SpherePlaneProjector Class Reference

This projector projects the mouse position onto a sphere with a plane cutting through it. More...

Inheritance diagram for SpherePlaneProjector:

SphereSectionProjector SphereProjector List of all members.

Public Member Functions

 SpherePlaneProjector (float edgeTol=0.9, bool orientToEye=true)
 Default constructor.
 SpherePlaneProjector (const Sphere &sph, float edgeTol=0.9, bool orientToEye=true)
 Constructor taking the sphere.
 ~SpherePlaneProjector ()
 Destructor.
virtual Fusion::Vec3f project (const Fusion::Vec2f &point)
 Apply the projector using the given point, returning the point in three dimensions that it projects to.
virtual Fusion::Rotation getRotation (const Fusion::Vec3f &point1, const Fusion::Vec3f &point2)
 Computes a rotation based on two points on this projector.

Detailed Description

This projector projects the mouse position onto a sphere with a plane cutting through it.

When the mouse position projects on to the plane, the rotations will be as if the plane is being dragged, causing the sphere to rotate beneath it.


Constructor & Destructor Documentation

SpherePlaneProjector float  edgeTol = 0.9,
bool  orientToEye = true
 

Default constructor.

The default view volume is undefined. The default working space is identity (world space). The default sphere to use has a radius of 1.0 and is centered at (0,0,0). The default edge tolerance is .9. The default eye orientation is true.


Member Function Documentation

virtual Fusion::Vec3f project const Fusion::Vec2f &  point  )  [virtual]
 

Apply 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.

Reimplemented from SphereSectionProjector.


Generated on Sat Apr 1 06:08:09 2006 for Emma Content Development Kit by  doxygen 1.4.3