VTK  9.2.6
vtkAnimateModes.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAnimateModes.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=========================================================================*/
38#ifndef vtkAnimateModes_h
39#define vtkAnimateModes_h
40
41#include "vtkFiltersGeneralModule.h" // For export macro
43
44#include <vector> // for std::vector
45
46class VTKFILTERSGENERAL_EXPORT vtkAnimateModes : public vtkPassInputTypeAlgorithm
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
60 vtkSetMacro(AnimateVibrations, bool);
61 vtkGetMacro(AnimateVibrations, bool);
62 vtkBooleanMacro(AnimateVibrations, bool);
64
66
72 vtkGetVector2Macro(ModeShapesRange, int);
74
76
79 vtkSetClampMacro(ModeShape, int, 1, VTK_INT_MAX);
80 vtkGetMacro(ModeShape, int);
82
84
88 vtkSetMacro(DisplacementPreapplied, bool);
89 vtkGetMacro(DisplacementPreapplied, bool);
90 vtkBooleanMacro(DisplacementPreapplied, bool);
92
94
98 vtkSetMacro(DisplacementMagnitude, double);
99 vtkGetMacro(DisplacementMagnitude, double);
101
103
107 vtkGetVector2Macro(TimeRange, double);
109
110protected:
113
114 int FillInputPortInformation(int port, vtkInformation* info) override;
118
119private:
120 vtkAnimateModes(const vtkAnimateModes&) = delete;
121 void operator=(const vtkAnimateModes&) = delete;
122
123 bool AnimateVibrations;
124 int ModeShapesRange[2];
125 int ModeShape;
126 double DisplacementMagnitude;
127 bool DisplacementPreapplied;
128 std::vector<double> InputTimeSteps;
129 double TimeRange[2];
130};
131
132#endif
animate mode shapes
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkAnimateModes() override
static vtkAnimateModes * New()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
#define VTK_INT_MAX
Definition: vtkType.h:155