VTK
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 =========================================================================*/
30 #ifndef vtkPointLoad_h
31 #define vtkPointLoad_h
32 
33 #include "vtkImagingHybridModule.h" // For export macro
34 #include "vtkImageAlgorithm.h"
35 
36 class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
46  static vtkPointLoad *New();
47 
49 
52  vtkSetMacro(LoadValue,double);
53  vtkGetMacro(LoadValue,double);
55 
60  void SetSampleDimensions(int i, int j, int k);
61 
63 
67  void SetSampleDimensions(int dim[3]);
68  vtkGetVectorMacro(SampleDimensions,int,3);
70 
72 
76  vtkSetVector6Macro(ModelBounds,double);
77  vtkGetVectorMacro(ModelBounds,double,6);
79 
81 
84  vtkSetMacro(PoissonsRatio,double);
85  vtkGetMacro(PoissonsRatio,double);
87 
93  int GetComputeEffectiveStress() {return 1;};
96 
97 protected:
98  vtkPointLoad();
99  ~vtkPointLoad() override {}
100 
103  vtkInformationVector *) override;
105 
106  double LoadValue;
108  int SampleDimensions[3];
109  double ModelBounds[6];
110 
111 private:
112  vtkPointLoad(const vtkPointLoad&) = delete;
113  void operator=(const vtkPointLoad&) = delete;
114 };
115 
116 #endif
117 
118 
vtkPointLoad::ComputeEffectiveStressOn
void ComputeEffectiveStressOn()
Definition: vtkPointLoad.h:94
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkPointLoad
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:36
vtkImageAlgorithm.h
vtkPointLoad::PoissonsRatio
double PoissonsRatio
Definition: vtkPointLoad.h:107
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkPointLoad::SetComputeEffectiveStress
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:92
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPointLoad::ComputeEffectiveStressOff
void ComputeEffectiveStressOff()
Definition: vtkPointLoad.h:95
vtkPointLoad::GetComputeEffectiveStress
int GetComputeEffectiveStress()
Definition: vtkPointLoad.h:93
vtkPointLoad::LoadValue
double LoadValue
Definition: vtkPointLoad.h:106
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkPointLoad::~vtkPointLoad
~vtkPointLoad() override
Definition: vtkPointLoad.h:99