VTK  9.3.20240424
vtkPointLoad.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
60#ifndef vtkPointLoad_h
61#define vtkPointLoad_h
62
63#include "vtkImageAlgorithm.h"
64#include "vtkImagingHybridModule.h" // For export macro
65
66VTK_ABI_NAMESPACE_BEGIN
67class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
68{
69public:
71
75 void PrintSelf(ostream& os, vtkIndent indent) override;
77
82 static vtkPointLoad* New();
83
85
88 vtkSetMacro(LoadValue, double);
89 vtkGetMacro(LoadValue, double);
91
93
97 void SetSampleDimensions(int dim[3]);
98 void SetSampleDimensions(int i, int j, int k);
99 vtkGetVectorMacro(SampleDimensions, int, 3);
101
103
107 vtkSetVector6Macro(ModelBounds, double);
108 vtkGetVectorMacro(ModelBounds, double, 6);
110
112
115 vtkSetMacro(PoissonsRatio, double);
116 vtkGetMacro(PoissonsRatio, double);
118
120
125 int GetComputeEffectiveStress() { return 1; }
129
130protected:
132 ~vtkPointLoad() override = default;
133
136
137 double LoadValue;
139 int SampleDimensions[3];
140 double ModelBounds[6];
141
142private:
143 vtkPointLoad(const vtkPointLoad&) = delete;
144 void operator=(const vtkPointLoad&) = delete;
145};
146
147VTK_ABI_NAMESPACE_END
148#endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:108
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.