28#ifndef vtkCenterOfMass_h
29#define vtkCenterOfMass_h
31#include "vtkFiltersCoreModule.h"
48 vtkSetVector3Macro(Center,
double);
49 vtkGetVector3Macro(Center,
double);
56 vtkSetMacro(UseScalarsAsWeights,
bool);
57 vtkGetMacro(UseScalarsAsWeights,
bool);
81 bool UseScalarsAsWeights;
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
static void ComputeCenterOfMass(vtkPoints *input, vtkDataArray *scalars, double center[3])
This function is called by RequestData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCenterOfMass * New()
a simple class to control print indentation
represent and manipulate 3D points