Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
AngelOgre_MovableObject.h
Go to the documentation of this file.
1
2namespace AngelOgre { // Dummy namespace, just to distinguish AngelScript from C++
3
15 {
16 public:
17
19 const string& getName(void) const;
20
22 const string& getMovableType(void) const;
23
30 Node* getParentNode(void) const;
31
40
42 bool isParentTagPoint() const;
43
45 bool isAttached(void) const;
46
48 void detachFromParent(void);
49
53 bool isInScene(void) const;
54
59 // const AxisAlignedBox& getBoundingBox(void) const = 0;
60
64 float getBoundingRadius(void) const;
65
68 void setVisible(bool visible);
69
74 bool getVisible(void) const;
75
80 bool isVisible(void) const;
81
87 void setRenderingDistance(float dist);
88
90 float getRenderingDistance(void) const { return mUpperDistance; }
91
97 void setRenderingMinPixelSize(float pixelSize);
98
102
107 // UserObjectBindings& getUserObjectBindings() { return mUserObjectBindings; }
108
113 // const UserObjectBindings& getUserObjectBindings() const { return mUserObjectBindings; }
114
115
128 void setCastShadows(bool enabled);
129
131 bool getCastShadows(void) const;
132
141 void setDebugDisplayEnabled(bool enabled);
142
144 bool isDebugDisplayEnabled(void) const;
145 };
146
149
150} // namespace AngelOgre (dummy, just to distinguish AngelScript from C++)
151
Abstract class defining a movable object in a scene.
void setVisible(bool visible)
Tells this object whether to be visible or not, if it has a renderable component.
bool isVisible(void) const
Returns whether or not this object is supposed to be visible or not.
void setRenderingMinPixelSize(float pixelSize)
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
Node * getParentNode(void) const
Returns the node to which this object is attached.
bool isParentTagPoint() const
Gets whether the parent node is a TagPoint (or a SceneNode)
void setRenderingDistance(float dist)
Sets the distance at which the object is no longer rendered.
bool isDebugDisplayEnabled(void) const
Gets whether debug display of this object is enabled.
const string & getMovableType(void) const
Returns the type name of this object.
float getRenderingDistance(void) const
Gets the distance at which batches are no longer rendered.
bool isAttached(void) const
Returns true if this object is attached to a SceneNode or TagPoint.
float getBoundingRadius(void) const
Retrieves the local axis-aligned bounding box for this object.
float getRenderingMinPixelSize() const
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
const string & getName(void) const
Returns the name of this object.
void detachFromParent(void)
Detaches an object from a parent SceneNode or TagPoint, if attached.
bool getCastShadows(void) const
Returns whether shadow casting is enabled for this object.
SceneNode getParentSceneNode(void) const
Returns the scene node to which this object is attached.
bool getVisible(void) const
Gets this object whether to be visible or not, if it has a renderable component.
void setCastShadows(bool enabled)
Return an instance of user objects binding associated with this class.
void setDebugDisplayEnabled(bool enabled)
Sets whether or not the debug display of this object is enabled.
bool isInScene(void) const
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is ...
Class representing a node in the scene graph.
OGRE-AngelScript bindings; Actually named Ogre in the scripts, just changed for docs to separate thin...