Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 
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 "vtkImageSource.h"
00036 
00037 class VTK_IMAGING_EXPORT vtkPointLoad :  public vtkImageSource
00038 {
00039 public:
00040   vtkTypeRevisionMacro(vtkPointLoad,vtkImageSource);
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 void ExecuteInformation();
00091   virtual void ExecuteData(vtkDataObject *);
00092 
00093   double LoadValue;
00094   double PoissonsRatio;
00095   int SampleDimensions[3];
00096   double ModelBounds[6];
00097 
00098 private:
00099   vtkPointLoad(const vtkPointLoad&);  // Not implemented.
00100   void operator=(const vtkPointLoad&);  // Not implemented.
00101 };
00102 
00103 #endif
00104 
00105