30 #ifndef __vtkCenterOfMass_h
31 #define __vtkCenterOfMass_h
33 #include "vtkFiltersCoreModule.h"
34 #include "vtkPointSetAlgorithm.h"
44 void PrintSelf(ostream& os, vtkIndent indent);
48 vtkSetVector3Macro(Center,
double);
49 vtkGetVector3Macro(Center,
double);
54 vtkSetMacro(UseScalarsAsWeights,
bool);
55 vtkGetMacro(UseScalarsAsWeights,
bool);
66 static void ComputeCenterOfMass(
67 vtkPoints* input, vtkDataArray *scalars,
double center[3]);
73 int RequestData(vtkInformation* request,
74 vtkInformationVector** inputVector,
75 vtkInformationVector* outputVector );
82 bool UseScalarsAsWeights;
Find the center of mass of a set of points.