Package solvcon :: Module visual_vtk :: Class VtkOperation
[hide private]
[frames] | no frames]

Class VtkOperation

source code

object --+
         |
        VtkOperation

Pre-defined VTK operations.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
vtk.vtkobject
c2p(inp)
VTK operation: cell to point.
source code
vtk.vtkobject
cut(inp, origin, normal)
VTK operation: cut.
source code
vtk.vtkobject
contour_value(inp, num, value)
VTK operation: contour by a single value.
source code
vtk.vtkobject
contour_range(inp, num, begin, end)
VTK operation: contour by a range.
source code
vtk.vtkobject
lump_poly(*args)
Lump all passed-in poly together.
source code
 
write_poly(inp, outfn)
Write VTK polydata to a file.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

c2p(inp)
Static Method

source code 

VTK operation: cell to point.

Parameters:
  • inp (vtk.vtkobject) - input VTK object.
Returns: vtk.vtkobject
output VTK object.

cut(inp, origin, normal)
Static Method

source code 

VTK operation: cut.

Parameters:
  • inp (vtk.vtkobject) - input VTK object.
  • origin (tuple) - a 3-tuple for cut origin.
  • normal (tuple) - a 3-tuple for cut normal.
Returns: vtk.vtkobject
output VTK object.

contour_value(inp, num, value)
Static Method

source code 

VTK operation: contour by a single value.

Parameters:
  • inp (vtk.vtkobject) - input VTK object.
  • num (int) - the index of the contour line.
  • value (float) - the value of the contour line.
Returns: vtk.vtkobject
output VTK object.

contour_range(inp, num, begin, end)
Static Method

source code 

VTK operation: contour by a range.

Parameters:
  • inp (vtk.vtkobject) - input VTK object.
  • num (int) - the number of the contour lines.
  • begin (float) - the start of the range.
  • end (float) - the end of the range.
Returns: vtk.vtkobject
output VTK object.

lump_poly(*args)
Static Method

source code 

Lump all passed-in poly together. FIXME: when lumped together, vectors are messed up.

Returns: vtk.vtkobject
output VTK object.

write_poly(inp, outfn)
Static Method

source code 

Write VTK polydata to a file.

Parameters:
  • inp (vtk.vtkobject) - input VTK object.
  • outfn (str) - output file name.
Returns:
nothing