Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

GraphBasics2vtk Class Reference

exports the GraphBasics format to Vtk format. More...

#include <GraphBasics2vtk.h>

Inheritance diagram for GraphBasics2vtk::

GraphBasicsExport List of all members.

Public Methods

 GraphBasics2vtk ()
virtual ~GraphBasics2vtk ()
virtual void usage ()
virtual void processFormatSpecificOptions (VecSimple(String) &arguments, GBPlotSpecifications &)
virtual bool conversionSupported (GBPlotSpecifications &plotspec)
virtual void extendVec (VecSimple(VecSimple(Ptv(real))) &Vec, int k)
virtual void gbHeader (GBPlotSpecifications &plotspec)
virtual void gbFooter (GBPlotSpecifications &plotspec)
virtual void gbAssemble (GBPlotSpecifications &plotspec)
virtual void plotter (GBPlotSpecifications &plotspec, int numlp, int numentry, VecSimple(VecSimple(Ptv(real))) buffer)
virtual void gbLine (GBPlotSpecifications &plotspec, VecSimple(Ptv(real)) &points)
virtual void gbPoint (GBPlotSpecifications &plotspec, VecSimple(Ptv(real)) &points)
virtual void gbPolygon (GBPlotSpecifications &plotspec, VecSimple(Ptv(real)) &points)
virtual void gbArrow (GBPlotSpecifications &plotspec, VecSimple(Ptv(real)) &points)
virtual void gbText (GBPlotSpecifications &plotspec, String &text, VecSimple(Ptv(real)) &points)

Public Attributes

int current_color
String current_plot_type
String options

Protected Attributes

int numEntry_Line
int numEntry_Poly
int numEntry_Point
int numLines
int numPoly
int numPoints
VecSimple(VecSimple(Ptv(real))) LineBuffer
VecSimple(VecSimple(Ptv(real))) PolyBuffer

Detailed Description

exports the GraphBasics format to Vtk format.

NAME: GraphBasics2vtk - exports the GraphBasics format to Vtk format

DESCRIPTION:

This class implements an export filter from the device independent "GraphBasics" format to the format used by the visualization program Vtk (Visualization Toolkit). The class adheres to the common interface posed by the parent class "GraphBasicsExport" and also relies on functionality therein for the communication with "GraphBasics" data files.


Constructor & Destructor Documentation

GraphBasics2vtk::GraphBasics2vtk ( )
 

There is only one, default constructor in this class. Using the entry point "driver" implemented in the base class "GraphBasicsExport", the proper initialization will be done automatically.

GraphBasics2vtk::~GraphBasics2vtk ( ) [inline, virtual]
 


Member Function Documentation

bool GraphBasics2vtk::conversionSupported ( GBPlotSpecifications & plotspec ) [virtual]
 

checks the "GBPlotSpecifications" object to ensure that the chosen visualization format covers the type of data that we are dealing with. If it is accepted the function returns true, otherwise false. This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::extendVec ( VecSimple(VecSimple(Ptv(real))) & Vec,
int k ) [virtual]
 

extends the array "vec" to have "k" more entries, keeping the entries in place.

void GraphBasics2vtk::gbArrow ( GBPlotSpecifications & plotspec,
VecSimple(Ptv(real)) & points ) [virtual]
 

writes commands to standard output for drawing an arrow using the points in the array "points", which is a collection of "Ptv(real)" objects. This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::gbAssemble ( GBPlotSpecifications & plotspec ) [virtual]
 

utility function used for line and polygon plotting. (For internal use only).

void GraphBasics2vtk::gbFooter ( GBPlotSpecifications & plotspec ) [virtual]
 

writes the file header for the chosen export format to standard output. This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::gbHeader ( GBPlotSpecifications & plotspec ) [virtual]
 

writes the file header for the chosen export format to standard output. This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::gbLine ( GBPlotSpecifications & plotspec,
VecSimple(Ptv(real)) & points ) [virtual]
 

writes commands to standard output for drawing lines between the points in the array "points". This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::gbPoint ( GBPlotSpecifications & plotspec,
VecSimple(Ptv(real)) & points ) [virtual]
 

writes commands to standard output for marking the points in the array "points". This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::gbPolygon ( GBPlotSpecifications & plotspec,
VecSimple(Ptv(real)) & points ) [virtual]
 

writes commands to standard output for drawing a polygon between the points in the array "points", which is a collection of "Ptv(real)" objects. This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::gbText ( GBPlotSpecifications & plotspec,
String & text,
VecSimple(Ptv(real)) & points ) [virtual]
 

writes the specified text at the position given by "points". This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::plotter ( GBPlotSpecifications & plotspec,
int numlp,
int numentry,
VecSimple(VecSimple(Ptv(real))) buffer ) [virtual]
 

utility function used for line and polygon plotting. (For internal use only).

void GraphBasics2vtk::processFormatSpecificOptions ( VecSimple(String) & arguments,
GBPlotSpecifications & plotspec ) [virtual]
 

processes options delivered in the input array "arguments" (in command line fashion) that are specific to a particular visualization format. This is a pure virtual function that needs to be tailored for each format in question.

Reimplemented from GraphBasicsExport.

void GraphBasics2vtk::usage ( ) [virtual]
 

prints the usage message telling the user how the filter should be used (when run in command-line mode).

Reimplemented from GraphBasicsExport.


Member Data Documentation

VecSimple(VecSimple(Ptv(real))) GraphBasics2vtk::LineBuffer [protected]
 

VecSimple(VecSimple(Ptv(real))) GraphBasics2vtk::PolyBuffer [protected]
 

int GraphBasics2vtk::current_color
 

String GraphBasics2vtk::current_plot_type
 

int GraphBasics2vtk::numEntry_Line [protected]
 

int GraphBasics2vtk::numEntry_Point [protected]
 

int GraphBasics2vtk::numEntry_Poly [protected]
 

int GraphBasics2vtk::numLines [protected]
 

int GraphBasics2vtk::numPoints [protected]
 

int GraphBasics2vtk::numPoly [protected]
 

String GraphBasics2vtk::options
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.