VTK  9.1.0
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=========================================================================*/
35#ifndef vtkAnimateModes_h
36#define vtkAnimateModes_h
37
38#include "vtkFiltersGeneralModule.h" // For export macro
40
41#include <vector> // for std::vector
42
43class VTKFILTERSGENERAL_EXPORT vtkAnimateModes : public vtkPassInputTypeAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
57 vtkSetMacro(AnimateVibrations, bool);
58 vtkGetMacro(AnimateVibrations, bool);
59 vtkBooleanMacro(AnimateVibrations, bool);
61
63
69 vtkGetVector2Macro(ModeShapesRange, int);
71
73
76 vtkSetClampMacro(ModeShape, int, 1, VTK_INT_MAX);
77 vtkGetMacro(ModeShape, int);
79
81
85 vtkSetMacro(DisplacementPreapplied, bool);
86 vtkGetMacro(DisplacementPreapplied, bool);
87 vtkBooleanMacro(DisplacementPreapplied, bool);
89
91
95 vtkSetMacro(DisplacementMagnitude, double);
96 vtkGetMacro(DisplacementMagnitude, double);
98
100
104 vtkGetVector2Macro(TimeRange, double);
106
107protected:
110
111 int FillInputPortInformation(int port, vtkInformation* info) override;
115
116private:
117 vtkAnimateModes(const vtkAnimateModes&) = delete;
118 void operator=(const vtkAnimateModes&) = delete;
119
120 bool AnimateVibrations;
121 int ModeShapesRange[2];
122 int ModeShape;
123 double DisplacementMagnitude;
124 bool DisplacementPreapplied;
125 std::vector<double> InputTimeSteps;
126 double TimeRange[2];
127};
128
129#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:113
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