VTK  9.0.20210301
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
39 #include "vtkPointSetAlgorithm.h"
40 
41 #include <vector> // for std::vector
42 
43 class VTKFILTERSGENERAL_EXPORT vtkAnimateModes : public vtkPointSetAlgorithm
44 {
45 public:
46  static vtkAnimateModes* New();
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 
107 protected:
109  ~vtkAnimateModes() override;
110 
115 
116 private:
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
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:44
vtkAnimateModes::New
static vtkAnimateModes * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkPointSetAlgorithm.h
vtkAnimateModes
animate mode shapes
Definition: vtkAnimateModes.h:44
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkAnimateModes::~vtkAnimateModes
~vtkAnimateModes() override
vtkAnimateModes::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkAnimateModes::vtkAnimateModes
vtkAnimateModes()
vtkAnimateModes::ExecuteInformation
int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkAnimateModes::ComputeInputUpdateExtent
int ComputeInputUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkAnimateModes::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.