VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPointLoad.h 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 =========================================================================*/ 00032 #ifndef __vtkPointLoad_h 00033 #define __vtkPointLoad_h 00034 00035 #include "vtkImageAlgorithm.h" 00036 00037 class VTK_IMAGING_EXPORT vtkPointLoad : public vtkImageAlgorithm 00038 { 00039 public: 00040 vtkTypeMacro(vtkPointLoad,vtkImageAlgorithm); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00045 static vtkPointLoad *New(); 00046 00048 00049 vtkSetMacro(LoadValue,double); 00050 vtkGetMacro(LoadValue,double); 00052 00055 void SetSampleDimensions(int i, int j, int k); 00056 00058 00060 void SetSampleDimensions(int dim[3]); 00061 vtkGetVectorMacro(SampleDimensions,int,3); 00063 00065 00067 vtkSetVector6Macro(ModelBounds,double); 00068 vtkGetVectorMacro(ModelBounds,double,6); 00070 00072 00073 vtkSetMacro(PoissonsRatio,double); 00074 vtkGetMacro(PoissonsRatio,double); 00076 00078 00080 void SetComputeEffectiveStress(int) {}; 00081 int GetComputeEffectiveStress() {return 1;}; 00082 void ComputeEffectiveStressOn() {}; 00083 void ComputeEffectiveStressOff() {}; 00085 00086 protected: 00087 vtkPointLoad(); 00088 ~vtkPointLoad() {}; 00089 00090 virtual int RequestInformation (vtkInformation *, 00091 vtkInformationVector **, 00092 vtkInformationVector *); 00093 virtual void ExecuteData(vtkDataObject *); 00094 00095 double LoadValue; 00096 double PoissonsRatio; 00097 int SampleDimensions[3]; 00098 double ModelBounds[6]; 00099 00100 private: 00101 vtkPointLoad(const vtkPointLoad&); // Not implemented. 00102 void operator=(const vtkPointLoad&); // Not implemented. 00103 }; 00104 00105 #endif 00106 00107