|
Skyscraper 2.0
|
#include <geometry.h>


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) |
| Object * | GetChild (int index) |
| int | GetChildrenCount () |
| void | RemoveChild (Object *object) |
| SceneNode * | GetSceneNode () |
| void | ShowBoundingBox (bool value) |
| virtual void | Move (const Vector3 &vector, Real speed=1.0, bool force=false) |
| virtual void | Move (Real X, Real Y, Real Z, Real speed=1.0, bool force=false) |
| virtual void | SetPosition (const Vector3 &position, bool relative=false, bool force=false) |
| virtual void | SetPosition (Real X, Real Y, Real Z, bool relative=false, bool force=false) |
| virtual void | SetPositionY (Real value, bool force=false) |
| 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) |
| virtual bool | IsEnabled () |
| 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 () |
| Object * | GetParent () |
| SBS * | GetRoot () |
| 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 | |
| SBS * | sbs |
Definition at line 28 of file geometry.h.
| SBS::GeometryController::GeometryController | ( | Object * | parent | ) |
Definition at line 33 of file geometry.cpp.
References SBS::Object::SetValues().

| SBS::GeometryController::~GeometryController | ( | ) |
Definition at line 39 of file geometry.cpp.
| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().

| 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().
