Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 
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 =========================================================================*/
00045 #ifndef __vtkPointLoad_h
00046 #define __vtkPointLoad_h
00047 
00048 #include "vtkImageSource.h"
00049 
00050 class VTK_IMAGING_EXPORT vtkPointLoad :  public vtkImageSource
00051 {
00052 public:
00053   vtkTypeRevisionMacro(vtkPointLoad,vtkImageSource);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00058   static vtkPointLoad *New();
00059 
00061 
00062   vtkSetMacro(LoadValue,double);
00063   vtkGetMacro(LoadValue,double);
00065 
00068   void SetSampleDimensions(int i, int j, int k);
00069 
00071 
00073   void SetSampleDimensions(int dim[3]);
00074   vtkGetVectorMacro(SampleDimensions,int,3);
00076 
00078 
00080   vtkSetVector6Macro(ModelBounds,double);
00081   vtkGetVectorMacro(ModelBounds,double,6);
00083 
00085 
00086   vtkSetMacro(PoissonsRatio,double);
00087   vtkGetMacro(PoissonsRatio,double);
00089 
00091 
00093   void SetComputeEffectiveStress(int) {};
00094   int GetComputeEffectiveStress() {return 1;};
00095   void ComputeEffectiveStressOn() {};
00096   void ComputeEffectiveStressOff() {};
00098 
00099 protected:
00100   vtkPointLoad();
00101   ~vtkPointLoad() {};
00102 
00103   virtual void ExecuteInformation();
00104   virtual void ExecuteData(vtkDataObject *);
00105 
00106   double LoadValue;
00107   double PoissonsRatio;
00108   int SampleDimensions[3];
00109   double ModelBounds[6];
00110 
00111 private:
00112   vtkPointLoad(const vtkPointLoad&);  // Not implemented.
00113   void operator=(const vtkPointLoad&);  // Not implemented.
00114 };
00115 
00116 #endif
00117 
00118