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

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 =========================================================================*/
00036 #ifndef __vtkPointLoad_h
00037 #define __vtkPointLoad_h
00038 
00039 #include "vtkImageSource.h"
00040 
00041 class VTK_IMAGING_EXPORT vtkPointLoad :  public vtkImageSource
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkPointLoad,vtkImageSource);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00049   static vtkPointLoad *New();
00050 
00052 
00053   vtkSetMacro(LoadValue,float);
00054   vtkGetMacro(LoadValue,float);
00056 
00059   void SetSampleDimensions(int i, int j, int k);
00060 
00062 
00064   void SetSampleDimensions(int dim[3]);
00065   vtkGetVectorMacro(SampleDimensions,int,3);
00067 
00069 
00071   vtkSetVector6Macro(ModelBounds,float);
00072   vtkGetVectorMacro(ModelBounds,float,6);
00074 
00076 
00077   vtkSetMacro(PoissonsRatio,float);
00078   vtkGetMacro(PoissonsRatio,float);
00080 
00082 
00084   void SetComputeEffectiveStress(int) {};
00085   int GetComputeEffectiveStress() {return 1;};
00086   void ComputeEffectiveStressOn() {};
00087   void ComputeEffectiveStressOff() {};
00089 
00090 protected:
00091   vtkPointLoad();
00092   ~vtkPointLoad() {};
00093 
00094   virtual void ExecuteInformation();
00095   virtual void ExecuteData(vtkDataObject *);
00096 
00097   float LoadValue;
00098   float PoissonsRatio;
00099   int SampleDimensions[3];
00100   float ModelBounds[6];
00101 
00102 private:
00103   vtkPointLoad(const vtkPointLoad&);  // Not implemented.
00104   void operator=(const vtkPointLoad&);  // Not implemented.
00105 };
00106 
00107 #endif
00108 
00109