ug4
ug::node_tree::CollisionEdgesNode Class Reference

holds index pairs defining edges. More...

#include <collision_edges_node.h>

+ Inheritance diagram for ug::node_tree::CollisionEdgesNode:

Public Member Functions

virtual void add_edge (int ind1, int ind2)
 
virtual void add_edge (int ind1, int ind2, CollisionElementID edgeID)
 
virtual void add_edges (int *pIndices, CollisionElementID *pEdgeIDs, int numEdges)
 pIndices has to be of size numEdges*2 More...
 
virtual void add_edges (int *pIndices, int numEdges)
 pIndices has to be of size numEdges*2 More...
 
virtual void get_edge (int index, int &ind1Out, int &ind2Out) const
 
virtual CollisionElementID get_edge_id (int edgeIndex)
 if no identifier has been set for an edge -1 is returned. More...
 
virtual const int * get_edges () const
 
virtual int num_edges () const
 
virtual void set_edge_id (int edgeIndex, CollisionElementID edgeID)
 
virtual ~CollisionEdgesNode ()
 
- Public Member Functions inherited from ug::node_tree::Node
virtual ~Node ()
 
- Public Member Functions inherited from ug::node_tree::Object
unsigned int getObjectCode ()
 
virtual ~Object ()
 

Static Public Member Functions

static SPCollisionEdgesNode create ()
 

Protected Types

typedef std::vector< CollisionElementIDIDVec
 
typedef std::vector< int > IndexVec
 

Protected Member Functions

 CollisionEdgesNode ()
 
- Protected Member Functions inherited from ug::node_tree::Node
 Node ()
 
- Protected Member Functions inherited from ug::node_tree::Object
 Object ()
 
 Object (const Object &obj)
 

Protected Attributes

bool m_bEdgeIDsSupplied
 
IDVec m_vEdgeIDs
 
IndexVec m_vEdges
 
- Protected Attributes inherited from ug::node_tree::Object
unsigned int m_objectCode
 

Detailed Description

holds index pairs defining edges.

An identifier can be stored with each edge. Normally appears as a subordinate of CollisionTreeRootNode.

Member Typedef Documentation

◆ IDVec

◆ IndexVec

typedef std::vector<int> ug::node_tree::CollisionEdgesNode::IndexVec
protected

Constructor & Destructor Documentation

◆ ~CollisionEdgesNode()

ug::node_tree::CollisionEdgesNode::~CollisionEdgesNode ( )
virtual

◆ CollisionEdgesNode()

ug::node_tree::CollisionEdgesNode::CollisionEdgesNode ( )
protected

References m_bEdgeIDsSupplied.

Referenced by create().

Member Function Documentation

◆ add_edge() [1/2]

void ug::node_tree::CollisionEdgesNode::add_edge ( int  ind1,
int  ind2 
)
virtual

References add_edge(), m_bEdgeIDsSupplied, and m_vEdges.

Referenced by add_edge().

◆ add_edge() [2/2]

void ug::node_tree::CollisionEdgesNode::add_edge ( int  ind1,
int  ind2,
CollisionElementID  edgeID 
)
virtual

◆ add_edges() [1/2]

void ug::node_tree::CollisionEdgesNode::add_edges ( int *  pIndices,
CollisionElementID pEdgeIDs,
int  numEdges 
)
virtual

pIndices has to be of size numEdges*2

References m_bEdgeIDsSupplied, m_vEdgeIDs, and m_vEdges.

◆ add_edges() [2/2]

void ug::node_tree::CollisionEdgesNode::add_edges ( int *  pIndices,
int  numEdges 
)
virtual

pIndices has to be of size numEdges*2

References m_bEdgeIDsSupplied, m_vEdgeIDs, and m_vEdges.

◆ create()

SPCollisionEdgesNode ug::node_tree::CollisionEdgesNode::create ( )
static

◆ get_edge()

void ug::node_tree::CollisionEdgesNode::get_edge ( int  index,
int &  ind1Out,
int &  ind2Out 
) const
virtual

References m_vEdges.

◆ get_edge_id()

CollisionElementID ug::node_tree::CollisionEdgesNode::get_edge_id ( int  edgeIndex)
virtual

if no identifier has been set for an edge -1 is returned.

References m_bEdgeIDsSupplied, and m_vEdgeIDs.

Referenced by ug::node_tree::Traverser_ProjectPoint::handle_collision_edges().

◆ get_edges()

const int * ug::node_tree::CollisionEdgesNode::get_edges ( ) const
virtual

◆ num_edges()

int ug::node_tree::CollisionEdgesNode::num_edges ( ) const
virtual

◆ set_edge_id()

void ug::node_tree::CollisionEdgesNode::set_edge_id ( int  edgeIndex,
CollisionElementID  edgeID 
)
virtual

Member Data Documentation

◆ m_bEdgeIDsSupplied

bool ug::node_tree::CollisionEdgesNode::m_bEdgeIDsSupplied
protected

◆ m_vEdgeIDs

IDVec ug::node_tree::CollisionEdgesNode::m_vEdgeIDs
protected

◆ m_vEdges

IndexVec ug::node_tree::CollisionEdgesNode::m_vEdges
protected

The documentation for this class was generated from the following files: