iso::visual::View Class Reference

#include <iso_visual_view.h>

Collaboration diagram for iso::visual::View:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 View (const math::Vector2< unsigned int > &pPosition, const math::Vector2< unsigned int > &pSize, GLProgram *pProgram)
 create view
 View (const math::Vector2< real > &pPosition, const math::Vector2< real > &pSize, GLProgram *pProgram)
 create view
 View (const base::String &pName, const math::Vector2< unsigned int > &pPosition, const math::Vector2< unsigned int > &pSize, GLProgram *pProgram)
 create view
 View (const base::String &pName, const math::Vector2< real > &pPosition, const math::Vector2< real > &pSize, GLProgram *pProgram)
 create view
 ~View ()
 destructor
const base::String & name () const
 return view name
Cameracamera ()
 return camera
Scenescene ()
 return scene
void setScene (Scene *pScene)
 set scene
void setPosition (const math::Vector2< int > &pPosition)
 set absolute position
void setSize (const math::Vector2< int > &pSize)
 set absolute size
void resize (int pWidth, int pHeight)
 resize view
void update ()
 update view
void render ()
 render view

Protected Member Functions

 View ()
 create view
void updateRelValues ()
 caclulate relative position and size values

Protected Attributes

base::String mName
 name
math::Vector2< realmAbsPosition
math::Vector2< realmAbsSize
 absolute position
math::Vector2< realmRelPosition
 absolute size
math::Vector2< realmRelSize
 relative position with regard to window size
math::Vector2< realmWindowSize
 relative size with regard to window size
math::Matrix4< realmGLModelMatrix
 window size
math::Matrix4< realmGLViewMatrix
math::Matrix4< realmGLProjectionMatrix
bool mUpdateRelValues
ScenemScene
 flag whether new relative position and size should be calculated scene
Camera mCamera
 camera

Static Protected Attributes

static base::String sName
 default name
static unsigned int sCount
 instance count

Constructor & Destructor Documentation

View::View ( const math::Vector2< unsigned int > &  pPosition,
const math::Vector2< unsigned int > &  pSize,
GLProgram pProgram 
)

create view

Parameters:
pPosition absolute view position
pSize absolute view size

View::View ( const math::Vector2< real > &  pPosition,
const math::Vector2< real > &  pSize,
GLProgram pProgram 
)

create view

Parameters:
pPosition relative view position
pSize relative view size

View::View ( const base::String &  pName,
const math::Vector2< unsigned int > &  pPosition,
const math::Vector2< unsigned int > &  pSize,
GLProgram pProgram 
)

create view

Parameters:
pPosition absolute view position
pSize absolute view size

View::View ( const base::String &  pName,
const math::Vector2< real > &  pPosition,
const math::Vector2< real > &  pSize,
GLProgram pProgram 
)

create view

Parameters:
pPosition relative view position
pSize relative view size

View::~View (  ) 

destructor

View::View (  )  [protected]

create view


Member Function Documentation

const base::String & View::name (  )  const

return view name

Returns:
view name

Camera * View::camera (  ) 

return camera

Returns:
camera

Scene * View::scene (  ) 

return scene

Returns:
scene

void View::setScene ( Scene pScene  ) 

set scene

Parameters:
pScene scene

void View::setPosition ( const math::Vector2< int > &  pPosition  ) 

set absolute position

Parameters:
pPosition absolute position

void View::setSize ( const math::Vector2< int > &  pSize  ) 

set absolute size

Parameters:
pSize absolute size

void View::resize ( int  pWidth,
int  pHeight 
)

resize view

Parameters:
pWidth window width
pHeight window height

void View::update (  ) 

update view

void View::render (  ) 

render view

void View::updateRelValues (  )  [protected]

caclulate relative position and size values


Member Data Documentation

base::String View::sName [static, protected]

default name

unsigned int View::sCount [static, protected]

instance count

base::String iso::visual::View::mName [protected]

name

math::Vector2<real> iso::visual::View::mAbsPosition [protected]

math::Vector2<real> iso::visual::View::mAbsSize [protected]

absolute position

math::Vector2<real> iso::visual::View::mRelPosition [protected]

absolute size

math::Vector2<real> iso::visual::View::mRelSize [protected]

relative position with regard to window size

math::Vector2<real> iso::visual::View::mWindowSize [protected]

relative size with regard to window size

math::Matrix4<real> iso::visual::View::mGLModelMatrix [protected]

window size

model transformation matrix OpenGL format

math::Matrix4<real> iso::visual::View::mGLViewMatrix [protected]

camera view transformation matrix OpenGL format

math::Matrix4<real> iso::visual::View::mGLProjectionMatrix [protected]

camera projection transformation matrix OpenGL format

bool iso::visual::View::mUpdateRelValues [protected]

Scene* iso::visual::View::mScene [protected]

flag whether new relative position and size should be calculated scene

Camera iso::visual::View::mCamera [protected]

camera


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:23:42 2011 for iso visual by  doxygen 1.5.1