VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkGraphToPolyData Class Reference

convert a vtkGraph to vtkPolyData More...

#include <vtkGraphToPolyData.h>

Inheritance diagram for vtkGraphToPolyData:
Inheritance graph
[legend]
Collaboration diagram for vtkGraphToPolyData:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkGraphToPolyDataNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

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

Protected Attributes

bool EdgeGlyphOutput
double EdgeGlyphPosition
bool ArcEdges
vtkIdType NumberOfArcSubdivisions

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 46 of file vtkGraphToPolyData.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 50 of file vtkGraphToPolyData.h.


Constructor & Destructor Documentation

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

Definition at line 75 of file vtkGraphToPolyData.h.


Member Function Documentation

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

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkGraphToPolyData::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

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.

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.

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 77 of file vtkGraphToPolyData.h.

Definition at line 78 of file vtkGraphToPolyData.h.

bool vtkGraphToPolyData::ArcEdges [protected]

Definition at line 79 of file vtkGraphToPolyData.h.

Definition at line 80 of file vtkGraphToPolyData.h.


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