![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Filter to generate an end cap for a polydata cut with the specified function. More...
#include <Libs/MRML/Core/vtkCapPolyData.h>
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual vtkSmartPointer< vtkImplicitFunction > | GetClipFunction () |
virtual bool | GetGenerateCellTypeScalars () |
virtual bool | GetGenerateOutline () |
vtkMTimeType | GetMTime () override |
Return the mtime also considering the locator and clip function. | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetClipFunction (vtkSmartPointer< vtkImplicitFunction >) |
virtual void | SetGenerateCellTypeScalars (bool) |
virtual void | SetGenerateOutline (bool) |
Static Public Member Functions | |
static void | GetPlanes (vtkImplicitFunction *function, vtkPlaneCollection *planes, vtkAbstractTransform *parentTransform=nullptr) |
Get the list of planes from the implicit function. | |
static int | IsTypeOf (const char *type) |
static vtkCapPolyData * | New () |
static vtkCapPolyData * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | CreateEndCap (vtkPlaneCollection *planes, vtkPolyData *originalPolyData, vtkImplicitFunction *cutFunction, vtkPolyData *outputEndCap) |
Generate the end cap for the input polydata cut using planes in the cutFunction. | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
void | UpdateCellTypeArray (vtkPolyData *polyData) |
Updates the polydata cell scalar array to reflect the cell type. | |
vtkCapPolyData () | |
~vtkCapPolyData () override | |
Protected Attributes | |
vtkSmartPointer< vtkImplicitFunction > | ClipFunction |
bool | GenerateCellTypeScalars { true } |
bool | GenerateOutline { true } |
Filter to generate an end cap for a polydata cut with the specified function.
This class is a subclass of vtkPolyDataAlgorithm that will generate an end cap for a polydata cut with the specified function. The end cap is generated only for vtkPlane defined in the vtkImplicitFunction. The planes can be stored in vtkPlanes or nested vtkImplicitBoolean functions, however it cannot extract planes in vtkImplicitSum.
The end cap is generated by generating cross sections of the input polydata with the planes defined in the vtkImplicitFunction, which are then triangulated. The triangulated contours are appended together and clipped with the implicit function to generate the end caps.
Definition at line 44 of file vtkCapPolyData.h.
typedef vtkPolyDataAlgorithm vtkCapPolyData::Superclass |
Definition at line 47 of file vtkCapPolyData.h.
|
protected |
|
overrideprotected |
|
protected |
Generate the end cap for the input polydata cut using planes in the cutFunction.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
override |
Return the mtime also considering the locator and clip function.
|
static |
Get the list of planes from the implicit function.
|
virtual |
|
static |
|
static |
|
override |
|
overrideprotected |
|
static |
|
virtual |
Specify the implicit function with which to perform the clipping. If you do not define an implicit function, then the input scalar data will be used for clipping.
|
virtual |
Set/Get whether to generate cell type scalars. The cell type scalars can be used to color the mesh by cell type. Ex. Different colors for polygons and lines. Default is on.
|
virtual |
Set/Get whether to generate an outline of the cap. Default is on.
|
protected |
Updates the polydata cell scalar array to reflect the cell type.
|
protected |
Definition at line 102 of file vtkCapPolyData.h.
|
protected |
Definition at line 105 of file vtkCapPolyData.h.
|
protected |
Definition at line 104 of file vtkCapPolyData.h.