VTK  9.3.1
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 
34 VTK_ABI_NAMESPACE_BEGIN
35 class VTKFILTERSGENERAL_EXPORT vtkAnimateModes : public vtkPassInputTypeAlgorithm
36 {
37 public:
38  static vtkAnimateModes* New();
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 
99 protected:
100  vtkAnimateModes();
101  ~vtkAnimateModes() override;
102 
103  int FillInputPortInformation(int port, vtkInformation* info) override;
107 
108 private:
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 
121 VTK_ABI_NAMESPACE_END
122 #endif
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:144
animate mode shapes
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()