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 =========================================================================*/
30 #ifndef vtkPointLoad_h
31 #define vtkPointLoad_h
32 
33 #include "vtkImagingHybridModule.h" // For export macro
34 #include "vtkImageAlgorithm.h"
35 
36 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 
46  static vtkPointLoad *New();
47 
49 
52  vtkSetMacro(LoadValue,double);
53  vtkGetMacro(LoadValue,double);
55 
60  void SetSampleDimensions(int i, int j, int k);
61 
63 
67  void SetSampleDimensions(int dim[3]);
68  vtkGetVectorMacro(SampleDimensions,int,3);
70 
72 
76  vtkSetVector6Macro(ModelBounds,double);
77  vtkGetVectorMacro(ModelBounds,double,6);
79 
81 
84  vtkSetMacro(PoissonsRatio,double);
85  vtkGetMacro(PoissonsRatio,double);
87 
93  int GetComputeEffectiveStress() {return 1;};
96 
97 protected:
98  vtkPointLoad();
99  ~vtkPointLoad() VTK_OVERRIDE {}
100 
103  vtkInformationVector *) VTK_OVERRIDE;
105 
106  double LoadValue;
108  int SampleDimensions[3];
109  double ModelBounds[6];
110 
111 private:
112  vtkPointLoad(const vtkPointLoad&) VTK_DELETE_FUNCTION;
113  void operator=(const vtkPointLoad&) VTK_DELETE_FUNCTION;
114 };
115 
116 #endif
117 
118 
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:92
~vtkPointLoad() override
Definition: vtkPointLoad.h:99
Store vtkAlgorithm input/output information.
void ComputeEffectiveStressOff()
Definition: vtkPointLoad.h:95
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:36
double LoadValue
Definition: vtkPointLoad.h:106
void ComputeEffectiveStressOn()
Definition: vtkPointLoad.h:94
a simple class to control print indentation
Definition: vtkIndent.h:33
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:93
double PoissonsRatio
Definition: vtkPointLoad.h:107
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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:58