This class implements generic node objects for generic graphs.
An edge connected to a node is represented as a pointer or reference to the node at the other end of the edge.
References are classified as either incoming or outgoing. Every incoming reference has a corresponding outgoing reference and vice versa.
Each GraphNode object can have any number of references associated with it, enabling the implementation of any graph structure.
- See also
OdDbGraph OdDbGraphStack OdDbXrefGraph OdDbXrefGraphNode
Corresponding C++ library: TD_Db
<group OdDb_Classes>
Definition at line 71 of file DbGraph.h.
Clears the specified set flag bits in this GraphNode object.
- Parameters
-
Value Description kNone 0x00 None. kVisited 0x01 Used internally by OdDbGraph::findCycles() and while traversing a graphs with cycles. kOutsideRefed 0x02 Used internally by Xref detach. kSelected 0x04 User selection. Set by getOutgoing. kInList 0x08 Is in list. Set by getOutgoing. kListAll 0x0E Used to clear kSelected, kInList, kOutsideRefed. kFirstLevel 0x10 The node is connected to the root node. Read Only. kUnresTree 0x20 The tree is unresolved. kAll 0x2F Used to clear all but kFirstLevel.
Definition at line 261 of file DbGraph.h.
bool OdDbGraphNode::isMarkedAs |
( |
OdUInt8 |
flags | ) |
const |
|
inline |
Returns true if and only if the all the specified set flag bits are set in this GraphNode object.
- Parameters
-
Value Description kNone 0x00 None. kVisited 0x01 Used internally by OdDbGraph::findCycles() and while traversing a graphs with cycles. kOutsideRefed 0x02 Used internally by Xref detach. kSelected 0x04 User selection. Set by getOutgoing. kInList 0x08 Is in list. Set by getOutgoing. kListAll 0x0E Used to clear kSelected, kInList, kOutsideRefed. kFirstLevel 0x10 The node is connected to the root node. Read Only. kUnresTree 0x20 The tree is unresolved. kAll 0x2F Used to clear all but kFirstLevel.
Definition at line 203 of file DbGraph.h.
Sets the specified set flag bits in this GraphNode object.
- Parameters
-
Value Description kNone 0x00 None. kVisited 0x01 Used internally by OdDbGraph::findCycles() and while traversing a graphs with cycles. kOutsideRefed 0x02 Used internally by Xref detach. kSelected 0x04 User selection. Set by getOutgoing. kInList 0x08 Is in list. Set by getOutgoing. kListAll 0x0E Used to clear kSelected, kInList, kOutsideRefed. kFirstLevel 0x10 The node is connected to the root node. Read Only. kUnresTree 0x20 The tree is unresolved. kAll 0x2F Used to clear all but kFirstLevel.
Definition at line 227 of file DbGraph.h.
Marks this GraphNode object and all nested outgoing GraphNode objects with the specified flags.
- Parameters
-
flags | [in] Flag bits. |
pNodeArray | [in] Pointer to a GraphNode array.
|
The user must clear the flags with OdDbGraph::clearAll() or OdDbGraphNode::clear() when done with them.
flags must be a combination of one or more of the following:
Value Description kNone 0x00 None. kVisited 0x01 Used internally by OdDbGraph::findCycles() and while traversing a graphs with cycles. kOutsideRefed 0x02 Used internally by Xref detach. kSelected 0x04 User selection. Set by getOutgoing. kInList 0x08 Is in list. Set by getOutgoing. kListAll 0x0E Used to clear kSelected, kInList, kOutsideRefed. kFirstLevel 0x10 The node is connected to the root node. Read Only. kUnresTree 0x20 The tree is unresolved. kAll 0x2F Used to clear all but kFirstLevel.