Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

xchen::CubicProjection Class Reference

#include <CubicProjection.H>

List of all members.

Public Methods

 CubicProjection (int u_res=100, int v_res=100)
 ~CubicProjection ()
void CubeTextMapping2Sphere ()
void GenerateProjectiveCoords ()

Static Public Methods

dVector3DCube2Sphere (int face, double u, double v)
void LookAtFace (int idx)
 Apply rotation so that looking at the face along the -z direction, with eye at origin.

XiaViewPort GetXiaViewPort (int idx, double wh_ratio=1.0)
 Get the sub-viewport in the whole viewport with wh_ratio.


Constructor & Destructor Documentation

xchen::CubicProjection::CubicProjection int    u_res = 100,
int    v_res = 100
[inline]
 

xchen::CubicProjection::~CubicProjection   [inline]
 


Member Function Documentation

dVector3D* xchen::CubicProjection::Cube2Sphere int    face,
double    u,
double    v
[static]
 

void xchen::CubicProjection::CubeTextMapping2Sphere  
 

void xchen::CubicProjection::GenerateProjectiveCoords  
 

XiaViewPort xchen::CubicProjection::GetXiaViewPort int    idx,
double    wh_ratio = 1.0
[static]
 

Get the sub-viewport in the whole viewport with wh_ratio.

The returned sub_viewport is of wh_ratio 1.0.

The six cube faces are laid out at screen as,

------- | | | top | | | -------------------------- | | | | | | left | back|right|front| | | | | | -------------------------- | | |botto| | | -------

void xchen::CubicProjection::LookAtFace int    idx [static]
 

Apply rotation so that looking at the face along the -z direction, with eye at origin.


The documentation for this class was generated from the following file:
Generated on Wed Apr 7 21:40:50 2004 by doxygen1.2.18