Skyscraper 2.0
SBS::GeometryController Class Reference

#include <geometry.h>

Inheritance diagram for SBS::GeometryController:
Collaboration diagram for SBS::GeometryController:

Public Member Functions

 GeometryController (Object *parent)
 
 ~GeometryController ()
 
Ogre::MeshPtr CreatePlane (Object *parent, const std::string &name, Real size_x, Real size_y, unsigned int segments_x, unsigned int segments_y, Real utile, Real vtile)
 
Ogre::MeshPtr CreateSphere (Object *parent, const std::string &name, Real radius, Real utile, Real vtile, unsigned int rings, unsigned int segments)
 
Ogre::MeshPtr CreateCylinder (Object *parent, const std::string &name, Real radius, Real height, Real utile, Real vtile, unsigned int segments_base, unsigned int segments_height, bool capped)
 
Ogre::MeshPtr CreateTorus (Object *parent, const std::string &name, Real radius, Real section_radius, Real utile, Real vtile)
 
Ogre::MeshPtr CreateCone (Object *parent, const std::string &name, Real radius, Real height, Real utile, Real vtile, unsigned int segments_base, unsigned int segments_height)
 
Ogre::MeshPtr CreateTube (Object *parent, const std::string &name, Real inner_radius, Real outer_radius, Real height, Real utile, Real vtile, unsigned int segments_base, unsigned int segments_height)
 
Ogre::MeshPtr CreateBox (Object *parent, const std::string &name, Real size_x, Real size_y, Real size_z, Real utile, Real vtile, unsigned int segments_x, unsigned int segments_y, unsigned int segments_z)
 
Ogre::MeshPtr CreateCapsule (Object *parent, const std::string &name, Real radius, Real height, unsigned int rings, Real utile, Real vtile, unsigned int segments, unsigned int segments_height, bool capped)
 
Ogre::MeshPtr CreateTorusKnot (Object *parent, const std::string &name, Real radius, Real section_radius, Real utile, Real vtile, unsigned int segments_circle, unsigned int seg_section, int p, int q)
 
Ogre::MeshPtr CreateIcoSphere (Object *parent, const std::string &name, Real radius, Real utile, Real vtile, unsigned int iterations)
 
Ogre::MeshPtr CreateRoundedBox (Object *parent, const std::string &name, Real size_x, Real size_y, Real size_z, Real chamfer_size, Real utile, Real vtile, unsigned int segments_x, unsigned int segments_y, unsigned int segments_z, bool capped)
 
Ogre::MeshPtr CreateSpring (Object *parent, const std::string &name, Real radius_circle, Real radius_helix, Real height, Real round, Real utile, Real vtile, unsigned int segments_circle, unsigned int segments_path, bool capped)
 
Ogre::MeshPtr CreatePrism (Object *parent, const std::string &name, Real radius, Real height, unsigned int sides, unsigned int segments_height, bool capped)
 
- 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)
 
virtual void Enabled (bool value)
 
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)
 

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 28 of file geometry.h.

Constructor & Destructor Documentation

◆ GeometryController()

SBS::GeometryController::GeometryController ( Object * parent)

Definition at line 33 of file geometry.cpp.

References SBS::Object::SetValues().

Here is the call graph for this function:

◆ ~GeometryController()

SBS::GeometryController::~GeometryController ( )

Definition at line 39 of file geometry.cpp.

Member Function Documentation

◆ CreateBox()

Ogre::MeshPtr SBS::GeometryController::CreateBox ( Object * parent,
const std::string & name,
Real size_x,
Real size_y,
Real size_z,
Real utile,
Real vtile,
unsigned int segments_x,
unsigned int segments_y,
unsigned int segments_z )

Definition at line 74 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateCapsule()

Ogre::MeshPtr SBS::GeometryController::CreateCapsule ( Object * parent,
const std::string & name,
Real radius,
Real height,
unsigned int rings,
Real utile,
Real vtile,
unsigned int segments,
unsigned int segments_height,
bool capped )

Definition at line 79 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateCone()

Ogre::MeshPtr SBS::GeometryController::CreateCone ( Object * parent,
const std::string & name,
Real radius,
Real height,
Real utile,
Real vtile,
unsigned int segments_base,
unsigned int segments_height )

Definition at line 64 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateCylinder()

Ogre::MeshPtr SBS::GeometryController::CreateCylinder ( Object * parent,
const std::string & name,
Real radius,
Real height,
Real utile,
Real vtile,
unsigned int segments_base,
unsigned int segments_height,
bool capped )

Definition at line 54 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateIcoSphere()

Ogre::MeshPtr SBS::GeometryController::CreateIcoSphere ( Object * parent,
const std::string & name,
Real radius,
Real utile,
Real vtile,
unsigned int iterations )

Definition at line 89 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreatePlane()

Ogre::MeshPtr SBS::GeometryController::CreatePlane ( Object * parent,
const std::string & name,
Real size_x,
Real size_y,
unsigned int segments_x,
unsigned int segments_y,
Real utile,
Real vtile )

Definition at line 44 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreatePrism()

Ogre::MeshPtr SBS::GeometryController::CreatePrism ( Object * parent,
const std::string & name,
Real radius,
Real height,
unsigned int sides,
unsigned int segments_height,
bool capped )

Definition at line 104 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateRoundedBox()

Ogre::MeshPtr SBS::GeometryController::CreateRoundedBox ( Object * parent,
const std::string & name,
Real size_x,
Real size_y,
Real size_z,
Real chamfer_size,
Real utile,
Real vtile,
unsigned int segments_x,
unsigned int segments_y,
unsigned int segments_z,
bool capped )

Definition at line 94 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateSphere()

Ogre::MeshPtr SBS::GeometryController::CreateSphere ( Object * parent,
const std::string & name,
Real radius,
Real utile,
Real vtile,
unsigned int rings,
unsigned int segments )

Definition at line 49 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateSpring()

Ogre::MeshPtr SBS::GeometryController::CreateSpring ( Object * parent,
const std::string & name,
Real radius_circle,
Real radius_helix,
Real height,
Real round,
Real utile,
Real vtile,
unsigned int segments_circle,
unsigned int segments_path,
bool capped )

Definition at line 99 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateTorus()

Ogre::MeshPtr SBS::GeometryController::CreateTorus ( Object * parent,
const std::string & name,
Real radius,
Real section_radius,
Real utile,
Real vtile )

Definition at line 59 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateTorusKnot()

Ogre::MeshPtr SBS::GeometryController::CreateTorusKnot ( Object * parent,
const std::string & name,
Real radius,
Real section_radius,
Real utile,
Real vtile,
unsigned int segments_circle,
unsigned int seg_section,
int p,
int q )

Definition at line 84 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ CreateTube()

Ogre::MeshPtr SBS::GeometryController::CreateTube ( Object * parent,
const std::string & name,
Real inner_radius,
Real outer_radius,
Real height,
Real utile,
Real vtile,
unsigned int segments_base,
unsigned int segments_height )

Definition at line 69 of file geometry.cpp.

References SBS::Object::GetNameBase(), SBS::ObjectBase::sbs, and SBS::SBS::UnitScale.

Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

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