VTK  9.2.6
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 =========================================================================*/
42 #ifndef vtkPointLoad_h
43 #define vtkPointLoad_h
44 
45 #include "vtkImageAlgorithm.h"
46 #include "vtkImagingHybridModule.h" // For export macro
47 
48 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
49 {
50 public:
52 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
63  static vtkPointLoad* New();
64 
66 
69  vtkSetMacro(LoadValue, double);
70  vtkGetMacro(LoadValue, double);
72 
74 
78  void SetSampleDimensions(int dim[3]);
79  void SetSampleDimensions(int i, int j, int k);
80  vtkGetVectorMacro(SampleDimensions, int, 3);
82 
84 
88  vtkSetVector6Macro(ModelBounds, double);
89  vtkGetVectorMacro(ModelBounds, double, 6);
91 
93 
96  vtkSetMacro(PoissonsRatio, double);
97  vtkGetMacro(PoissonsRatio, double);
99 
101 
106  int GetComputeEffectiveStress() { return 1; }
110 
111 protected:
113  ~vtkPointLoad() override = default;
114 
117 
118  double LoadValue;
120  int SampleDimensions[3];
121  double ModelBounds[6];
122 
123 private:
124  vtkPointLoad(const vtkPointLoad&) = delete;
125  void operator=(const vtkPointLoad&) = delete;
126 };
127 
128 #endif
general representation of visualization data
Definition: vtkDataObject.h:75
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:49
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:119
~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:105
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:108
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:107
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:106
double LoadValue
Definition: vtkPointLoad.h:118