VTK  9.3.20240424
vtkAnimateModes.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
26#ifndef vtkAnimateModes_h
27#define vtkAnimateModes_h
28
29#include "vtkFiltersGeneralModule.h" // For export macro
31
32#include <vector> // for std::vector
33
34VTK_ABI_NAMESPACE_BEGIN
35class VTKFILTERSGENERAL_EXPORT vtkAnimateModes : public vtkPassInputTypeAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49 vtkSetMacro(AnimateVibrations, bool);
50 vtkGetMacro(AnimateVibrations, bool);
51 vtkBooleanMacro(AnimateVibrations, bool);
53
55
61 vtkGetVector2Macro(ModeShapesRange, int);
63
65
68 vtkSetClampMacro(ModeShape, int, 1, VTK_INT_MAX);
69 vtkGetMacro(ModeShape, int);
71
73
77 vtkSetMacro(DisplacementPreapplied, bool);
78 vtkGetMacro(DisplacementPreapplied, bool);
79 vtkBooleanMacro(DisplacementPreapplied, bool);
81
83
87 vtkSetMacro(DisplacementMagnitude, double);
88 vtkGetMacro(DisplacementMagnitude, double);
90
92
96 vtkGetVector2Macro(TimeRange, double);
98
99protected:
102
103 int FillInputPortInformation(int port, vtkInformation* info) override;
107
108private:
109 vtkAnimateModes(const vtkAnimateModes&) = delete;
110 void operator=(const vtkAnimateModes&) = delete;
111
112 bool AnimateVibrations;
113 int ModeShapesRange[2];
114 int ModeShape;
115 double DisplacementMagnitude;
116 bool DisplacementPreapplied;
117 std::vector<double> InputTimeSteps;
118 double TimeRange[2];
119};
120
121VTK_ABI_NAMESPACE_END
122#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:108
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:144