raypier.vtk_algorithms

class raypier.vtk_algorithms.EmptyGridSource(*args, **kwds)

Bases: raypier.vtk_algorithms.PythonAlgorithmBase

RequestData(request, inInfo, outInfo)

Overwritten by subclass to execute the algorithm.

RequestInformation(request, inInfo, outInfo)

Overwritten by subclass to provide meta-data to downstream pipeline.

class raypier.vtk_algorithms.NumpyImageSource(*args, **kwds)

Bases: raypier.vtk_algorithms.EmptyGridSource

RequestData(request, inInfo, outInfo)

Overwritten by subclass to execute the algorithm.

class raypier.vtk_algorithms.PythonAlgorithmBase(*args, **kwds)

Bases: tvtk.tvtk_classes.python_algorithm.PythonAlgorithm

FillInputPortInformation(port, info)

Sets the required input type to InputType.

FillOutputPortInformation(port, info)

Sets the default output type to OutputType.

class InternalAlgorithm

Bases: object

Internal class. Do not use.

FillInputPortInformation(vtkself, port, info)
FillOutputPortInformation(vtkself, port, info)
Initialize(vtkself)
ProcessRequest(vtkself, request, inInfo, outInfo)
ProcessRequest(request, inInfo, outInfo)

Splits a request to RequestXXX() methods.

RequestData(request, inInfo, outInfo)

Overwritten by subclass to execute the algorithm.

RequestDataObject(request, inInfo, outInfo)

Overwritten by subclass to manage data object creation. There is not need to overwrite this class if the output can be created based on the OutputType data member.

RequestInformation(request, inInfo, outInfo)

Overwritten by subclass to provide meta-data to downstream pipeline.

RequestUpdateExtent(request, inInfo, outInfo)

Overwritten by subclass to modify data request going to upstream pipeline.

get_input_data(inInfo, i, j)

Convenience method that returns an input data object given a vector of information objects and two indices.

get_output_data(outInfo, i)

Convenience method that returns an output data object given an information object and an index.

class raypier.vtk_algorithms.VTKAlgorithm

Bases: traits.has_traits.HasTraits

This is a superclass which can be derived to implement Python classes that work with vtkPythonAlgorithm. It implements Initialize(), ProcessRequest(), FillInputPortInformation() and FillOutputPortInformation().

Initialize() sets the input and output ports based on data members.

ProcessRequest() calls RequestXXX() methods to implement various pipeline passes.

FillInputPortInformation() and FillOutputPortInformation() set the input and output types based on data members.

FillInputPortInformation(vtkself, port, info)

Sets the required input type to InputType.

FillOutputPortInformation(vtkself, port, info)

Sets the default output type to OutputType.

GetInputData(inInfo, i, j)

Convenience method that returns an input data object given a vector of information objects and two indices.

GetOutputData(outInfo, i)

Convenience method that returns an output data object given an information object and an index.

Initialize(vtkself)

Sets up number of input and output ports based on NumberOfInputPorts and NumberOfOutputPorts.

ProcessRequest(vtkself, request, inInfo, outInfo)

Splits a request to RequestXXX() methods.

RequestData(vtkself, request, inInfo, outInfo)

Overwritten by subclass to execute the algorithm.

RequestDataObject(vtkself, request, inInfo, outInfo)

Overwritten by subclass to manage data object creation. There is not need to overwrite this class if the output can be created based on the OutputType data member.

RequestInformation(vtkself, request, inInfo, outInfo)

Overwritten by subclass to provide meta-data to downstream pipeline.

RequestUpdateExtent(vtkself, request, inInfo, outInfo)

Overwritten by subclass to modify data request going to upstream pipeline.