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=========================================================================*/
33#ifndef vtkPointLoad_h
34#define vtkPointLoad_h
35
36#include "vtkImagingHybridModule.h" // For export macro
37#include "vtkImageAlgorithm.h"
38
39class VTKIMAGINGHYBRID_EXPORT vtkPointLoad : public vtkImageAlgorithm
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent);
44
49 static vtkPointLoad *New();
50
52
55 vtkSetMacro(LoadValue,double);
56 vtkGetMacro(LoadValue,double);
58
63 void SetSampleDimensions(int i, int j, int k);
64
66
70 void SetSampleDimensions(int dim[3]);
71 vtkGetVectorMacro(SampleDimensions,int,3);
73
75
79 vtkSetVector6Macro(ModelBounds,double);
80 vtkGetVectorMacro(ModelBounds,double,6);
82
84
87 vtkSetMacro(PoissonsRatio,double);
88 vtkGetMacro(PoissonsRatio,double);
90
96 int GetComputeEffectiveStress() {return 1;};
99
100protected:
103
108
109 double LoadValue;
111 int SampleDimensions[3];
112 double ModelBounds[6];
113
114private:
115 vtkPointLoad(const vtkPointLoad&) VTK_DELETE_FUNCTION;
116 void operator=(const vtkPointLoad&) VTK_DELETE_FUNCTION;
117};
118
119#endif
120
121
general representation of visualization data
Definition: vtkDataObject.h:65
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
compute stress tensors given point load on semi-infinite domain
Definition: vtkPointLoad.h:40
double PoissonsRatio
Definition: vtkPointLoad.h:110
static vtkPointLoad * New()
Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), and LoadValue = 1.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetComputeEffectiveStress(int)
Turn on/off computation of effective stress scalar.
Definition: vtkPointLoad.h:95
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the volume.
void ComputeEffectiveStressOff()
Definition: vtkPointLoad.h:98
void ComputeEffectiveStressOn()
Definition: vtkPointLoad.h:97
void SetSampleDimensions(int dim[3])
Specify the dimensions of the volume.
virtual void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *)
This is a convenience method that is implemented in many subclasses instead of RequestData.
int GetComputeEffectiveStress()
Definition: vtkPointLoad.h:96
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
double LoadValue
Definition: vtkPointLoad.h:109
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.