Grapher input handling. More...
#include <ilviews/grapher/io.h>
Public Member Functions | |
IlvGraphInputFile (std::istream &stream, IlvGrapher *grapher=0) | |
Constructor. More... | |
virtual IlvGraphic * | readObject () |
Reads an object from the input stream. More... | |
Grapher input handling.
Library: ilvgrapher
This subclass of IlvManagerInputFile
lets you read graphs (sets of IlvGraphic
objects including nodes and links) from a stream and store them in an IlvGrapher
instance.
IlvGraphOutputFile
. IlvGraphInputFile::IlvGraphInputFile | ( | std::istream & | stream, |
IlvGrapher * | grapher = 0 |
||
) |
Constructor.
The constructor associates the stream stream and the grapher grp with the new IlvGraphInputFile
instance.
stream | The input stream. |
grapher | The associated IlvGrapher instance. |
|
virtual |
Reads an object from the input stream.
Overloads the member function defined for the IlvManagerInputFile
class. It adds information specific to each object in its description block. This information includes the layer index as well as the type of the object (node, link, or other type of object). The method is internally called by the IlvManagerInputFile::readAll()
method and is not to be called directly by the programmer.
Reimplemented from IlvManagerInputFile.