72#ifndef vtkCellCenters_h
73#define vtkCellCenters_h
75#include "vtkFiltersCoreModule.h"
78VTK_ABI_NAMESPACE_BEGIN
97 vtkSetMacro(VertexCells,
bool);
98 vtkGetMacro(VertexCells,
bool);
99 vtkBooleanMacro(VertexCells,
bool);
108 vtkSetMacro(CopyArrays,
bool);
109 vtkGetMacro(CopyArrays,
bool);
110 vtkBooleanMacro(CopyArrays,
bool);
123 vtkSetMacro(ConvertGhostCellsToGhostPoints,
bool);
124 vtkGetMacro(ConvertGhostCellsToGhostPoints,
bool);
125 vtkBooleanMacro(ConvertGhostCellsToGhostPoints,
bool);
140 bool VertexCells =
false;
141 bool CopyArrays =
true;
142 bool ConvertGhostCellsToGhostPoints =
true;
generate points at center of cells
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static void ComputeCellCenters(vtkDataSet *dataset, vtkDoubleArray *centers)
Compute centers of cells from a dataset, storing them in the centers array.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkCellCenters() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCellCenters * New()
Construct object with vertex cell generation turned off.
abstract class to specify dataset behavior
dynamic, self-adjusting array of double
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.