#include <Ample.h>


Public Types | |
| typedef Observer< NodeObserver > | ObserverType |
| typedef std::vector < NodeObserver * > | ObserverList |
Public Member Functions | |
| void | createMethodGroup (const std::string &name) |
| void | createLink (const std::string &name, VNodeID nodeID, VNodeID targetID=(VNodeID)~0) |
| bool | isLight (void) const |
| void | setLightIntensity (const ColorRGB &intensity) |
| const ColorRGB & | getLightIntensity (void) const |
| MethodGroup * | getMethodGroupByID (uint16 groupID) |
| const MethodGroup * | getMethodGroupByID (uint16 groupID) const |
| MethodGroup * | getMethodGroupByIndex (unsigned int index) |
| const MethodGroup * | getMethodGroupByIndex (unsigned int index) const |
| MethodGroup * | getMethodGroupByName (const std::string &name) |
| const MethodGroup * | getMethodGroupByName (const std::string &name) const |
| unsigned int | getMethodGroupCount (void) const |
| Link * | getLinkByID (uint16 groupID) |
| const Link * | getLinkByID (uint16 groupID) const |
| Link * | getLinkByIndex (unsigned int index) |
| const Link * | getLinkByIndex (unsigned int index) const |
| Link * | getLinkByName (const std::string &name) |
| const Link * | getLinkByName (const std::string &name) const |
| unsigned int | getLinkCount (void) const |
| Node * | getNodeByLinkName (const std::string &name) const |
| void | setTranslation (const Translation &translation) |
| void | setRotation (const Rotation &rotation) |
| const Vector3d & | getPosition (void) const |
| void | setPosition (const Vector3d &position) |
| const Vector3d & | getSpeed (void) const |
| void | setSpeed (const Vector3d &speed) |
| const Vector3d & | getAccel (void) const |
| void | setAccel (const Vector3d &accel) |
| const Quaternion64 & | getRotation (void) const |
| void | setRotation (const Quaternion64 &rotation) |
| const Quaternion64 & | getRotationSpeed (void) const |
| void | setRotationSpeed (const Quaternion64 &speed) |
| const Quaternion64 & | getRotationAccel (void) const |
| void | setRotationAccel (const Quaternion64 &accel) |
| const Vector3d & | getScale (void) const |
| void | setScale (const Vector3d &scale) |
| void | destroy (void) |
| void | createTagGroup (const std::string &name) |
| TagGroup * | getTagGroupByID (uint16 ID) |
| const TagGroup * | getTagGroupByID (uint16 ID) const |
| TagGroup * | getTagGroupByIndex (unsigned int index) |
| const TagGroup * | getTagGroupByIndex (unsigned int index) const |
| TagGroup * | getTagGroupByName (const std::string &name) |
| const TagGroup * | getTagGroupByName (const std::string &name) const |
| unsigned int | getTagGroupCount (void) const |
| Tag * | getTagByNames (const std::string &groupName, const std::string &tagName) |
| const Tag * | getTagByNames (const std::string &groupName, const std::string &tagName) const |
| bool | isMine (void) const |
| VNodeID | getID (void) const |
| VNodeType | getType (void) const |
| const std::string & | getName (void) const |
| void | setName (const std::string &name) |
| Session & | getSession (void) const |
| unsigned int | getDataVersion (void) const |
| unsigned int | getStructureVersion (void) const |
| void | addObserver (NodeObserver &observer) |
| void | removeObserver (NodeObserver &observer) |
| void | removeObserver (Observer< NodeObserver > &observer) |
| const ObserverList & | getObservers (void) const |
Friends | |
| class | Session |
Object node class. Represents a single object node.
typedef std::vector<NodeObserver *> ObserverList [inherited] |
typedef Observer<NodeObserver > ObserverType [inherited] |
| void addObserver | ( | NodeObserver & | observer | ) | [inline, inherited] |
Adds the specified observer to this object.
| observer | The observer to add. |
| void createLink | ( | const std::string & | name, | |
| VNodeID | nodeID, | |||
| VNodeID | targetID = (VNodeID)~0 | |||
| ) |
Creates a new link to the specified node.
| name | The desired name of the link. | |
| nodeID | The ID of the node to link to. | |
| targetID | Who knows. |
| void createMethodGroup | ( | const std::string & | name | ) |
Creates a new method group in this node.
| name | The desired name of the method group. |
| void createTagGroup | ( | const std::string & | name | ) | [inherited] |
Creates a new tag group in this node.
| name | The desired name of the tag group. |
| void destroy | ( | void | ) | [inherited] |
Destroys this node.
| const Vector3d& getAccel | ( | void | ) | const |
| unsigned int getDataVersion | ( | void | ) | const [inherited] |
| VNodeID getID | ( | void | ) | const [inherited] |
| const ColorRGB& getLightIntensity | ( | void | ) | const |
| const Link* getLinkByID | ( | uint16 | groupID | ) | const |
| groupID | The ID of the desired link. |
NULL if no such link exists. | Link* getLinkByID | ( | uint16 | groupID | ) |
| groupID | The ID of the desired link. |
NULL if no such link exists. | const Link* getLinkByIndex | ( | unsigned int | index | ) | const |
| index | The index of the desired link. |
NULL if no such link exists. | Link* getLinkByIndex | ( | unsigned int | index | ) |
| index | The index of the desired link. |
NULL if no such link exists. | const Link* getLinkByName | ( | const std::string & | name | ) | const |
| name | The name of the desired link |
NULL if no such link exists. | Link* getLinkByName | ( | const std::string & | name | ) |
| name | The name of the desired link |
NULL if no such link exists. | unsigned int getLinkCount | ( | void | ) | const |
| const MethodGroup* getMethodGroupByID | ( | uint16 | groupID | ) | const |
| groupID | The ID of the desired method group. |
NULL if no such method group exists. | MethodGroup* getMethodGroupByID | ( | uint16 | groupID | ) |
| groupID | The ID of the desired method group. |
NULL if no such method group exists. | const MethodGroup* getMethodGroupByIndex | ( | unsigned int | index | ) | const |
| index | The index of the desired method group. |
NULL if no such method group exists. | MethodGroup* getMethodGroupByIndex | ( | unsigned int | index | ) |
| index | The index of the desired method group. |
NULL if no such method group exists. | const MethodGroup* getMethodGroupByName | ( | const std::string & | name | ) | const |
| name | The name of the desired method group |
NULL if no such method group exists. | MethodGroup* getMethodGroupByName | ( | const std::string & | name | ) |
| name | The name of the desired method group |
NULL if no such method group exists. | unsigned int getMethodGroupCount | ( | void | ) | const |
| const std::string& getName | ( | void | ) | const [inherited] |
| Node* getNodeByLinkName | ( | const std::string & | name | ) | const |
| name | The name of the link to return the node of. |
| const ObserverList& getObservers | ( | void | ) | const [inline, inherited] |
| const Vector3d& getPosition | ( | void | ) | const |
| const Quaternion64& getRotation | ( | void | ) | const |
| const Quaternion64& getRotationAccel | ( | void | ) | const |
| const Quaternion64& getRotationSpeed | ( | void | ) | const |
| const Vector3d& getScale | ( | void | ) | const |
| Session& getSession | ( | void | ) | const [inherited] |
| const Vector3d& getSpeed | ( | void | ) | const |
| unsigned int getStructureVersion | ( | void | ) | const [inherited] |
| const Tag* getTagByNames | ( | const std::string & | groupName, | |
| const std::string & | tagName | |||
| ) | const [inherited] |
| groupName | The name of the group of the desired tag. | |
| tagName | The name of the desired tag. |
| Tag* getTagByNames | ( | const std::string & | groupName, | |
| const std::string & | tagName | |||
| ) | [inherited] |
| groupName | The name of the group of the desired tag. | |
| tagName | The name of the desired tag. |
| const TagGroup* getTagGroupByID | ( | uint16 | ID | ) | const [inherited] |
| ID | The ID of the desired tag group. |
NULL if no such tag group exists. | TagGroup* getTagGroupByID | ( | uint16 | ID | ) | [inherited] |
| ID | The ID of the desired tag group. |
NULL if no such tag group exists. | const TagGroup* getTagGroupByIndex | ( | unsigned int | index | ) | const [inherited] |
| index | The index of the desired tag group. |
NULL if no such tag group exists. | TagGroup* getTagGroupByIndex | ( | unsigned int | index | ) | [inherited] |
| index | The index of the desired tag group. |
NULL if no such tag group exists. | const TagGroup* getTagGroupByName | ( | const std::string & | name | ) | const [inherited] |
| name | The name of the desired tag group. |
NULL if no such tag group exists. | TagGroup* getTagGroupByName | ( | const std::string & | name | ) | [inherited] |
| name | The name of the desired tag group. |
NULL if no such tag group exists. | unsigned int getTagGroupCount | ( | void | ) | const [inherited] |
| VNodeType getType | ( | void | ) | const [inherited] |
| bool isLight | ( | void | ) | const |
true if this object node emits light, otherwise false. | bool isMine | ( | void | ) | const [inherited] |
true if this node was created from this client, otherwise false. | void removeObserver | ( | Observer< NodeObserver > & | observer | ) | [inline, inherited] |
Removes the specified observer from this object.
| observer | The observer to remove. |
| void removeObserver | ( | NodeObserver & | observer | ) | [inline, inherited] |
Removes the specified observer from this object.
| observer | The observer to remove. |
| void setAccel | ( | const Vector3d & | accel | ) |
Sets the movement acceleration of this object node.
| accel | The desired new movement acceleration. |
| void setLightIntensity | ( | const ColorRGB & | intensity | ) |
Sets the light intensity of this object node. If set to non-zero, this object node becomes a light source.
| void setName | ( | const std::string & | name | ) | [inherited] |
Changes the name of this node.
| name | The desired name. |
| void setPosition | ( | const Vector3d & | position | ) |
Sets the position of this object node.
| position | The desired new position. |
| void setRotation | ( | const Quaternion64 & | rotation | ) |
Sets the rotation of this object node.
| rotation | The desired new rotation. |
| void setRotation | ( | const Rotation & | rotation | ) |
| void setRotationAccel | ( | const Quaternion64 & | accel | ) |
| void setRotationSpeed | ( | const Quaternion64 & | speed | ) |
| void setScale | ( | const Vector3d & | scale | ) |
Changes the scaling of this object node.
| scale | The desired scaling. |
| void setSpeed | ( | const Vector3d & | speed | ) |
Sets the movement speed of this object node.
| speed | The desired new movement speed. |
| void setTranslation | ( | const Translation & | translation | ) |
1.6.1