xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Graphics::Aurora::SubSceneQuad Class Reference

#include <subscenequad.h>

Inheritance diagram for Graphics::Aurora::SubSceneQuad:
Inheritance graph
[legend]
Collaboration diagram for Graphics::Aurora::SubSceneQuad:
Collaboration graph
[legend]

Public Member Functions

 SubSceneQuad ()
 
void calculateDistance ()
 Calculate the object's distance. More...
 
void render (RenderPass pass)
 Render the object. More...
 
void setPosition (int x, int y)
 
void setSize (int width, int height)
 
void setDistance (float distance)
 
void setProjectionMatrix (const glm::mat4 &projection)
 
void setGlobalTransformationMatrix (const glm::mat4 &transformation)
 
void setClearEnabled (bool clearEnabled)
 
void add (Renderable *renderable)
 Add a renderable to the sub scene. More...
 
void remove (Renderable *renderable)
 Remove a renderable from the sub scene. More...
 
- Public Member Functions inherited from Graphics::GUIElement
 GUIElement (GUIElementType type)
 
 ~GUIElement ()
 
- Public Member Functions inherited from Graphics::Renderable
 Renderable (RenderableType type)
 
 ~Renderable ()
 
bool operator< (const Queueable &q) const
 
virtual void advanceTime (float dt)
 Advance time (used by renderables with animations). More...
 
virtual void renderImmediate (const glm::mat4 &parentTransform)
 For shader based systems, don't sort anything, render this right_now. More...
 
virtual void queueRender (const glm::mat4 &parentTransform)
 Queue the object for later rendering. More...
 
double getDistance () const
 Get the distance of the object from the viewer. More...
 
uint32 getID () const
 Get the object's unique ID. More...
 
bool isClickable () const
 Is the object clickable? More...
 
void setClickable (bool clickable)
 Set the object's clickable state. More...
 
const Common::UStringgetTag () const
 Get the object's tag. More...
 
void setTag (const Common::UString &tag)
 Set the object's tag. More...
 
bool isVisible () const
 Is the object visible? More...
 
virtual void show ()
 Show the object. More...
 
virtual void hide ()
 Hide the object. More...
 
virtual bool isIn (float x, float y) const
 Is that point within the object? More...
 
virtual bool isIn (float x, float y, float z) const
 Is that point within the object? More...
 
virtual bool isIn (float x1, float y1, float z1, float x2, float y2, float z2) const
 Does the line from x1.y1.z1 to x2.y2.z2 intersect with the object? More...
 
- Public Member Functions inherited from Graphics::Queueable
 Queueable ()
 
virtual ~Queueable ()
 

Private Attributes

std::vector< Renderable * > _renderables
 
glm::mat4 _projection
 
glm::mat4 _transformation
 
uint32 _lastSampled
 
int _x
 
int _y
 
int _width
 
int _height
 
bool _clearEnabled
 

Additional Inherited Members

- Public Types inherited from Graphics::GUIElement
enum  GUIElementType { kGUIElementFront = kRenderableTypeGUIFront, kGUIElementBack = kRenderableTypeGUIBack, kGUIElementConsole = kRenderableTypeConsole }
 
- Protected Member Functions inherited from Graphics::Renderable
void resort ()
 
void lockFrame ()
 
void unlockFrame ()
 
void lockFrameIfVisible ()
 
void unlockFrameIfVisible ()
 
- Protected Member Functions inherited from Graphics::Queueable
bool isInQueue (QueueType queue) const
 
void addToQueue (QueueType queue)
 
void removeFromQueue (QueueType queue)
 
void lockQueue (QueueType queue)
 
void unlockQueue (QueueType queue)
 
void sortQueue (QueueType queue)
 
- Protected Attributes inherited from Graphics::Renderable
QueueType _queueExists
 
QueueType _queueVisible
 
uint32 _id
 
bool _clickable
 
Common::UString _tag
 
double _distance
 The distance of the object from the viewer. More...
 

Detailed Description

Definition at line 36 of file subscenequad.h.

Constructor & Destructor Documentation

◆ SubSceneQuad()

Graphics::Aurora::SubSceneQuad::SubSceneQuad ( )

Definition at line 39 of file subscenequad.cpp.

References Graphics::Renderable::_distance.

Member Function Documentation

◆ add()

void Graphics::Aurora::SubSceneQuad::add ( Renderable renderable)

Add a renderable to the sub scene.

Definition at line 129 of file subscenequad.cpp.

References _renderables.

