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

Imaging/vtkPointLoad.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPointLoad.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00048 #ifndef __vtkPointLoad_h
00049 #define __vtkPointLoad_h
00050 
00051 #include "vtkImageSource.h"
00052 
00053 class VTK_IMAGING_EXPORT vtkPointLoad :  public vtkImageSource
00054 {
00055 public:
00056   vtkTypeRevisionMacro(vtkPointLoad,vtkImageSource);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00061   static vtkPointLoad *New();
00062 
00064 
00065   vtkSetMacro(LoadValue,float);
00066   vtkGetMacro(LoadValue,float);
00068 
00071   void SetSampleDimensions(int i, int j, int k);
00072 
00074 
00076   void SetSampleDimensions(int dim[3]);
00077   vtkGetVectorMacro(SampleDimensions,int,3);
00079 
00081 
00083   vtkSetVector6Macro(ModelBounds,float);
00084   vtkGetVectorMacro(ModelBounds,float,6);
00086 
00088 
00089   vtkSetMacro(PoissonsRatio,float);
00090   vtkGetMacro(PoissonsRatio,float);
00092 
00094 
00096   void SetComputeEffectiveStress(int) {};
00097   int GetComputeEffectiveStress() {return 1;};
00098   void ComputeEffectiveStressOn() {};
00099   void ComputeEffectiveStressOff() {};
00101 
00102 protected:
00103   vtkPointLoad();
00104   ~vtkPointLoad() {};
00105 
00106   virtual void ExecuteInformation();
00107   virtual void ExecuteData(vtkDataObject *);
00108 
00109   float LoadValue;
00110   float PoissonsRatio;
00111   int SampleDimensions[3];
00112   float ModelBounds[6];
00113 
00114 private:
00115   vtkPointLoad(const vtkPointLoad&);  // Not implemented.
00116   void operator=(const vtkPointLoad&);  // Not implemented.
00117 };
00118 
00119 #endif
00120 
00121