33 #ifndef __H__UG__NODE_TREE__COLLSISION_EDGES_NODE__
34 #define __H__UG__NODE_TREE__COLLSISION_EDGES_NODE__
43 class CollisionEdgesNode;
63 virtual void add_edge(
int ind1,
int ind2);
64 virtual void add_edge(
int ind1,
int ind2,
68 virtual void add_edges(
int* pIndices,
int numEdges);
77 virtual void get_edge(
int index,
int& ind1Out,
int& ind2Out)
const;
92 typedef std::vector<CollisionElementID>
IDVec;
Definition: smart_pointer.h:108
holds index pairs defining edges.
Definition: collision_edges_node.h:57
virtual void add_edges(int *pIndices, int numEdges)
pIndices has to be of size numEdges*2
Definition: collision_edges_node.cpp:89
virtual void get_edge(int index, int &ind1Out, int &ind2Out) const
Definition: collision_edges_node.cpp:146
bool m_bEdgeIDsSupplied
Definition: collision_edges_node.h:97
virtual CollisionElementID get_edge_id(int edgeIndex)
if no identifier has been set for an edge -1 is returned.
Definition: collision_edges_node.cpp:175
IndexVec m_vEdges
Definition: collision_edges_node.h:94
std::vector< int > IndexVec
Definition: collision_edges_node.h:91
virtual ~CollisionEdgesNode()
Definition: collision_edges_node.cpp:54
virtual int num_edges() const
Definition: collision_edges_node.cpp:140
CollisionEdgesNode()
Definition: collision_edges_node.cpp:48
std::vector< CollisionElementID > IDVec
Definition: collision_edges_node.h:92
virtual void set_edge_id(int edgeIndex, CollisionElementID edgeID)
Definition: collision_edges_node.cpp:161
virtual const int * get_edges() const
Definition: collision_edges_node.cpp:154
static SPCollisionEdgesNode create()
Definition: collision_edges_node.cpp:40
virtual void add_edge(int ind1, int ind2)
Definition: collision_edges_node.cpp:59
IDVec m_vEdgeIDs
Definition: collision_edges_node.h:95
Nodes serve as base-objects for items of wich a scene-graph consists.
Definition: node.h:72
SmartPtr< CollisionEdgesNode > SPCollisionEdgesNode
the smartpointer used to encapsulate the node
Definition: collision_edges_node.h:43
Definition: collision_element_info.h:53