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=========================================================================*/
39#ifndef vtkPointLoad_h
40#define vtkPointLoad_h
41
42#include "vtkImageAlgorithm.h"
43#include "vtkImagingHybridModule.h" // For export macro
44
45class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
46{
47public:
49
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
60 static vtkPointLoad* New();
61
63
66 vtkSetMacro(LoadValue, double);
67 vtkGetMacro(LoadValue, double);
69
71
75 void SetSampleDimensions(int dim[3]);
76 void SetSampleDimensions(int i, int j, int k);
77 vtkGetVectorMacro(SampleDimensions, int, 3);
79
81
85 vtkSetVector6Macro(ModelBounds, double);
86 vtkGetVectorMacro(ModelBounds, double, 6);
88
90
93 vtkSetMacro(PoissonsRatio, double);
94 vtkGetMacro(PoissonsRatio, double);
96
98
103 int GetComputeEffectiveStress() { return 1; }
107
108protected:
110 ~vtkPointLoad() override = default;
111
114
115 double LoadValue;
117 int SampleDimensions[3];
118 double ModelBounds[6];
119
120private:
121 vtkPointLoad(const vtkPointLoad&) = delete;
122 void operator=(const vtkPointLoad&) = delete;
123};
124
125#endif
general representation of visualization data
Definition: vtkDataObject.h:69
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:46
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:116
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:102
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:105
void ComputeEffectiveStressOn()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:104
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
int GetComputeEffectiveStress()
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:103
double LoadValue
Definition: vtkPointLoad.h:115