Go to the documentation of this file.
31 #ifndef vtkCenterOfMass_h
32 #define vtkCenterOfMass_h
34 #include "vtkFiltersCoreModule.h"
51 vtkSetVector3Macro(Center,
double);
52 vtkGetVector3Macro(Center,
double);
59 vtkSetMacro(UseScalarsAsWeights,
bool);
60 vtkGetMacro(UseScalarsAsWeights,
bool);
87 bool UseScalarsAsWeights;
represent and manipulate 3D points
Superclass for algorithms that produce output of the same type as input.
Find the center of mass of a set of points.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
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.
a simple class to control print indentation
static vtkCenterOfMass * New()