xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Engines::KotOR::Minimap Class Reference

#include <minimap.h>

Inheritance diagram for Engines::KotOR::Minimap:
Inheritance graph
[legend]
Collaboration diagram for Engines::KotOR::Minimap:
Collaboration graph
[legend]

Public Member Functions

 Minimap (const Common::UString &map, int northAxis, float mapPt1X, float mapPt1Y, float mapPt2X, float mapPt2Y, float worldPt1X, float worldPt1Y, float worldPt2X, float worldPt2Y)
 
void setPosition (float x, float y)
 
int getNorthAxis ()
 
- Public Member Functions inherited from Graphics::Aurora::SubSceneQuad
 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

Graphics::Aurora::GUIQuad _mapQuad
 
int _northAxis
 
float _mapPt1X
 
float _mapPt1Y
 
float _mapPt2X
 
float _mapPt2Y
 
float _worldPt1X
 
float _worldPt1Y
 
float _worldPt2X
 
float _worldPt2Y
 

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 35 of file minimap.h.

Constructor & Destructor Documentation

◆ Minimap()

Engines::KotOR::Minimap::Minimap ( const Common::UString map,
int  northAxis,
float  mapPt1X,
float  mapPt1Y,
float  mapPt2X,
float  mapPt2Y,
float  worldPt1X,
float  worldPt1Y,
float  worldPt2X,
float  worldPt2Y 
)

Definition at line 37 of file minimap.cpp.

References _mapQuad, Graphics::Aurora::SubSceneQuad::add(), and Graphics::Aurora::SubSceneQuad::setProjectionMatrix().

Here is the call graph for this function:

Member Function Documentation

◆ getNorthAxis()

int Engines::KotOR::Minimap::getNorthAxis ( )

Definition at line 79 of file minimap.cpp.

References _northAxis.

◆ setPosition()

void Engines::KotOR::Minimap::setPosition ( float  x,
float  y 
)

Member Data Documentation

◆ _mapPt1X

float Engines::KotOR::Minimap::_mapPt1X
private

Definition at line 48 of file minimap.h.

Referenced by setPosition().

◆ _mapPt1Y

float Engines::KotOR::Minimap::_mapPt1Y
private

Definition at line 48 of file minimap.h.

Referenced by setPosition().

◆ _mapPt2X

float Engines::KotOR::Minimap::_mapPt2X
private

Definition at line 48 of file minimap.h.

Referenced by setPosition().

◆ _mapPt2Y

float Engines::KotOR::Minimap::_mapPt2Y
private

Definition at line 48 of file minimap.h.

Referenced by setPosition().

◆ _mapQuad

Graphics::Aurora::GUIQuad Engines::KotOR::Minimap::_mapQuad
private

Definition at line 45 of file minimap.h.

Referenced by Minimap().

◆ _northAxis

int Engines::KotOR::Minimap::_northAxis
private

Definition at line 47 of file minimap.h.

Referenced by getNorthAxis(), and setPosition().

◆ _worldPt1X

float Engines::KotOR::Minimap::_worldPt1X
private

Definition at line 49 of file minimap.h.

Referenced by setPosition().

◆ _worldPt1Y

float Engines::KotOR::Minimap::_worldPt1Y
private

Definition at line 49 of file minimap.h.

Referenced by setPosition().

◆ _worldPt2X

float Engines::KotOR::Minimap::_worldPt2X
private

Definition at line 49 of file minimap.h.

Referenced by setPosition().

◆ _worldPt2Y

float Engines::KotOR::Minimap::_worldPt2Y
private

Definition at line 49 of file minimap.h.

Referenced by setPosition().


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