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 =========================================================================*/
33 #ifndef vtkPointLoad_h
34 #define vtkPointLoad_h
35 
36 #include "vtkImageAlgorithm.h"
37 #include "vtkImagingHybridModule.h" // For export macro
38 
39 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
40 {
41 public:
43 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
54  static vtkPointLoad* New();
55 
57 
60  vtkSetMacro(LoadValue, double);
61  vtkGetMacro(LoadValue, double);
63 
65 
69  void SetSampleDimensions(int dim[3]);
70  void SetSampleDimensions(int i, int j, int k);
71  vtkGetVectorMacro(SampleDimensions, int, 3);
73 
75 
79  vtkSetVector6Macro(ModelBounds, double);
80  vtkGetVectorMacro(ModelBounds, double, 6);
82 
84 
87  vtkSetMacro(PoissonsRatio, double);
88  vtkGetMacro(PoissonsRatio, double);
90 
92 
97  int GetComputeEffectiveStress() { return 1; }
101 
102 protected:
103  vtkPointLoad();
104  ~vtkPointLoad() override = default;
105 
108 
109  double LoadValue;
111  int SampleDimensions[3];
112  double ModelBounds[6];
113 
114 private:
115  vtkPointLoad(const vtkPointLoad&) = delete;
116  void operator=(const vtkPointLoad&) = delete;
117 };
118 
119 #endif
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:96
Store vtkAlgorithm input/output information.
void ComputeEffectiveStressOff()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:99
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:39
double LoadValue
Definition: vtkPointLoad.h:109
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:98
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:97
double PoissonsRatio
Definition: vtkPointLoad.h:110
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:65