VTK  9.1.0
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 "vtkImageAlgorithm.h"
34 #include "vtkImagingHybridModule.h" // For export macro
35 
36 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
37 {
38 public:
40 
44  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51  static vtkPointLoad* New();
52 
54 
57  vtkSetMacro(LoadValue, double);
58  vtkGetMacro(LoadValue, double);
60 
62 
66  void SetSampleDimensions(int dim[3]);
67  void SetSampleDimensions(int i, int j, int k);
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 
89 
94  int GetComputeEffectiveStress() { return 1; }
98 
99 protected:
101  ~vtkPointLoad() override = default;
102 
105 
106  double LoadValue;
108  int SampleDimensions[3];
109  double ModelBounds[6];
110 
111 private:
112  vtkPointLoad(const vtkPointLoad&) = delete;
113  void operator=(const vtkPointLoad&) = delete;
114 };
115 
116 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:37
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:107
~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:93
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:96
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:95
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:94
double LoadValue
Definition: vtkPointLoad.h:106