#include <Ample.h>


Public Types | |
| typedef Observer< NodeObserver > | ObserverType |
| typedef std::vector < NodeObserver * > | ObserverList |
Public Member Functions | |
| void | createLayer (const std::string &name, VNGLayerType type, uint32 defaultInt=0, real64 defaultReal=0.0) |
| bool | getBaseMesh (BaseMesh &mesh) |
| GeometryLayer * | getLayerByID (VLayerID ID) |
| const GeometryLayer * | getLayerByID (VLayerID ID) const |
| GeometryLayer * | getLayerByIndex (unsigned int index) |
| const GeometryLayer * | getLayerByIndex (unsigned int index) const |
| GeometryLayer * | getLayerByName (const std::string &name) |
| const GeometryLayer * | getLayerByName (const std::string &name) const |
| bool | isVertex (uint32 vertexID) const |
| bool | isPolygon (uint32 polygonID) const |
| bool | getBaseVertex (uint32 vertexID, BaseVertex &vertex) const |
| bool | getBasePolygon (uint32 polygonID, BasePolygon &polygon) const |
| void | setBaseVertex (uint32 vertexID, const BaseVertex &vertex) |
| void | setBasePolygon (uint32 polygonID, const BasePolygon &polygon) |
| void | deleteVertex (uint32 vertexID) |
| void | deletePolygon (uint32 polygonID) |
| size_t | getVertexSize (void) const |
| size_t | getPolygonSize (void) const |
| GeometryLayer * | getVertexCreaseLayer (void) |
| const std::string & | getVertexCreaseLayerName (void) const |
| uint32 | getVertexDefaultCrease (void) const |
| void | setVertexDefaultCrease (uint32 crease) |
| GeometryLayer * | getEdgeCreaseLayer (void) |
| const std::string & | getEdgeCreaseLayerName (void) const |
| uint32 | getEdgeDefaultCrease (void) const |
| void | setEdgeDefaultCrease (uint32 crease) |
| uint32 | getHighestVertexID (void) const |
| uint32 | getFirstFreeVertexID (void) const |
| uint32 | getHighestPolygonID (void) const |
| uint32 | getFirstFreePolygonID (void) const |
| uint32 | getVertexCount (void) const |
| uint32 | getPolygonCount (void) const |
| 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 | GeometryLayer |
| class | Session |
Geometry node class. Represents a single geometry 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 createLayer | ( | const std::string & | name, | |
| VNGLayerType | type, | |||
| uint32 | defaultInt = 0, |
|||
| real64 | defaultReal = 0.0 | |||
| ) |
Creates a geometry layer in this node.
| name | The desired name of the geometry layer. | |
| type | The desired slot type of the geometry layer. | |
| defaultInt | The desired default value for integer slots. | |
| defaultReal | The desired default value for real slots. |
| void createTagGroup | ( | const std::string & | name | ) | [inherited] |
Creates a new tag group in this node.
| name | The desired name of the tag group. |
| void deletePolygon | ( | uint32 | polygonID | ) |
Deletes the polygon with the specified ID.
| polygonID | The ID of the polygon to delete. |
| void deleteVertex | ( | uint32 | vertexID | ) |
Deletes the vertex with the specified ID.
| vertexID | The ID of the vertex to delete. |
| void destroy | ( | void | ) | [inherited] |
Destroys this node.
| bool getBaseMesh | ( | BaseMesh & | mesh | ) |
Builds a base mesh of all the valid polygons and vertices in this geometry node.
| mesh | The mesh to receive the constructed geometry. |
true if successful, or false if no valid geometry was available. | bool getBasePolygon | ( | uint32 | polygonID, | |
| BasePolygon & | polygon | |||
| ) | const |
Retrieves the base layer data of the specified polygon.
| polygonID | The ID of the desired polygon. | |
| polygon | The base layer data of the desired vertex. |
true if the polygon was valid, otherwise false. | bool getBaseVertex | ( | uint32 | vertexID, | |
| BaseVertex & | vertex | |||
| ) | const |
Retrieves the base layer data of the specified vertex.
| vertexID | The ID of the desired vertex. | |
| vertex | The base layer data of the desired vertex. |
true if the vertex was valid, otherwise false. | unsigned int getDataVersion | ( | void | ) | const [inherited] |
| GeometryLayer* getEdgeCreaseLayer | ( | void | ) |
NULL if no such layer exists. | const std::string& getEdgeCreaseLayerName | ( | void | ) | const |
| uint32 getEdgeDefaultCrease | ( | void | ) | const |
| uint32 getFirstFreePolygonID | ( | void | ) | const |
| uint32 getFirstFreeVertexID | ( | void | ) | const |
| uint32 getHighestPolygonID | ( | void | ) | const |
| uint32 getHighestVertexID | ( | void | ) | const |
| VNodeID getID | ( | void | ) | const [inherited] |
| const GeometryLayer* getLayerByID | ( | VLayerID | ID | ) | const |
| ID | The ID of the desired geometry layer. |
NULL if no such geometry layer exists. | GeometryLayer* getLayerByID | ( | VLayerID | ID | ) |
| ID | The ID of the desired geometry layer. |
NULL if no such geometry layer exists. | const GeometryLayer* getLayerByIndex | ( | unsigned int | index | ) | const |
| index | The index of the desired geometry layer. |
NULL if no such geometry layer exists. | GeometryLayer* getLayerByIndex | ( | unsigned int | index | ) |
| index | The index of the desired geometry layer. |
NULL if no such geometry layer exists. | const GeometryLayer* getLayerByName | ( | const std::string & | name | ) | const |
| name | The name of the desired geometry layer |
NULL if no such geometry layer exists. | GeometryLayer* getLayerByName | ( | const std::string & | name | ) |
| name | The name of the desired geometry layer |
NULL if no such geometry layer exists. | const std::string& getName | ( | void | ) | const [inherited] |
| const ObserverList& getObservers | ( | void | ) | const [inline, inherited] |
| uint32 getPolygonCount | ( | void | ) | const |
| size_t getPolygonSize | ( | void | ) | const |
| Session& getSession | ( | void | ) | const [inherited] |
| 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] |
| uint32 getVertexCount | ( | void | ) | const |
| GeometryLayer* getVertexCreaseLayer | ( | void | ) |
NULL if no such layer exists. | const std::string& getVertexCreaseLayerName | ( | void | ) | const |
| uint32 getVertexDefaultCrease | ( | void | ) | const |
| size_t getVertexSize | ( | void | ) | const |
| bool isMine | ( | void | ) | const [inherited] |
true if this node was created from this client, otherwise false. | bool isPolygon | ( | uint32 | polygonID | ) | const |
true if the polygon with the specified ID is valid. | bool isVertex | ( | uint32 | vertexID | ) | const |
true if the vertex with the specified ID is valid. | 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 setBasePolygon | ( | uint32 | polygonID, | |
| const BasePolygon & | polygon | |||
| ) |
Sets the base layer data for the specified polygon.
| polygonID | The ID of the polygon to create or change. | |
| polygon | The data for the base polygon layer. |
| void setBaseVertex | ( | uint32 | vertexID, | |
| const BaseVertex & | vertex | |||
| ) |
Sets the base layer data for the specified vertex.
| vertexID | The ID of the vertex to create or change. | |
| vertex | The data for the base vertex layer. |
| void setEdgeDefaultCrease | ( | uint32 | crease | ) |
Sets the default edge crease value.
| crease | The default edge crease value. |
| void setName | ( | const std::string & | name | ) | [inherited] |
Changes the name of this node.
| name | The desired name. |
| void setVertexDefaultCrease | ( | uint32 | crease | ) |
Sets the default vertex crease value.
| crease | The default vertex crease value. |
friend class GeometryLayer [friend] |
Reimplemented from Versioned.
1.6.1