VTK  9.2.5
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 =========================================================================*/
72 #ifndef vtkPointLoad_h
73 #define vtkPointLoad_h
74 
75 #include "vtkImageAlgorithm.h"
76 #include "vtkImagingHybridModule.h" // For export macro
77 
78 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
79 {
80 public:
82 
86  void PrintSelf(ostream& os, vtkIndent indent) override;
88 
93  static vtkPointLoad* New();
94 
96 
99  vtkSetMacro(LoadValue, double);
100  vtkGetMacro(LoadValue, double);
102 
104 
108  void SetSampleDimensions(int dim[3]);
109  void SetSampleDimensions(int i, int j, int k);
110  vtkGetVectorMacro(SampleDimensions, int, 3);
112 
114 
118  vtkSetVector6Macro(ModelBounds, double);
119  vtkGetVectorMacro(ModelBounds, double, 6);
121 
123 
126  vtkSetMacro(PoissonsRatio, double);
127  vtkGetMacro(PoissonsRatio, double);
129 
131 
136  int GetComputeEffectiveStress() { return 1; }
140 
141 protected:
143  ~vtkPointLoad() override = default;
144 
147 
148  double LoadValue;
150  int SampleDimensions[3];
151  double ModelBounds[6];
152 
153 private:
154  vtkPointLoad(const vtkPointLoad&) = delete;
155  void operator=(const vtkPointLoad&) = delete;
156 };
157 
158 #endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:79
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:149
~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:135
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:138
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:137
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:136
double LoadValue
Definition: vtkPointLoad.h:148