Skyscraper 2.0
SBS::Map Class Reference

#include <map.h>

Inheritance diagram for SBS::Map:
Collaboration diagram for SBS::Map:

Classes

class  Timer
 

Public Member Functions

 Map (Object *parent, const std::string &name)
 
 ~Map ()
 
void Enabled (bool value)
 
bool IsEnabled ()
 
void GetImage (Ogre::Image &image)
 
- Public Member Functions inherited from SBS::Object
 Object (Object *parent)
 
virtual ~Object ()
 
void SetValues (const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true)
 
bool IsPermanent ()
 
bool IsMovable ()
 
const std::string & GetType ()
 
int GetNumber ()
 
void AddChild (Object *object)
 
ObjectGetChild (int index)
 
int GetChildrenCount ()
 
void RemoveChild (Object *object)
 
SceneNodeGetSceneNode ()
 
void ShowBoundingBox (bool value)
 
virtual void Move (const Vector3 &vector, Real speed=1.0)
 
virtual void Move (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetPosition (const Vector3 &position)
 
void SetPositionRelative (const Vector3 &position)
 
virtual void SetPosition (Real X, Real Y, Real Z)
 
void SetPositionRelative (Real X, Real Y, Real Z)
 
virtual void SetPositionY (Real value)
 
virtual Vector3 GetPosition (bool relative=false)
 
virtual void Rotate (const Vector3 &vector, Real speed=1.0)
 
virtual void Rotate (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetRotation (const Vector3 &rotation)
 
virtual void SetRotation (Real X, Real Y, Real Z)
 
virtual Vector3 GetRotation ()
 
Quaternion GetOrientation (bool relative=false)
 
void SetOrientation (const Quaternion &q, bool relative=false)
 
virtual void OnMove (bool parent)
 
virtual void OnRotate (bool parent)
 
virtual void OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
 
virtual void OnUnclick (bool right)
 
virtual void OnHit ()
 
void NotifyMove (bool parent=false)
 
void NotifyRotate (bool parent=false)
 
virtual void ResetState ()
 
void ChangeParent (Object *new_parent)
 
bool IsGlobal ()
 
void Init (bool children=true)
 
virtual void OnInit ()
 
virtual void Loop ()
 
void RegisterLoop (Object *object)
 
void UnregisterLoop (Object *object)
 
std::string GetNameBase ()
 
template<typename T >
bool IsType ()
 
template<typename T >
T * ConvertTo ()
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
void SetName (const std::string &name)
 
const std::string & GetName ()
 
std::string GetNameBase ()
 
virtual void Report (const std::string &message)
 
virtual bool ReportError (const std::string &message)
 

Private Attributes

bool enabled
 
CameraTextureOrthoCamera
 
Timertimer
 

Additional Inherited Members

- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 
- Protected Member Functions inherited from SBS::Object
void EnableLoop (bool value)
 
void LoopChildren ()
 
bool SelfDestruct ()
 
- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 29 of file map.h.

Constructor & Destructor Documentation

◆ Map()

SBS::Map::Map ( Object * parent,
const std::string & name )

Definition at line 45 of file map.cpp.

References enabled, SBS::CameraTexture::EnableOrthographic(), OrthoCamera, SBS::Object::SetValues(), and timer.

Here is the call graph for this function:

◆ ~Map()

SBS::Map::~Map ( )

Definition at line 65 of file map.cpp.

References OrthoCamera.

Member Function Documentation

◆ Enabled()

void SBS::Map::Enabled ( bool value)
virtual

Reimplemented from SBS::Object.

Definition at line 72 of file map.cpp.

References SBS::CameraTexture::Enabled(), enabled, and OrthoCamera.

Here is the call graph for this function:

◆ GetImage()

void SBS::Map::GetImage ( Ogre::Image & image)

Definition at line 102 of file map.cpp.

References SBS::CameraTexture::GetImage(), and OrthoCamera.

Here is the call graph for this function:

◆ IsEnabled()

bool SBS::Map::IsEnabled ( )

Definition at line 83 of file map.cpp.

References enabled.

Member Data Documentation

◆ enabled

bool SBS::Map::enabled
private

Definition at line 42 of file map.h.

Referenced by Enabled(), IsEnabled(), and Map().

◆ OrthoCamera

CameraTexture* SBS::Map::OrthoCamera
private

Definition at line 44 of file map.h.

Referenced by Enabled(), GetImage(), Map(), and ~Map().

◆ timer

Timer* SBS::Map::timer
private

Definition at line 49 of file map.h.

Referenced by Map().


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