Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkMassProperties Class Reference

estimate volume, area, shape index of triangle mesh. More...

#include <vtkMassProperties.h>

Inheritance diagram for vtkMassProperties:

Inheritance graph
[legend]
Collaboration diagram for vtkMassProperties:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
double GetVolume ()
double GetVolumeX ()
double GetVolumeY ()
double GetVolumeZ ()
double GetKx ()
double GetKy ()
double GetKz ()
double GetSurfaceArea ()
double GetNormalizedShapeIndex ()
void Execute ()
void Update ()
void SetInput (vtkPolyData *input)
vtkPolyDataGetInput ()

Static Public Methods

vtkMassProperties * New ()
int IsTypeOf (const char *type)
vtkMassProperties * SafeDownCast (vtkObject *o)

Protected Methods

 vtkMassProperties ()
 ~vtkMassProperties ()
 vtkMassProperties (const vtkMassProperties &)
void operator= (const vtkMassProperties &)

Protected Attributes

double SurfaceArea
double Volume
double VolumeX
double VolumeY
double VolumeZ
double Kx
double Ky
double Kz
double NormalizedShapeIndex
vtkTimeStamp ExecuteTime

Detailed Description

estimate volume, area, shape index of triangle mesh.

Date:
2000/12/10 20:08:25
Revision:
1.15
Thanks:
Thanks to Abdalmajeid M. Alyassin who developed this class.
vtkMassProperties estimates the volume, the surface area, and the normalized shape index of a model. The algorithm implemented here is based on the discrete form of the divergence theorem. The general assumption here is that the model is of closed surface. For more details see the following reference (Alyassin A.M. et al, "Evaluation of new algorithms for the interactive measurement of surface area and volume", Med Phys 21(6) 1994.). NOTE: currently only triangles are processed. Use vtkTriangleFilter to convert any strips or polygons to triangles.
Examples:
vtkMassProperties (examples)

Definition at line 67 of file vtkMassProperties.h.


Constructor & Destructor Documentation

vtkMassProperties::vtkMassProperties   [protected]
 

vtkMassProperties::~vtkMassProperties   [protected]
 

vtkMassProperties::vtkMassProperties const vtkMassProperties &    [inline, protected]
 

Definition at line 108 of file vtkMassProperties.h.


Member Function Documentation

vtkMassProperties* vtkMassProperties::New   [static]
 

Constructs with initial values of zero.

Reimplemented from vtkProcessObject.

virtual const char* vtkMassProperties::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

int vtkMassProperties::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

virtual int vtkMassProperties::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

vtkMassProperties* vtkMassProperties::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProcessObject.

void vtkMassProperties::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkProcessObject.

double vtkMassProperties::GetVolume   [inline]
 

Compute and return the volume.

Definition at line 77 of file vtkMassProperties.h.

double vtkMassProperties::GetVolumeX   [inline]
 

Compute and return the volume projected on to each axis aligned plane.

Definition at line 81 of file vtkMassProperties.h.

double vtkMassProperties::GetVolumeY   [inline]
 

Definition at line 82 of file vtkMassProperties.h.

double vtkMassProperties::GetVolumeZ   [inline]
 

Definition at line 83 of file vtkMassProperties.h.

double vtkMassProperties::GetKx   [inline]
 

Compute and return the weighting factors for the maximum unit normal component (MUNC).

Definition at line 87 of file vtkMassProperties.h.

double vtkMassProperties::GetKy   [inline]
 

Definition at line 88 of file vtkMassProperties.h.

double vtkMassProperties::GetKz   [inline]
 

Definition at line 89 of file vtkMassProperties.h.

double vtkMassProperties::GetSurfaceArea   [inline]
 

Compute and return the area.

Definition at line 92 of file vtkMassProperties.h.

double vtkMassProperties::GetNormalizedShapeIndex   [inline]
 

Compute and return the normalized shape index. This characterizes the deviation of the shape of an object from a sphere. A sphere's NSI is one. This number is always >= 1.0.

Definition at line 97 of file vtkMassProperties.h.

void vtkMassProperties::Execute  
 

void vtkMassProperties::Update  
 

void vtkMassProperties::SetInput vtkPolyData   input
 

vtkPolyData* vtkMassProperties::GetInput  
 

void vtkMassProperties::operator= const vtkMassProperties &    [inline, protected]
 

Definition at line 109 of file vtkMassProperties.h.


Member Data Documentation

double vtkMassProperties::SurfaceArea [protected]
 

Definition at line 111 of file vtkMassProperties.h.

double vtkMassProperties::Volume [protected]
 

Definition at line 112 of file vtkMassProperties.h.

double vtkMassProperties::VolumeX [protected]
 

Definition at line 113 of file vtkMassProperties.h.

double vtkMassProperties::VolumeY [protected]
 

Definition at line 114 of file vtkMassProperties.h.

double vtkMassProperties::VolumeZ [protected]
 

Definition at line 115 of file vtkMassProperties.h.

double vtkMassProperties::Kx [protected]
 

Definition at line 116 of file vtkMassProperties.h.

double vtkMassProperties::Ky [protected]
 

Definition at line 117 of file vtkMassProperties.h.

double vtkMassProperties::Kz [protected]
 

Definition at line 118 of file vtkMassProperties.h.

double vtkMassProperties::NormalizedShapeIndex [protected]
 

Definition at line 119 of file vtkMassProperties.h.

vtkTimeStamp vtkMassProperties::ExecuteTime [protected]
 

Definition at line 120 of file vtkMassProperties.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:52:56 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001