Public Member Functions | Protected Member Functions | List of all members
mirtk::MeshFilter Class Referenceabstract

#include <MeshFilter.h>

Inheritance diagram for mirtk::MeshFilter:
Inheritance graph
Collaboration diagram for mirtk::MeshFilter:
Collaboration graph

Public Member Functions

vtkPolyData * GetOutput ()
 Get output surface mesh.
 
 mirtkOnOffMacro (DoublePrecision)
 Enable/disable double precision output.
 
virtual void Run ()
 Run filter.
 
void SetInput (vtkPolyData *)
 Set input surface mesh.
 
void SetInputData (vtkPolyData *)
 Set input surface mesh.
 
void Update ()
 Run filter.
 
- Public Member Functions inherited from mirtk::Object
virtual const char * NameOfClass () const =0
 Get name of class, which this object is an instance of.
 
virtual ParameterList Parameter () const
 Get parameter name/value pairs.
 
bool Parameter (const ParameterList &)
 Set parameters from name/value pairs.
 
virtual bool Set (const char *name, const char *value)
 
virtual ~Object ()
 Destructor.
 

Protected Member Functions

virtual void Execute ()=0
 Execute filter.
 
virtual void Finalize ()
 Finalize filter execution.
 
virtual void Initialize ()
 Initialize filter after input and parameters are set.
 
virtual void InitializeEdgeTable ()
 To be called by subclass in Initialize when _EdgeTable is needed.
 
 MeshFilter ()
 Default constructor.
 
 MeshFilter (const MeshFilter &)
 Copy constructor.
 
vtkSmartPointer< vtkDataArray > NewArray (const char *name, vtkIdType n, int c, int type=VTK_VOID) const
 
vtkSmartPointer< vtkDataArray > NewArray (const char *name, int c=1, int type=VTK_VOID) const
 
vtkSmartPointer< vtkDataArray > NewCellArray (const char *name, int c=1, int type=VTK_VOID) const
 
vtkSmartPointer< vtkDataArray > NewPointArray (const char *name, int c=1, int type=VTK_VOID) const
 
MeshFilteroperator= (const MeshFilter &)
 Assignment operator.
 
virtual ~MeshFilter ()
 Destructor.
 
- Protected Member Functions inherited from mirtk::Object
template<typename... Args>
void Throw (ErrorType err, const char *func, Args... args) const
 

Additional Inherited Members

- Static Public Member Functions inherited from mirtk::Object
static const char * NameOfType ()
 Get name of this class type.
 
- Static Protected Member Functions inherited from mirtk::Object
template<typename... Args>
static void ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args)
 

Detailed Description

Base class for filters which process discrete surface and/or volumetric meshes

Definition at line 39 of file MeshFilter.h.

Member Function Documentation

§ NewArray() [1/2]

vtkSmartPointer<vtkDataArray> mirtk::MeshFilter::NewArray ( const char *  name,
vtkIdType  n,
int  c,
int  type = VTK_VOID 
) const
protected

Allocate new data set attributes array

Parameters
[in]nameName of data array.
[in]nNumber of tuples.
[in]cNumber of components.
[in]typeType of VTK array. When VTK_VOID, a floating point array is allocated with either single or double precision depending on the DoublePrecision flag of this mesh filter.
Returns
New floating point array

§ NewArray() [2/2]

vtkSmartPointer<vtkDataArray> mirtk::MeshFilter::NewArray ( const char *  name,
int  c = 1,
int  type = VTK_VOID 
) const
protected

Allocate new point data array

Parameters
[in]nameName of data array.
[in]cNumber of components.
[in]typeType of VTK array. When VTK_VOID, a floating point array is allocated with either single or double precision depending on the DoublePrecision flag of this mesh filter.
Returns
New floating point array
Deprecated:
Use NewPointArray instead.

§ NewCellArray()

vtkSmartPointer<vtkDataArray> mirtk::MeshFilter::NewCellArray ( const char *  name,
int  c = 1,
int  type = VTK_VOID 
) const
protected

Allocate new cell data array

Parameters
[in]nameName of data array.
[in]cNumber of components.
[in]typeType of VTK array. When VTK_VOID, a floating point array is allocated with either single or double precision depending on the DoublePrecision flag of this mesh filter.
Returns
New floating point array

§ NewPointArray()

vtkSmartPointer<vtkDataArray> mirtk::MeshFilter::NewPointArray ( const char *  name,
int  c = 1,
int  type = VTK_VOID 
) const
protected

Allocate new point data array

Parameters
[in]nameName of data array.
[in]cNumber of components.
[in]typeType of VTK array. When VTK_VOID, a floating point array is allocated with either single or double precision depending on the DoublePrecision flag of this mesh filter.
Returns
New floating point array

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