Referenced by Engines::KotOR::Minimap::Minimap(), and Engines::KotOR::ClassSelectionMenu::setupClassSubScene().

Here is the caller graph for this function:

◆ calculateDistance()

void Graphics::Aurora::SubSceneQuad::calculateDistance ( )
virtual

Calculate the object's distance.

Implements Graphics::Renderable.

Definition at line 49 of file subscenequad.cpp.

◆ remove()

void Graphics::Aurora::SubSceneQuad::remove ( Renderable renderable)

Remove a renderable from the sub scene.

Definition at line 133 of file subscenequad.cpp.

References _renderables.

◆ render()

void Graphics::Aurora::SubSceneQuad::render ( RenderPass  pass)
virtual

Render the object.

Implements Graphics::Renderable.

Definition at line 52 of file subscenequad.cpp.

References _clearEnabled, _height, _lastSampled, _projection, _renderables, _transformation, _width, _x, _y, EventMan, and pass.

◆ setClearEnabled()

void Graphics::Aurora::SubSceneQuad::setClearEnabled ( bool  clearEnabled)

Definition at line 125 of file subscenequad.cpp.

References _clearEnabled.

◆ setDistance()

void Graphics::Aurora::SubSceneQuad::setDistance ( float  distance)

Definition at line 113 of file subscenequad.cpp.

References Graphics::Renderable::_distance.

Referenced by Engines::KotORJadeWidget::setSubScene().

Here is the caller graph for this function:

◆ setGlobalTransformationMatrix()

void Graphics::Aurora::SubSceneQuad::setGlobalTransformationMatrix ( const glm::mat4 &  transformation)

Definition at line 121 of file subscenequad.cpp.

References _transformation.

Referenced by Engines::KotOR::Minimap::setPosition(), and Engines::KotOR::ClassSelectionMenu::setupClassSubScene().

Here is the caller graph for this function:

◆ setPosition()

void Graphics::Aurora::SubSceneQuad::setPosition ( int  x,
int  y 
)

Definition at line 103 of file subscenequad.cpp.

References _x, and _y.

Referenced by Engines::KotORJadeWidget::setSubScene().

Here is the caller graph for this function:

◆ setProjectionMatrix()

void Graphics::Aurora::SubSceneQuad::setProjectionMatrix ( const glm::mat4 &  projection)

Definition at line 117 of file subscenequad.cpp.

References _projection.

Referenced by Engines::KotOR::Minimap::Minimap(), and Engines::KotOR::ClassSelectionMenu::setupClassSubScene().

Here is the caller graph for this function:

◆ setSize()

void Graphics::Aurora::SubSceneQuad::setSize ( int  width,
int  height 
)

Definition at line 108 of file subscenequad.cpp.

References _height, and _width.

Referenced by Engines::KotORJadeWidget::setSubScene().

Here is the caller graph for this function:

Member Data Documentation

◆ _clearEnabled

bool Graphics::Aurora::SubSceneQuad::_clearEnabled
private

Definition at line 68 of file subscenequad.h.

Referenced by render(), and setClearEnabled().

◆ _height

int Graphics::Aurora::SubSceneQuad::_height
private

Definition at line 66 of file subscenequad.h.

Referenced by render(), and setSize().

◆ _lastSampled

uint32 Graphics::Aurora::SubSceneQuad::_lastSampled
private

Definition at line 63 of file subscenequad.h.

Referenced by render().

◆ _projection

glm::mat4 Graphics::Aurora::SubSceneQuad::_projection
private

Definition at line 60 of file subscenequad.h.

Referenced by render(), and setProjectionMatrix().

◆ _renderables

std::vector<Renderable *> Graphics::Aurora::SubSceneQuad::_renderables
private

Definition at line 58 of file subscenequad.h.

Referenced by add(), remove(), and render().

◆ _transformation

glm::mat4 Graphics::Aurora::SubSceneQuad::_transformation
private

Definition at line 61 of file subscenequad.h.

Referenced by render(), and setGlobalTransformationMatrix().

◆ _width

int Graphics::Aurora::SubSceneQuad::_width
private

Definition at line 66 of file subscenequad.h.

Referenced by render(), and setSize().

◆ _x

int Graphics::Aurora::SubSceneQuad::_x
private

Definition at line 65 of file subscenequad.h.

Referenced by render(), and setPosition().

◆ _y

int Graphics::Aurora::SubSceneQuad::_y
private

Definition at line 65 of file subscenequad.h.

Referenced by render(), and setPosition().


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