VTK  9.3.1
vtkPointLoad.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkPointLoad_h
22 #define vtkPointLoad_h
23 
24 #include "vtkImageAlgorithm.h"
25 #include "vtkImagingHybridModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
29 {
30 public:
32 
36  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
43  static vtkPointLoad* New();
44 
46 
49  vtkSetMacro(LoadValue, double);
50  vtkGetMacro(LoadValue, double);
52 
54 
58  void SetSampleDimensions(int dim[3]);
59  void SetSampleDimensions(int i, int j, int k);
60  vtkGetVectorMacro(SampleDimensions, int, 3);
62 
64 
68  vtkSetVector6Macro(ModelBounds, double);
69  vtkGetVectorMacro(ModelBounds, double, 6);
71 
73 
76  vtkSetMacro(PoissonsRatio, double);
77  vtkGetMacro(PoissonsRatio, double);
79 
81 
86  int GetComputeEffectiveStress() { return 1; }
90 
91 protected:
92  vtkPointLoad();
93  ~vtkPointLoad() override = default;
94 
97 
98  double LoadValue;
99  double PoissonsRatio;
100  int SampleDimensions[3];
101  double ModelBounds[6];
102 
103 private:
104  vtkPointLoad(const vtkPointLoad&) = delete;
105  void operator=(const vtkPointLoad&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:85
Store vtkAlgorithm input/output information.
void ComputeEffectiveStressOff()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:88
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:28
double LoadValue
Definition: vtkPointLoad.h:98
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:87
a simple class to control print indentation
Definition: vtkIndent.h:28
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()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:86
double PoissonsRatio
Definition: vtkPointLoad.h:99
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:54