41 void SetName(
const std::string &name);
42 const std::string& GetName();
43 std::string GetNameBase();
44 virtual void Report(
const std::string &message);
45 virtual bool ReportError(
const std::string &message);
69 void SetValues(
const std::string &type,
const std::string &name,
bool is_permanent,
bool is_movable =
true);
72 const std::string& GetType();
74 void AddChild(
Object *
object);
75 Object* GetChild(
int index);
76 int GetChildrenCount();
77 void RemoveChild(
Object *
object);
79 void ShowBoundingBox(
bool value);
80 virtual void Move(
const Vector3 &vector,
Real speed = 1.0,
bool force =
false);
81 virtual void Move(
Real X,
Real Y,
Real Z,
Real speed = 1.0,
bool force =
false);
82 virtual void SetPosition(
const Vector3 &position,
bool relative =
false,
bool force =
false);
83 virtual void SetPosition(
Real X,
Real Y,
Real Z,
bool relative =
false,
bool force =
false);
84 virtual void SetPositionY(
Real value,
bool force =
false);
85 virtual Vector3 GetPosition(
bool relative =
false);
86 virtual void Rotate(
const Vector3 &vector,
Real speed = 1.0);
88 virtual void SetRotation(
const Vector3 &rotation);
91 Quaternion GetOrientation(
bool relative =
false);
92 void SetOrientation(
const Quaternion &q,
bool relative =
false);
95 virtual void OnClick(
Vector3 &position,
bool shift,
bool ctrl,
bool alt,
bool right) {}
98 void NotifyMove(
bool parent =
false);
99 void NotifyRotate(
bool parent =
false);
101 void ChangeParent(
Object *new_parent);
103 void Init(
bool children =
true);
106 void RegisterLoop(
Object *
object);
107 void UnregisterLoop(
Object *
object);
110 std::string GetNameBase();
115 return (
dynamic_cast<T*
>(
this) > 0);
121 return dynamic_cast<T*
>(
this);
125 void EnableLoop(
bool value);
130 void NotifyChildren(
bool move,
bool rotate);
virtual void OnRotate(bool parent)
std::vector< Object * > runloops
virtual void OnMove(bool parent)
virtual void ResetState()
virtual void Enabled(bool value)
std::string command_processed
std::vector< Object * > children
virtual void OnClick(Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
virtual void OnUnclick(bool right)
Ogre::Quaternion Quaternion