VTK  9.3.0
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
30#ifndef vtkPointLoad_h
31#define vtkPointLoad_h
32
33#include "vtkImageAlgorithm.h"
34#include "vtkImagingHybridModule.h" // For export macro
35
36VTK_ABI_NAMESPACE_BEGIN
37class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
38{
39public:
41
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
52 static vtkPointLoad* New();
53
55
58 vtkSetMacro(LoadValue, double);
59 vtkGetMacro(LoadValue, double);
61
63
67 void SetSampleDimensions(int dim[3]);
68 void SetSampleDimensions(int i, int j, int k);
69 vtkGetVectorMacro(SampleDimensions, int, 3);
71
73
77 vtkSetVector6Macro(ModelBounds, double);
78 vtkGetVectorMacro(ModelBounds, double, 6);
80
82
85 vtkSetMacro(PoissonsRatio, double);
86 vtkGetMacro(PoissonsRatio, double);
88
90
95 int GetComputeEffectiveStress() { return 1; }
99
100protected:
102 ~vtkPointLoad() override = default;
103
106
107 double LoadValue;
109 int SampleDimensions[3];
110 double ModelBounds[6];
111
112private:
113 vtkPointLoad(const vtkPointLoad&) = delete;
114 void operator=(const vtkPointLoad&) = delete;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:38
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.