vtkGraphToPolyData Class Reference

#include <vtkGraphToPolyData.h>

Inheritance diagram for vtkGraphToPolyData:

Inheritance graph
[legend]
Collaboration diagram for vtkGraphToPolyData:

Collaboration graph
[legend]

List of all members.


Detailed Description

convert a vtkGraph to vtkPolyData

Converts a vtkGraph to a vtkPolyData. This assumes that the points of the graph have already been filled (perhaps by vtkGraphLayout), and coverts all the edge of the graph into lines in the polydata. The vertex data is passed along to the point data, and the edge data is passed along to the cell data.

Only the owned graph edges (i.e. edges with ghost level 0) are copied into the vtkPolyData.

Examples:
vtkGraphToPolyData (Examples)
Tests:
vtkGraphToPolyData (Tests)

Definition at line 45 of file vtkGraphToPolyData.h.


Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetEdgeGlyphOutput (bool)
virtual bool GetEdgeGlyphOutput ()
virtual void EdgeGlyphOutputOn ()
virtual void EdgeGlyphOutputOff ()
virtual void SetEdgeGlyphPosition (double)
virtual double GetEdgeGlyphPosition ()

Static Public Member Functions

static vtkGraphToPolyDataNew ()
static int IsTypeOf (const char *type)
static vtkGraphToPolyDataSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkGraphToPolyData ()
 ~vtkGraphToPolyData ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int FillInputPortInformation (int port, vtkInformation *info)

Protected Attributes

bool EdgeGlyphOutput
double EdgeGlyphPosition

Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 49 of file vtkGraphToPolyData.h.


Constructor & Destructor Documentation

vtkGraphToPolyData::vtkGraphToPolyData (  )  [protected]

vtkGraphToPolyData::~vtkGraphToPolyData (  )  [inline, protected]

Definition at line 74 of file vtkGraphToPolyData.h.


Member Function Documentation

static vtkGraphToPolyData* vtkGraphToPolyData::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

virtual const char* vtkGraphToPolyData::GetClassName (  )  [virtual]

Reimplemented from vtkPolyDataAlgorithm.

static int vtkGraphToPolyData::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkGraphToPolyData::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

static vtkGraphToPolyData* vtkGraphToPolyData::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkPolyDataAlgorithm.

void vtkGraphToPolyData::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkGraphToPolyData::SetEdgeGlyphOutput ( bool   )  [virtual]

Create a second output containing points and orientation vectors for drawing arrows or other glyphs on edges. This output should be set as the first input to vtkGlyph3D to place glyphs on the edges. vtkGlyphSource2D's VTK_EDGEARROW_GLYPH provides a good glyph for drawing arrows. Default value is off.

virtual bool vtkGraphToPolyData::GetEdgeGlyphOutput (  )  [virtual]

Create a second output containing points and orientation vectors for drawing arrows or other glyphs on edges. This output should be set as the first input to vtkGlyph3D to place glyphs on the edges. vtkGlyphSource2D's VTK_EDGEARROW_GLYPH provides a good glyph for drawing arrows. Default value is off.

virtual void vtkGraphToPolyData::EdgeGlyphOutputOn (  )  [virtual]

Create a second output containing points and orientation vectors for drawing arrows or other glyphs on edges. This output should be set as the first input to vtkGlyph3D to place glyphs on the edges. vtkGlyphSource2D's VTK_EDGEARROW_GLYPH provides a good glyph for drawing arrows. Default value is off.

virtual void vtkGraphToPolyData::EdgeGlyphOutputOff (  )  [virtual]

Create a second output containing points and orientation vectors for drawing arrows or other glyphs on edges. This output should be set as the first input to vtkGlyph3D to place glyphs on the edges. vtkGlyphSource2D's VTK_EDGEARROW_GLYPH provides a good glyph for drawing arrows. Default value is off.

virtual void vtkGraphToPolyData::SetEdgeGlyphPosition ( double   )  [virtual]

The position of the glyph point along the edge. 0 puts a glyph point at the source of each edge. 1 puts a glyph point at the target of each edge. An intermediate value will place the glyph point between the source and target. The default value is 1.

virtual double vtkGraphToPolyData::GetEdgeGlyphPosition (  )  [virtual]

The position of the glyph point along the edge. 0 puts a glyph point at the source of each edge. 1 puts a glyph point at the target of each edge. An intermediate value will place the glyph point between the source and target. The default value is 1.

int vtkGraphToPolyData::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Convert the vtkGraph into vtkPolyData.

Reimplemented from vtkPolyDataAlgorithm.

int vtkGraphToPolyData::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Set the input type of the algorithm to vtkGraph.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

Definition at line 76 of file vtkGraphToPolyData.h.

Definition at line 77 of file vtkGraphToPolyData.h.


The documentation for this class was generated from the following file:

Generated on Sat Dec 27 13:27:24 2008 for VTK by  doxygen 1.5.6