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

xchen::View Class Reference

xia's fundamental unit for open GL rendering. More...

#include <View.H>

List of all members.

Public Methods

 View ()
 All constructed View will register at static View::vector<View*>.

 ~View ()
 All deconstructed View will de-register from static View::vector<View*>.

int GetViewID () const
 Get index of this View in the static View::vector<View*>.

void SetInteractive ()
void Erase_glModel (glModel *gl_m)
void Add_glModel (glModel *gl_m)
void ReadModel (const string &filename)
 add new glModel, or read new model into the selected glModel.

void Render ()
dVector3D GetOrthographicVisualRay () const
const GLViewPortGetGLViewPort () const
double ScreenX2WorldX (int x)
 recover screen x to world x, works only for orthographic projections.

double ScreenY2WorldY (int y)
 recover screen y to world y, works only for orthographic projections.

double ScreenDX2WorldDX (int dx)
 recover screen dx to world dx, works only for orthographic projections.

double ScreenDY2WorldDY (int dy)
 recover screen dy to world dy, works only for orthographic projections.

UI & GetUI ()

Static Public Methods

View * GetViewFromScreenPosition (int, int)
View * GetInteractiveView ()
 Use non-static SetInteractive() to set.

RGBABackGroundColor ()
GLenum & RenderMode ()
void RenderAll ()
void View::display ()
void Reshape ()
bool IsFullScreen ()
UI & GetInteractiveUI ()

Friends

ostream & operator<< (ostream &os, const View &v)
ostream & operator<< (ostream &os, const View *v)


Detailed Description

xia's fundamental unit for open GL rendering.

Each View shows a separate viewport on the screen.


Constructor & Destructor Documentation

xchen::View::View  
 

All constructed View will register at static View::vector<View*>.

xchen::View::~View  
 

All deconstructed View will de-register from static View::vector<View*>.


Member Function Documentation

void xchen::View::Add_glModel glModel   gl_m [inline]
 

RGBA& xchen::View::BackGroundColor   [inline, static]
 

void xchen::View::Erase_glModel glModel   gl_m [inline]
 

const GLViewPort& xchen::View::GetGLViewPort   const [inline]
 

UI & xchen::View::GetInteractiveUI   [inline, static]
 

View* xchen::View::GetInteractiveView   [inline, static]
 

Use non-static SetInteractive() to set.

dVector3D xchen::View::GetOrthographicVisualRay  
 

UI& xchen::View::GetUI   [inline]
 

View * xchen::View::GetViewFromScreenPosition int   ,
int   
[inline, static]
 

int xchen::View::GetViewID  
 

Get index of this View in the static View::vector<View*>.

bool xchen::View::IsFullScreen   [inline, static]
 

void xchen::View::ReadModel const string &    filename
 

add new glModel, or read new model into the selected glModel.

void xchen::View::Render  
 

void xchen::View::RenderAll   [static]
 

GLenum& xchen::View::RenderMode   [inline, static]
 

void xchen::View::Reshape   [static]
 

double xchen::View::ScreenDX2WorldDX int    dx [inline]
 

recover screen dx to world dx, works only for orthographic projections.

double xchen::View::ScreenDY2WorldDY int    dy [inline]
 

recover screen dy to world dy, works only for orthographic projections.

double xchen::View::ScreenX2WorldX int    x [inline]
 

recover screen x to world x, works only for orthographic projections.

double xchen::View::ScreenY2WorldY int    y [inline]
 

recover screen y to world y, works only for orthographic projections.

void xchen::View::SetInteractive   [inline]
 

void xchen::View::View::display   [inline, static]
 


Friends And Related Function Documentation

ostream& operator<< ostream &    os,
const View *    v
[friend]
 

ostream& operator<< ostream &    os,
const View &    v
[friend]
 


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