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

A cube side. More...

#include <cube.h>

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

Public Member Functions

 CubeSide (Cube &parent, int n)
 
 ~CubeSide ()
 
void calculateDistance ()
 Calculate the object's distance. More...
 
void render (RenderPass pass)
 Render the object. More...
 
- Public Member Functions inherited from Graphics::Object
 Object ()
 
 ~Object ()
 
- 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

Cube_parent
 
int _n
 

Friends

class Cube
 

Additional Inherited Members

- 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

A cube side.

Definition at line 48 of file cube.h.

Constructor & Destructor Documentation

◆ CubeSide()

Graphics::Aurora::CubeSide::CubeSide ( Cube parent,
int  n 
)

Definition at line 50 of file cube.cpp.

References calculateDistance(), and Graphics::Renderable::show().

Here is the call graph for this function:

◆ ~CubeSide()

Graphics::Aurora::CubeSide::~CubeSide ( )

Definition at line 56 of file cube.cpp.

References Graphics::Renderable::hide().

Here is the call graph for this function:

Member Function Documentation

◆ calculateDistance()

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

Calculate the object's distance.

Implements Graphics::Renderable.

Definition at line 60 of file cube.cpp.

References Graphics::Renderable::_distance, _n, _parent, ABS(), and Graphics::Aurora::Cube::applyTransformation().

Referenced by CubeSide().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

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

Friends And Related Function Documentation

◆ Cube

friend class Cube
friend

Definition at line 60 of file cube.h.

Member Data Documentation

◆ _n

int Graphics::Aurora::CubeSide::_n
private

Definition at line 58 of file cube.h.

Referenced by calculateDistance(), and render().

◆ _parent

Cube* Graphics::Aurora::CubeSide::_parent
private

Definition at line 57 of file cube.h.

Referenced by calculateDistance(), and render().


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