ComputerGraphik TU WIEN
Public Member Functions | Protected Attributes | List of all members
Selector Class Reference

TODO. More...

#include <selector.hpp>

Inheritance diagram for Selector:
SceneObject

Public Member Functions

 Selector (const std::string &name, Scene *scene)
 
 ~Selector ()
 
virtual void reset ()
 
virtual void draw () const
 
virtual void update (double deltaT)
 
virtual void pickObject (const glm::ivec2 &mouse)
 
int getBufferWidth () const
 
int getBufferHeight () const
 
size_t getLastSelected () const
 
size_t getLastDistance () const
 
- Public Member Functions inherited from SceneObject
 SceneObject (std::shared_ptr< SceneObject > &effectParent, const glm::mat4 &modelMatrix=glm::mat4(1))
 
 SceneObject (const std::string &name, Scene *scene=0, Model *model=0, const glm::mat4 &modelMatrix=glm::mat4(1))
 
virtual ~SceneObject ()
 
ModelgetModel () const
 
ShadergetShader () const
 
glm::mat4 getModelMatrix () const
 
glm::mat4 getGlobalModelMatrix () const
 
std::string getName () const
 
std::shared_ptr< SceneObjectgetParent () const
 
void setAnimationTime (double time)
 
bool setAnimation (const Animation &anim)
 
bool delChild (size_t idx)
 
bool getChild (size_t idx, std::shared_ptr< SceneObject > &child) const
 
bool addChild (std::shared_ptr< SceneObject > &child)
 
bool remEffect (const std::string &name)
 
SceneObjectgetEffect (const std::string &name) const
 
bool addEffect (const std::string &name, std::unique_ptr< SceneObject > &effect)
 
bool doNotRender ()
 
bool getIsVolSun ()
 
virtual bool animate (double time)
 
virtual void setShader (Shader *val)
 

Protected Attributes

int width
 
int height
 
GLuint idBuffer
 
GLuint idTexture
 
size_t lastDistance
 
size_t lastSelected
 
- Protected Attributes inherited from SceneObject
GLuint vao
 
Scenescene
 
Modelmodel
 
Shadershader
 
glm::mat4 modelMatrix
 
std::string name
 
std::weak_ptr< SceneObjectparent
 
std::vector< std::shared_ptr< SceneObject > > childs
 
std::map< std::string, std::unique_ptr< SceneObject > > effectChilds
 
size_t animIDX
 
Animation animation
 
bool norender
 
bool isVolSun
 

Additional Inherited Members

- Public Types inherited from SceneObject
typedef std::vector< std::pair< double, glm::mat4 > > Animation
 

Detailed Description

TODO.

Constructor & Destructor Documentation

Selector::Selector ( const std::string &  name,
Scene scene 
)
Selector::~Selector ( )

Member Function Documentation

virtual void Selector::draw ( ) const
virtual

Reimplemented from SceneObject.

int Selector::getBufferHeight ( ) const
inline
int Selector::getBufferWidth ( ) const
inline
size_t Selector::getLastDistance ( ) const
inline
size_t Selector::getLastSelected ( ) const
inline
virtual void Selector::pickObject ( const glm::ivec2 &  mouse)
virtual
virtual void Selector::reset ( )
virtual

Reimplemented from SceneObject.

virtual void Selector::update ( double  deltaT)
virtual

Reimplemented from SceneObject.

Member Data Documentation

int Selector::height
protected
GLuint Selector::idBuffer
protected
GLuint Selector::idTexture
protected
size_t Selector::lastDistance
protected
size_t Selector::lastSelected
protected
int Selector::width
protected

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