38#ifndef vtkCenterOfMass_h
39#define vtkCenterOfMass_h
41#include "vtkFiltersCoreModule.h"
44VTK_ABI_NAMESPACE_BEGIN
59 vtkSetVector3Macro(Center,
double);
60 vtkGetVector3Macro(Center,
double);
67 vtkSetMacro(UseScalarsAsWeights,
bool);
68 vtkGetMacro(UseScalarsAsWeights,
bool);
92 bool UseScalarsAsWeights;
Find the center of mass of a set of points.
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()
abstract superclass for arrays of numeric data
a simple class to control print indentation
Superclass for algorithms that produce output of the same type as input.
represent and manipulate 3D points