#include <iso_visual_view.h>
Collaboration diagram for iso::visual::View:

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 | |
| Camera * | camera () |
| return camera | |
| Scene * | scene () |
| 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< real > | mAbsPosition |
| math::Vector2< real > | mAbsSize |
| absolute position | |
| math::Vector2< real > | mRelPosition |
| absolute size | |
| math::Vector2< real > | mRelSize |
| relative position with regard to window size | |
| math::Vector2< real > | mWindowSize |
| relative size with regard to window size | |
| math::Matrix4< real > | mGLModelMatrix |
| window size | |
| math::Matrix4< real > | mGLViewMatrix |
| math::Matrix4< real > | mGLProjectionMatrix |
| bool | mUpdateRelValues |
| Scene * | mScene |
| 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 | |
| View::View | ( | const math::Vector2< unsigned int > & | pPosition, | |
| const math::Vector2< unsigned int > & | pSize, | |||
| GLProgram * | pProgram | |||
| ) |
create view
| pPosition | absolute view position | |
| pSize | absolute view size |
| View::View | ( | const math::Vector2< real > & | pPosition, | |
| const math::Vector2< real > & | pSize, | |||
| GLProgram * | pProgram | |||
| ) |
create view
| 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
| 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
| pPosition | relative view position | |
| pSize | relative view size |
| View::~View | ( | ) |
destructor
| View::View | ( | ) | [protected] |
create view
| const base::String & View::name | ( | ) | const |
return view name
| Camera * View::camera | ( | ) |
return camera
| Scene * View::scene | ( | ) |
return scene
| void View::setScene | ( | Scene * | pScene | ) |
set scene
| pScene | scene |
| void View::setPosition | ( | const math::Vector2< int > & | pPosition | ) |
set absolute position
| pPosition | absolute position |
| void View::setSize | ( | const math::Vector2< int > & | pSize | ) |
set absolute size
| pSize | absolute size |
| void View::resize | ( | int | pWidth, | |
| int | pHeight | |||
| ) |
resize view
| 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
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
1.5.1