VTK
vtkPointLoad.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointLoad.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkPointLoad_h
34 #define vtkPointLoad_h
35 
36 #include "vtkImagingHybridModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
39 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49  static vtkPointLoad *New();
50 
52 
55  vtkSetMacro(LoadValue,double);
56  vtkGetMacro(LoadValue,double);
58 
63  void SetSampleDimensions(int i, int j, int k);
64 
66 
70  void SetSampleDimensions(int dim[3]);
71  vtkGetVectorMacro(SampleDimensions,int,3);
73 
75 
79  vtkSetVector6Macro(ModelBounds,double);
80  vtkGetVectorMacro(ModelBounds,double,6);
82 
84 
87  vtkSetMacro(PoissonsRatio,double);
88  vtkGetMacro(PoissonsRatio,double);
90 
96  int GetComputeEffectiveStress() {return 1;};
99 
100 protected:
101  vtkPointLoad();
102  ~vtkPointLoad() override {}
103 
106  vtkInformationVector *) override;
108 
109  double LoadValue;
111  int SampleDimensions[3];
112  double ModelBounds[6];
113 
114 private:
115  vtkPointLoad(const vtkPointLoad&) = delete;
116  void operator=(const vtkPointLoad&) = delete;
117 };
118 
119 #endif
120 
121 
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:95
~vtkPointLoad() override
Definition: vtkPointLoad.h:102
Store vtkAlgorithm input/output information.
void ComputeEffectiveStressOff()
Definition: vtkPointLoad.h:98
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:39
double LoadValue
Definition: vtkPointLoad.h:109
void ComputeEffectiveStressOn()
Definition: vtkPointLoad.h:97
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int GetComputeEffectiveStress()
Definition: vtkPointLoad.h:96
double PoissonsRatio
Definition: vtkPointLoad.h:110
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:64