VTK  9.1.0
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=========================================================================*/
69#ifndef vtkPointLoad_h
70#define vtkPointLoad_h
71
72#include "vtkImageAlgorithm.h"
73#include "vtkImagingHybridModule.h" // For export macro
74
75class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
76{
77public:
79
83 void PrintSelf(ostream& os, vtkIndent indent) override;
85
90 static vtkPointLoad* New();
91
93
96 vtkSetMacro(LoadValue, double);
97 vtkGetMacro(LoadValue, double);
99
101
105 void SetSampleDimensions(int dim[3]);
106 void SetSampleDimensions(int i, int j, int k);
107 vtkGetVectorMacro(SampleDimensions, int, 3);
109
111
115 vtkSetVector6Macro(ModelBounds, double);
116 vtkGetVectorMacro(ModelBounds, double, 6);
118
120
123 vtkSetMacro(PoissonsRatio, double);
124 vtkGetMacro(PoissonsRatio, double);
126
128
133 int GetComputeEffectiveStress() { return 1; }
137
138protected:
140 ~vtkPointLoad() override = default;
141
144
145 double LoadValue;
147 int SampleDimensions[3];
148 double ModelBounds[6];
149
150private:
151 vtkPointLoad(const vtkPointLoad&) = delete;
152 void operator=(const vtkPointLoad&) = delete;
153};
154
155#endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:76
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
double PoissonsRatio
Definition: vtkPointLoad.h:146
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.
Definition: vtkPointLoad.h:132
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the volume.
void ComputeEffectiveStressOff()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:135
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:134
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:133
double LoadValue
Definition: vtkPointLoad.h:145