Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkMassProperties.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMassProperties.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef __vtkMassProperties_h
00039 #define __vtkMassProperties_h
00040 
00041 #include "vtkPolyDataAlgorithm.h"
00042 
00043 class VTK_GRAPHICS_EXPORT vtkMassProperties : public vtkPolyDataAlgorithm
00044 {
00045 public:
00047   static vtkMassProperties *New();
00048 
00049   vtkTypeRevisionMacro(vtkMassProperties,vtkPolyDataAlgorithm);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053   double GetVolume() {this->Update(); return this->Volume;}
00054 
00056 
00058   double GetVolumeX() {this->Update(); return this->VolumeX;}
00059   double GetVolumeY() {this->Update(); return this->VolumeY;}
00060   double GetVolumeZ() {this->Update(); return this->VolumeZ;}
00062 
00064 
00066   double GetKx() {this->Update(); return this->Kx;}
00067   double GetKy() {this->Update(); return this->Ky;}
00068   double GetKz() {this->Update(); return this->Kz;}
00070 
00072   double GetSurfaceArea() {this->Update(); return this->SurfaceArea;}
00073 
00075 
00078   double GetNormalizedShapeIndex() 
00079     {this->Update(); return this->NormalizedShapeIndex;}
00081 
00082 protected:
00083   vtkMassProperties();
00084   ~vtkMassProperties();
00085 
00086   virtual int RequestData(vtkInformation* request,
00087                           vtkInformationVector** inputVector,
00088                           vtkInformationVector* outputVector);
00089 
00090   double  SurfaceArea;
00091   double  Volume;
00092   double  VolumeX;
00093   double  VolumeY;
00094   double  VolumeZ;
00095   double  Kx;
00096   double  Ky;
00097   double  Kz;
00098   double  NormalizedShapeIndex;
00099   vtkTimeStamp ExecuteTime;
00100 
00101 private:
00102   vtkMassProperties(const vtkMassProperties&);  // Not implemented.
00103   void operator=(const vtkMassProperties&);  // Not implemented.
00104 };
00105 
00106 #endif
00107 
00108 

Generated on Mon Jan 21 23:07:25 2008 for VTK by  doxygen 1.4.3-20050530