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
48class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
49{
50public:
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
111protected:
113 ~vtkPointLoad() override = default;
114
117
118 double LoadValue;
120 int SampleDimensions[3];
121 double ModelBounds[6];
122
123private:
124 vtkPointLoad(const vtkPointLoad&) = delete;
125 void operator=(const vtkPointLoad&) = delete;
126};
127
128#endif
general representation of visualization data
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
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
double PoissonsRatio
static vtkPointLoad * New()
Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), and LoadValue = 1.
~vtkPointLoad() override=default
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.
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the volume.
void ComputeEffectiveStressOff()
Turn on/off computation of effective stress scalar.
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.