Skyscraper 2.0
SBS::DirectionalIndicator Class Reference

#include <directional.h>

Inheritance diagram for SBS::DirectionalIndicator:
Collaboration diagram for SBS::DirectionalIndicator:

Classes

class  Timer
 

Public Member Functions

 DirectionalIndicator (Object *parent, int elevator, int car, int floor, bool active_direction, bool single, bool vertical, const std::string &BackTexture, const std::string &uptexture, const std::string &uptexture_lit, const std::string &downtexture, const std::string &downtexture_lit, Real CenterX, Real CenterZ, Real voffset, const std::string &direction, Real BackWidth, Real BackHeight, bool ShowBack, Real tw, Real th)
 
 ~DirectionalIndicator ()
 
void Enabled (bool value)
 
void UpLight (bool value)
 
void DownLight (bool value)
 
void SetLights (int up, int down)
 
bool IsEnabled ()
 
void Off ()
 
void Loop ()
 
- 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 ()
 
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)
 

Public Attributes

int elevator
 
int car
 
int floor
 
int blink
 
std::string Direction
 
std::string UpTextureUnlit
 
std::string UpTextureLit
 
std::string DownTextureUnlit
 
std::string DownTextureLit
 
bool UpStatus
 
bool DownStatus
 
bool Single
 
bool Vertical
 
bool ActiveDirection
 
- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 

Private Attributes

MeshObjectDirectionalMeshBack
 
MeshObjectDirectionalMeshUp
 
MeshObjectDirectionalMeshDown
 
MeshObjectDirectionalMesh
 
bool is_enabled
 
Timertimer
 
Timerblink_timer
 
int timer_interval
 
int blink_interval
 
bool blink_active
 

Additional Inherited Members

- 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 directional.h.

Constructor & Destructor Documentation

◆ DirectionalIndicator()

SBS::DirectionalIndicator::DirectionalIndicator ( Object * parent,
int elevator,
int car,
int floor,
bool active_direction,
bool single,
bool vertical,
const std::string & BackTexture,
const std::string & uptexture,
const std::string & uptexture_lit,
const std::string & downtexture,
const std::string & downtexture_lit,
Real CenterX,
Real CenterZ,
Real voffset,
const std::string & direction,
Real BackWidth,
Real BackHeight,
bool ShowBack,
Real tw,
Real th )

◆ ~DirectionalIndicator()

SBS::DirectionalIndicator::~DirectionalIndicator ( )

Member Function Documentation

◆ DownLight()

◆ Enabled()

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

Reimplemented from SBS::Object.

Definition at line 398 of file directional.cpp.

References DirectionalMesh, DirectionalMeshBack, DirectionalMeshDown, DirectionalMeshUp, SBS::MeshObject::Enabled(), and is_enabled.

Here is the call graph for this function:

◆ IsEnabled()

bool SBS::DirectionalIndicator::IsEnabled ( )
inline

Definition at line 55 of file directional.h.

◆ Loop()

void SBS::DirectionalIndicator::Loop ( )
virtual

Reimplemented from SBS::Object.

Definition at line 580 of file directional.cpp.

References SBS::SBS::GetPower(), Off(), and SBS::ObjectBase::sbs.

Here is the call graph for this function:

◆ Off()

void SBS::DirectionalIndicator::Off ( )

Definition at line 573 of file directional.cpp.

References SetLights().

Referenced by Loop().

Here is the call graph for this function:

◆ SetLights()

◆ UpLight()

Member Data Documentation

◆ ActiveDirection

bool SBS::DirectionalIndicator::ActiveDirection

◆ blink

int SBS::DirectionalIndicator::blink

Definition at line 36 of file directional.h.

Referenced by DirectionalIndicator(), and SetLights().

◆ blink_active

bool SBS::DirectionalIndicator::blink_active
private

◆ blink_interval

int SBS::DirectionalIndicator::blink_interval
private

Definition at line 72 of file directional.h.

Referenced by DirectionalIndicator(), and SetLights().

◆ blink_timer

Timer* SBS::DirectionalIndicator::blink_timer
private

Definition at line 70 of file directional.h.

Referenced by DirectionalIndicator(), SetLights(), and ~DirectionalIndicator().

◆ car

int SBS::DirectionalIndicator::car

◆ Direction

std::string SBS::DirectionalIndicator::Direction

Definition at line 37 of file directional.h.

Referenced by DirectionalIndicator().

◆ DirectionalMesh

MeshObject* SBS::DirectionalIndicator::DirectionalMesh
private

Definition at line 63 of file directional.h.

Referenced by DirectionalIndicator(), Enabled(), SetLights(), and ~DirectionalIndicator().

◆ DirectionalMeshBack

MeshObject* SBS::DirectionalIndicator::DirectionalMeshBack
private

Definition at line 60 of file directional.h.

Referenced by DirectionalIndicator(), Enabled(), and ~DirectionalIndicator().

◆ DirectionalMeshDown

MeshObject* SBS::DirectionalIndicator::DirectionalMeshDown
private

Definition at line 62 of file directional.h.

Referenced by DirectionalIndicator(), Enabled(), SetLights(), and ~DirectionalIndicator().

◆ DirectionalMeshUp

MeshObject* SBS::DirectionalIndicator::DirectionalMeshUp
private

Definition at line 61 of file directional.h.

Referenced by DirectionalIndicator(), Enabled(), SetLights(), and ~DirectionalIndicator().

◆ DownStatus

bool SBS::DirectionalIndicator::DownStatus

◆ DownTextureLit

std::string SBS::DirectionalIndicator::DownTextureLit

Definition at line 41 of file directional.h.

Referenced by DirectionalIndicator(), and SetLights().

◆ DownTextureUnlit

std::string SBS::DirectionalIndicator::DownTextureUnlit

Definition at line 40 of file directional.h.

Referenced by DirectionalIndicator(), and SetLights().

◆ elevator

◆ floor

int SBS::DirectionalIndicator::floor

Definition at line 35 of file directional.h.

Referenced by DirectionalIndicator(), DownLight(), and UpLight().

◆ is_enabled

bool SBS::DirectionalIndicator::is_enabled
private

Definition at line 65 of file directional.h.

Referenced by DirectionalIndicator(), and Enabled().

◆ Single

bool SBS::DirectionalIndicator::Single

Definition at line 44 of file directional.h.

Referenced by DirectionalIndicator(), DownLight(), SetLights(), and UpLight().

◆ timer

Timer* SBS::DirectionalIndicator::timer
private

Definition at line 69 of file directional.h.

Referenced by DirectionalIndicator(), DownLight(), UpLight(), and ~DirectionalIndicator().

◆ timer_interval

int SBS::DirectionalIndicator::timer_interval
private

Definition at line 71 of file directional.h.

Referenced by DirectionalIndicator(), DownLight(), and UpLight().

◆ UpStatus

bool SBS::DirectionalIndicator::UpStatus

◆ UpTextureLit

std::string SBS::DirectionalIndicator::UpTextureLit

Definition at line 39 of file directional.h.

Referenced by DirectionalIndicator(), and SetLights().

◆ UpTextureUnlit

std::string SBS::DirectionalIndicator::UpTextureUnlit

Definition at line 38 of file directional.h.

Referenced by DirectionalIndicator(), and SetLights().

◆ Vertical

bool SBS::DirectionalIndicator::Vertical

Definition at line 45 of file directional.h.

Referenced by DirectionalIndicator().


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