VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkGraphToPolyData Class Reference

convert a vtkGraph to vtkPolyData More...

#include <vtkGraphToPolyData.h>

Inherits vtkPolyDataAlgorithm.

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 vtkObjectBase * NewInstanceInternal () 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

typedef vtkPolyDataAlgorithm vtkGraphToPolyData::Superclass

Definition at line 50 of file vtkGraphToPolyData.h.

Constructor & Destructor Documentation

vtkGraphToPolyData::vtkGraphToPolyData ( )
protected
vtkGraphToPolyData::~vtkGraphToPolyData ( )
inlineprotected

Definition at line 75 of file vtkGraphToPolyData.h.

Member Function Documentation

static vtkGraphToPolyData* vtkGraphToPolyData::New ( )
static
static int vtkGraphToPolyData::IsTypeOf ( const char *  type)
static
virtual int vtkGraphToPolyData::IsA ( const char *  type)
virtual
static vtkGraphToPolyData* vtkGraphToPolyData::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkGraphToPolyData::NewInstanceInternal ( ) const
protectedvirtual
vtkGraphToPolyData* vtkGraphToPolyData::NewInstance ( ) const
void vtkGraphToPolyData::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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

Convert the vtkGraph into vtkPolyData.

int vtkGraphToPolyData::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protected

Set the input type of the algorithm to vtkGraph.

Member Data Documentation

bool vtkGraphToPolyData::EdgeGlyphOutput
protected

Definition at line 77 of file vtkGraphToPolyData.h.

double vtkGraphToPolyData::EdgeGlyphPosition
protected

Definition at line 78 of file vtkGraphToPolyData.h.

bool vtkGraphToPolyData::ArcEdges
protected

Definition at line 79 of file vtkGraphToPolyData.h.

vtkIdType vtkGraphToPolyData::NumberOfArcSubdivisions
protected

Definition at line 80 of file vtkGraphToPolyData.h.


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