26 #ifndef __vtkboneTensorOfInertia_h 27 #define __vtkboneTensorOfInertia_h 64 vtkSetMacro(UseSpecificValue,
int);
65 vtkGetMacro(UseSpecificValue,
int);
66 vtkBooleanMacro(UseSpecificValue,
int);
73 vtkGetMacro(SpecificValue,
int);
80 vtkSetMacro(UseThresholds,
int);
81 vtkGetMacro(UseThresholds,
int);
82 vtkBooleanMacro(UseThresholds,
int);
89 vtkGetMacro(LowerThreshold,
double);
96 vtkGetMacro(UpperThreshold,
double);
106 vtkGetMacro(Volume,
double);
111 vtkGetMacro(Mass,
double);
116 vtkGetVector3Macro(CenterOfMass,
double);
123 void GetTensorOfInertia(vtkTensor* MOI);
126 void GetTensorOfInertiaAboutOrigin(vtkTensor* MOI);
135 vtkGetVector3Macro(PrincipalAxisClosestToX,
double);
136 vtkGetVector3Macro(PrincipalAxisClosestToY,
double);
137 vtkGetVector3Macro(PrincipalAxisClosestToZ,
double);
143 vtkGetVector3Macro(PrincipalMoments,
double);
145 {
return this->PrincipalMoments[0];}
147 {
return this->PrincipalMoments[1];}
149 {
return this->PrincipalMoments[2];}
156 static void TranslateTensorOfInertiaFromCOM(
167 static void TranslateTensorOfInertiaToCOM(
177 static void TranslateTensorOfInertia(
210 double CenterOfMass[3];
214 double PrincipalMoments[3];
215 double PrincipalAxisClosestToX[3];
216 double PrincipalAxisClosestToY[3];
217 double PrincipalAxisClosestToZ[3];
double GetPrincipalMoment2()
double GetPrincipalMoment0()
void SetLowerThreshold(double v)
vtkTensor * TensorOfInertia
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
vtkMatrix3x3 * Eigenvectors
double GetPrincipalMoment1()
void SetUpperThreshold(double v)
void SetSpecificValue(int v)
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkTensor * TensorOfInertiaAboutOrigin
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
double GetCenterOfMassZ()
static vtkAlgorithm * New()
double GetCenterOfMassY()
void operator=(const vtkObjectBase &)
double GetCenterOfMassX()
calculates the tensor of inertia.