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

SphereProjector Class Reference

This is an abstract base class for projectors that somehow use a sphere in their projection. More...

Inheritance diagram for SphereProjector:

SphereSectionProjector SphereSheetProjector SpherePlaneProjector List of all members.

Public Member Functions

virtual EMMA_EXPORT Fusion::Vec3f project (const Fusion::Vec2f &point)=0
 Apply the projector using the given point, returning the point in three dimensions that it projects to.
EMMA_EXPORT Fusion::Vec3f projectAndGetRotation (const Fusion::Vec2f &point, Fusion::Rotation &rot)
 Same as above, but also get a rotation from the last projected point to this one.
EMMA_EXPORT void resetLastPoint ()
 Reset the last projected point from previous call to projectAndGetRotation.
virtual EMMA_EXPORT Fusion::Rotation getRotation (const Fusion::Vec3f &point1, const Fusion::Vec3f &point2)=0
 Get a rotation given two points on this sphere projector.

Detailed Description

This is an abstract base class for projectors that somehow use a sphere in their projection.


Member Function Documentation

virtual EMMA_EXPORT Fusion::Vec3f project const Fusion::Vec2f &  point  )  [pure 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.

Implemented in SpherePlaneProjector, SphereSectionProjector, and SphereSheetProjector.


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