ModeShapeAnimation.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 
17 #include "CeeCore/RefCountedObject.h"
18 
19 #include <vector>
20 
21 namespace cee {
22 namespace ug {
23 
24 
25 
26 //==================================================================================================
27 //
28 //
29 //
30 //==================================================================================================
31 class CEE_UG_EXPORT ModeShapeAnimation
32 {
33 public:
36  {
38  SINE
39  };
41 
44  {
46  HALF,
47  FULL
48  };
50 
51 public:
52  virtual ~ModeShapeAnimation();
53 
54  size_t frameCount() const;
55  void setFrameCount(size_t stepCount);
56 
57  bool interpolateScalars() const;
58  void setInterpolateScalars(bool interpolate);
59 
60  InterpolationType interpolationMode() const;
61  void setInterpolationMode(InterpolationType interpolationType);
62 
63  AnimationType animationMode() const;
64  void setAnimationMode(AnimationType animationType);
65 
66  void clear();
67 
68 private:
70  CEE_PRIVATE_F(ModelSpec);
71  CEE_PRIVATE_IMPL(ModeShapeAnimation);
72  CEE_DISALLOW_COPY_AND_ASSIGN(ModeShapeAnimation);
73 };
74 
75 } // namespace ug
76 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
InterpolationType
Type of interpolation to use when creating the mode shape animation.
Definition: ModeShapeAnimation.h:35
Settings for mode shape animation.
Definition: ModeShapeAnimation.h:31
Linear interpolation.
Definition: ModeShapeAnimation.h:37
Animate from original position to the displaced position: V0 ... VD.
Definition: ModeShapeAnimation.h:45
AnimationType
Type of animation to create, quarter, half or full.
Definition: ModeShapeAnimation.h:43
The model specification.
Definition: ModelSpec.h:35
Animate from original position to the displaced position and back again: V0 ... VD ...
Definition: ModeShapeAnimation.h:46