Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
BIAS::View Class Reference

A view is a rectangular part of a render context in which a set of scenes is rendered using a GLProjection. More...

#include <GLviewer/View.hh>

Public Member Functions

void AppendScene (SceneBase *scene)
 Appends a scene to the list of scenes to be rendered in this view. More...
 
void InsertSceneAt (SceneBase *scene, int index)
 Inserts a scene to the given position in the list of scenes. More...
 
void RemoveScene (SceneBase *scene)
 Removes a scene from the list of scenes. More...
 
void RemoveSceneAt (SceneBase *scene, int index)
 Removes the scene with the given index. More...
 
int Render ()
 
void SetBackgroundImageScene (SceneBGImage *bg)
 
void SetClearColor (float red, float green, float blue, float alpha=1.0f)
 
void SetGLProjectionParametersInterface (GLProjectionParametersInterface *camera)
 Sets the GLProjection to be used for rendering this view. More...
 
void SetViewport (int x, int y, int width, int height)
 
 View ()
 

Detailed Description

A view is a rectangular part of a render context in which a set of scenes is rendered using a GLProjection.

Author
jkollmann

Definition at line 25 of file View.hh.

Constructor & Destructor Documentation

View::View ( )

Definition at line 9 of file View.cpp.

Member Function Documentation

void View::AppendScene ( SceneBase scene)

Appends a scene to the list of scenes to be rendered in this view.

Every scene can only be added to one view!

Definition at line 46 of file View.cpp.

References BIAS::SceneBase::SetGLProjectionParametersInterface().

void View::InsertSceneAt ( SceneBase scene,
int  index 
)

Inserts a scene to the given position in the list of scenes.

Every scene can only be added to one view!

Definition at line 65 of file View.cpp.

References BIAS::SceneBase::SetGLProjectionParametersInterface().

void View::RemoveScene ( SceneBase scene)

Removes a scene from the list of scenes.

Definition at line 54 of file View.cpp.

void View::RemoveSceneAt ( SceneBase scene,
int  index 
)

Removes the scene with the given index.

Definition at line 80 of file View.cpp.

int View::Render ( )

Definition at line 95 of file View.cpp.

void View::SetBackgroundImageScene ( SceneBGImage bg)

Definition at line 30 of file View.cpp.

void View::SetClearColor ( float  red,
float  green,
float  blue,
float  alpha = 1.0f 
)

Definition at line 24 of file View.cpp.

void View::SetGLProjectionParametersInterface ( GLProjectionParametersInterface camera)

Sets the GLProjection to be used for rendering this view.

Every GLProjection can only be added to one view!

Definition at line 36 of file View.cpp.

void View::SetViewport ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 18 of file View.cpp.


The documentation for this class was generated from the following files: