VTK  9.0.2
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  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
46  static vtkPointLoad* New();
47 
49 
52  vtkSetMacro(LoadValue, double);
53  vtkGetMacro(LoadValue, double);
55 
60  void SetSampleDimensions(int i, int j, int k);
61 
63 
67  void SetSampleDimensions(int dim[3]);
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 
93  int GetComputeEffectiveStress() { return 1; }
96 
97 protected:
99  ~vtkPointLoad() override {}
100 
103 
104  double LoadValue;
106  int SampleDimensions[3];
107  double ModelBounds[6];
108 
109 private:
110  vtkPointLoad(const vtkPointLoad&) = delete;
111  void operator=(const vtkPointLoad&) = delete;
112 };
113 
114 #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:105
~vtkPointLoad() override
Definition: vtkPointLoad.h:99
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
Methods invoked by print to print information about the object including superclasses.
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:92
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the volume.
void ComputeEffectiveStressOff()
Definition: vtkPointLoad.h:95
void ComputeEffectiveStressOn()
Definition: vtkPointLoad.h:94
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Definition: vtkPointLoad.h:93
double LoadValue
Definition: vtkPointLoad.h:104