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=========================================================================*/
32
33#ifndef vtkPointLoad_h
34#define vtkPointLoad_h
35
36#include "vtkImageAlgorithm.h"
37#include "vtkImagingHybridModule.h" // For export macro
38
39class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
40{
41public:
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
102protected:
104 ~vtkPointLoad() override = default;
105
108
109 double LoadValue;
112 double ModelBounds[6];
113
114private:
115 vtkPointLoad(const vtkPointLoad&) = delete;
116 void operator=(const vtkPointLoad&) = delete;
117};
118
119#endif
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
int SampleDimensions[3]
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.
double ModelBounds[6]
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.