Purpose:
|
Creates an instance of a graph vertex that holds an entity pointer as data.
|
|
Derivation:
|
entity_gvertex : gvertex : ACIS_OBJECT : -
|
|
Filename:
|
kern/kernel/kernutil/law/generic_graph.hxx
|
|
Description:
|
This is the same as the
gvertex class, except that it holds a pointer to an entity that the graph vertex refers to. Initially, this can be a
CELL or a
FACE. This is a way for the graph theory tools to interface with a geometric model.
|
|
|
To make a
gvertex or
gedge contain data, derive a class from the base classes of
gvertex and
gedge. Use a technique similar to the
entity_gvertex class which enables it to contain an entity pointer.
|
|
References:
|
KERN
|
ENTITY
|
|
Constructor:
|
public: entity_gvertex::entity_gvertex
(
|
|
|
char const* name,
|
// name of vertex
|
|
|
ENTITY*
|
// pointer to entity
|
|
|
);
|
|
|
This creates an instance of a graph vertex which also has a data pointer to an owning entity.
|
|
|
|
|
Destructor:
|
protected: virtual
|
|
|
entity_gvertex::~entity_gvertex ();
|
|
|
C++ destructor, deleting an
entity_gvertex.
|
|
|
|
Methods:
|
public: ENTITY* entity_gvertex::get_entity
() const;
|
|
|
Returns a pointer to the entity stored as data on the graph vertex. Initially, the entity can be a
CELL or a
FACE.
|
|
Internal Use:
|
id, isa, same, type
|