VTK  9.3.0
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:
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
general representation of visualization data
Definition: vtkDataObject.h:55
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:29
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
double PoissonsRatio
Definition: vtkPointLoad.h:99
~vtkPointLoad() override=default
static vtkPointLoad * New()
Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), and LoadValue = 1.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for obtaining type information and printing.
void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:85
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the volume.
void ComputeEffectiveStressOff()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:88
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:87
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:86
double LoadValue
Definition: vtkPointLoad.h:98