#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| void | AttachObject (DIOGREMovableObject *obj) |
| Adds an instance of a scene object to this node. | |
| unsigned short | NumAttachedObjects (void) |
| Reports the number of objects attached to this node. | |
| DIOGREMovableObject * | GetAttachedObject (unsigned short index) |
| Retrieves a pointer to an attached object. | |
| DIOGREMovableObject * | GetAttachedObject (const char *name) |
| Retrieves a pointer to an attached object. | |
| DIOGREMovableObject * | DetachObject (unsigned short index) |
| Detaches the indexed object from this scene node. | |
| void | DetachObject (DIOGREMovableObject *obj) |
| Detaches an object by pointer. | |
| DIOGREMovableObject * | DetachObject (const char *name) |
| Detaches the named object from this node and returns a pointer to it. | |
| void | DetachAllObjects (void) |
| Detaches all objects attached to this node. | |
| bool | IsInSceneGraph (void) |
| Determines whether this node is in the scene graph, ie whether it's ulitimate ancestor is the root scene node. | |
| DIOGRESceneManager * | GetCreator (void) |
| Retrieves an iterator which can be used to efficiently step through the objects attached to this node. | |
| void | RemoveAndDestroyChild (const char *name) |
| This method removes and destroys the named child and all of its children. | |
| void | RemoveAndDestroyChild (unsigned short index) |
| This method removes and destroys the child and all of its children. | |
| void | RemoveAndDestroyAllChildren (void) |
| Removes and destroys all children of this node. | |
| void | ShowBoundingBox (bool bShow) |
| Allows the showing of the node's bounding box. | |
| bool | GetShowBoundingBox () |
| This allows scene managers to determine if the node's bounding box should be added to the rendering queue. | |
| DIOGRESceneNode * | CreateChildSceneNode (void) |
| Creates an unnamed new SceneNode as a child of this node. | |
| DIOGRESceneNode * | CreateChildSceneNode (in_Vector3f *translate, in_Quaternionf *rotate) |
| DIOGRESceneNode * | CreateChildSceneNode (const char *name) |
| Creates a new named SceneNode as a child of this node. | |
| DIOGRESceneNode * | CreateChildSceneNode (const char *name, in_Vector3f *translate, in_Quaternionf *rotate) |
| void | SetFixedYawAxis (bool useFixed) |
| Allows retrieval of the nearest lights to the centre of this SceneNode. | |
| void | SetFixedYawAxis (bool useFixed, in_Vector3f *fixedAxis) |
| void | YawRadian (const float angle) |
| Rotate the node around the Y-axis. | |
| void | YawRadian (const float angle, TransformSpace relativeTo) |
| void | YawDegree (const float angle) |
| void | YawDegree (const float angle, TransformSpace relativeTo) |
| void | SetDirection (float x, float y, float z) |
| Sets the node's direction vector ie it's local -z. | |
| void | SetDirection (float x, float y, float z, TransformSpace relativeTo, in_Vector3f *localDirectionVector) |
| void | SetDirection (in_Vector3f *vec) |
| Sets the node's direction vector ie it's local -z. | |
| void | SetDirection (in_Vector3f *vec, TransformSpace relativeTo, in_Vector3f *localDirectionVector) |
| void | LookAt (in_Vector3f *targetPoint, TransformSpace relativeTo) |
| Points the local -Z direction of this node at a point in space. | |
| void | LookAt (in_Vector3f *targetPoint, TransformSpace relativeTo, in_Vector3f *localDirectionVector) |
| void | SetAutoTracking (bool enabled) |
| Enables / disables automatic tracking of another SceneNode. | |
| void | SetAutoTracking (bool enabled, DIOGRESceneNode *target, in_Vector3f *localDirectionVector, in_Vector3f *offset) |
| DIOGRESceneNode * | GetAutoTrackTarget (void) |
| Get the auto tracking target for this node, if any. | |
| void | GetAutoTrackOffset (out_Vector3f *vec) |
| Get the auto tracking offset for this node, if the node is auto tracking. | |
| void | GetAutoTrackLocalDirection (out_Vector3f *vec) |
| Get the auto tracking local direction for this node, if it is auto tracking. | |
| DIOGRESceneNode * | GetParentSceneNode (void) |
| Gets the parent of this SceneNode. | |
| void | SetVisible (bool visible) |
| Makes all objects attached to this node become visible / invisble. | |
| void | SetVisible (bool visible, bool cascade) |
| void | FlipVisibility (void) |
| Inverts the visibility of all objects attached to this node. | |
| void | FlipVisibility (bool cascade) |
| void DigitalSpaces::DIOGRESceneNode::AttachObject | ( | DIOGREMovableObject * | obj | ) |
Adds an instance of a scene object to this node.
| unsigned short DigitalSpaces::DIOGRESceneNode::NumAttachedObjects | ( | void | ) |
Reports the number of objects attached to this node.
| DIOGREMovableObject* DigitalSpaces::DIOGRESceneNode::GetAttachedObject | ( | unsigned short | index | ) |
Retrieves a pointer to an attached object.
| DIOGREMovableObject* DigitalSpaces::DIOGRESceneNode::GetAttachedObject | ( | const char * | name | ) |
Retrieves a pointer to an attached object.
| DIOGREMovableObject* DigitalSpaces::DIOGRESceneNode::DetachObject | ( | unsigned short | index | ) |
Detaches the indexed object from this scene node.
| void DigitalSpaces::DIOGRESceneNode::DetachObject | ( | DIOGREMovableObject * | obj | ) |
Detaches an object by pointer.
| DIOGREMovableObject* DigitalSpaces::DIOGRESceneNode::DetachObject | ( | const char * | name | ) |
Detaches the named object from this node and returns a pointer to it.
| void DigitalSpaces::DIOGRESceneNode::DetachAllObjects | ( | void | ) |
Detaches all objects attached to this node.
| bool DigitalSpaces::DIOGRESceneNode::IsInSceneGraph | ( | void | ) |
Determines whether this node is in the scene graph, ie whether it's ulitimate ancestor is the root scene node.
| DIOGRESceneManager* DigitalSpaces::DIOGRESceneNode::GetCreator | ( | void | ) |
Retrieves an iterator which can be used to efficiently step through the objects attached to this node.
This is a much faster way to go through all the objects attached to the node than using getAttachedObject. But the iterator returned is only valid until a change is made to the collection (ie an addition or removal) so treat the returned iterator as transient, and don't add / remove items as you go through the iterator, save changes until the end, or retrieve a new iterator after making the change. Making changes to the object returned through the iterator is OK though. Gets the creator of this scene node.
This method returns the SceneManager which created this node. This can be useful for destroying this node.
| void DigitalSpaces::DIOGRESceneNode::RemoveAndDestroyChild | ( | const char * | name | ) |
This method removes and destroys the named child and all of its children.
| void DigitalSpaces::DIOGRESceneNode::RemoveAndDestroyChild | ( | unsigned short | index | ) |
This method removes and destroys the child and all of its children.
| void DigitalSpaces::DIOGRESceneNode::RemoveAndDestroyAllChildren | ( | void | ) |
Removes and destroys all children of this node.
| void DigitalSpaces::DIOGRESceneNode::ShowBoundingBox | ( | bool | bShow | ) |
Allows the showing of the node's bounding box.
| bool DigitalSpaces::DIOGRESceneNode::GetShowBoundingBox | ( | ) |
This allows scene managers to determine if the node's bounding box should be added to the rendering queue.
| DIOGRESceneNode* DigitalSpaces::DIOGRESceneNode::CreateChildSceneNode | ( | void | ) |
Creates an unnamed new SceneNode as a child of this node.
| translate | Initial translation offset of child relative to parent | |
| rotate | Initial rotation relative to parent |
| DIOGRESceneNode* DigitalSpaces::DIOGRESceneNode::CreateChildSceneNode | ( | in_Vector3f * | translate, | |
| in_Quaternionf * | rotate | |||
| ) |
| DIOGRESceneNode* DigitalSpaces::DIOGRESceneNode::CreateChildSceneNode | ( | const char * | name | ) |
Creates a new named SceneNode as a child of this node.
| translate | Initial translation offset of child relative to parent | |
| rotate | Initial rotation relative to parent |
| DIOGRESceneNode* DigitalSpaces::DIOGRESceneNode::CreateChildSceneNode | ( | const char * | name, | |
| in_Vector3f * | translate, | |||
| in_Quaternionf * | rotate | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::SetFixedYawAxis | ( | bool | useFixed | ) |
Allows retrieval of the nearest lights to the centre of this SceneNode.
| radius | Optional parameter to specify lights intersecting a given radius of this SceneNode's centre. Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice. |
| useFixed | If true, the axis passed in the second parameter will always be the yaw axis no matter what the node orientation. If false, the node returns to it's default behaviour. | |
| fixedAxis | The axis to use if the first parameter is true. |
| void DigitalSpaces::DIOGRESceneNode::SetFixedYawAxis | ( | bool | useFixed, | |
| in_Vector3f * | fixedAxis | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::YawRadian | ( | const float | angle | ) |
Rotate the node around the Y-axis.
| void DigitalSpaces::DIOGRESceneNode::YawRadian | ( | const float | angle, | |
| TransformSpace | relativeTo | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::YawDegree | ( | const float | angle | ) |
| void DigitalSpaces::DIOGRESceneNode::YawDegree | ( | const float | angle, | |
| TransformSpace | relativeTo | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::SetDirection | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
Sets the node's direction vector ie it's local -z.
| x,y,z | The components of the direction vector | |
| relativeTo | The space in which this direction vector is expressed | |
| localDirectionVector | The vector which normally describes the natural direction of the node, usually -Z |
| void DigitalSpaces::DIOGRESceneNode::SetDirection | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| TransformSpace | relativeTo, | |||
| in_Vector3f * | localDirectionVector | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::SetDirection | ( | in_Vector3f * | vec | ) |
Sets the node's direction vector ie it's local -z.
| vec | The direction vector | |
| relativeTo | The space in which this direction vector is expressed | |
| localDirectionVector | The vector which normally describes the natural direction of the node, usually -Z |
| void DigitalSpaces::DIOGRESceneNode::SetDirection | ( | in_Vector3f * | vec, | |
| TransformSpace | relativeTo, | |||
| in_Vector3f * | localDirectionVector | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::LookAt | ( | in_Vector3f * | targetPoint, | |
| TransformSpace | relativeTo | |||
| ) |
Points the local -Z direction of this node at a point in space.
| targetPoint | A vector specifying the look at point. | |
| relativeTo | The space in which the point resides | |
| localDirectionVector | The vector which normally describes the natural direction of the node, usually -Z |
| void DigitalSpaces::DIOGRESceneNode::LookAt | ( | in_Vector3f * | targetPoint, | |
| TransformSpace | relativeTo, | |||
| in_Vector3f * | localDirectionVector | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::SetAutoTracking | ( | bool | enabled | ) |
Enables / disables automatic tracking of another SceneNode.
| enabled | If true, tracking will be enabled and the next parameter cannot be null. If false tracking will be disabled and the current orientation will be maintained. | |
| target | Pointer to the SceneNode to track. Make sure you don't delete this SceneNode before turning off tracking (e.g. SceneManager::clearScene will delete it so be careful of this). Can be null if and only if the enabled param is false. | |
| localDirectionVector | The local vector considered to be the usual 'direction' of the node; normally the local -Z but can be another direction. | |
| offset | If supplied, this is the target point in local space of the target node instead of the origin of the target node. Good for fine tuning the look at point. |
| void DigitalSpaces::DIOGRESceneNode::SetAutoTracking | ( | bool | enabled, | |
| DIOGRESceneNode * | target, | |||
| in_Vector3f * | localDirectionVector, | |||
| in_Vector3f * | offset | |||
| ) |
| DIOGRESceneNode* DigitalSpaces::DIOGRESceneNode::GetAutoTrackTarget | ( | void | ) |
Get the auto tracking target for this node, if any.
| void DigitalSpaces::DIOGRESceneNode::GetAutoTrackOffset | ( | out_Vector3f * | vec | ) |
Get the auto tracking offset for this node, if the node is auto tracking.
| void DigitalSpaces::DIOGRESceneNode::GetAutoTrackLocalDirection | ( | out_Vector3f * | vec | ) |
Get the auto tracking local direction for this node, if it is auto tracking.
| DIOGRESceneNode* DigitalSpaces::DIOGRESceneNode::GetParentSceneNode | ( | void | ) |
Gets the parent of this SceneNode.
| void DigitalSpaces::DIOGRESceneNode::SetVisible | ( | bool | visible | ) |
Makes all objects attached to this node become visible / invisble.
| visible | Whether the objects are to be made visible or invisible | |
| cascade | If true, this setting cascades into child nodes too. |
| void DigitalSpaces::DIOGRESceneNode::SetVisible | ( | bool | visible, | |
| bool | cascade | |||
| ) |
| void DigitalSpaces::DIOGRESceneNode::FlipVisibility | ( | void | ) |
Inverts the visibility of all objects attached to this node.
| cascade | If true, this setting cascades into child nodes too. |
| void DigitalSpaces::DIOGRESceneNode::FlipVisibility | ( | bool | cascade | ) |
1.5.6