VTK
|
convert a vtkGraph to vtkPolyData More...
#include <vtkGraphToPolyData.h>
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGraphToPolyData * | NewInstance () 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 vtkGraphToPolyData * | New () |
static int | IsTypeOf (const char *type) |
static vtkGraphToPolyData * | SafeDownCast (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 |
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.
Definition at line 46 of file vtkGraphToPolyData.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 50 of file vtkGraphToPolyData.h.
vtkGraphToPolyData::vtkGraphToPolyData | ( | ) | [protected] |
vtkGraphToPolyData::~vtkGraphToPolyData | ( | ) | [inline, protected] |
Definition at line 75 of file vtkGraphToPolyData.h.
static vtkGraphToPolyData* vtkGraphToPolyData::New | ( | ) | [static] |
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.
static vtkGraphToPolyData* vtkGraphToPolyData::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
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.
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.