class
GraphComp
: public
OverlaysComp
(Return to index)
component used to group a set of nodes and edges into a graph.
Type:
Instantiable
Base Classes:
public
OverlaysComp
Derived Classes
Include file:
GraphUnidraw/graphcomp.h
Public:
void
AppendEdge
(
EdgeComp
*)
add edge component to the graph.
virtual
Component
*
Copy
()
virtual const char*
GetBaseDir
()
get base directory portion of associated pathname.
virtual ClassId
GetClassId
()
virtual const char*
GetFile
()
get file portion of associated pathname.
virtual
Graphic
*
GetIndexedGS
(int)
int
GetNumEdge
()
number of edges in graph.
int
GetNumNode
()
number of nodes in graph.
virtual const char*
GetPathName
()
get pathname associated with graph from separate file.
GraphComp
(
Graphic
*,
OverlayComp
* parent = nil)
GraphComp
(const char* pathname = nil,
OverlayComp
* parent = nil)
GraphComp
(istream&, const char* pathname = nil,
OverlayComp
* parent = nil)
virtual
GraphComp
*
GraphCopy
()
UList
*
GraphEdges
()
return list of edge components.
virtual void
GrowIndexedGS
(
Graphic
*)
virtual boolean
IsA
(ClassId)
virtual void
SetPathName
(const char*)
set pathname associated with graph from separate file.
virtual
~GraphComp
()
Protected:
CLASS_SYMID
("
GraphComp
")
ParamList
*
GetParamList
()
void
GrowParamList
(
ParamList
*)
char*
_basedir
char*
_file
static
ParamList
*
_graph_params
UList
*
_graphedges
Picture
*
_gslist
int
_num_edge
int
_num_node
char*
_pathname
(more documentation)