AnimatedElementController.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
13 #ifndef DOCUMENTATION_GENERATOR
14 
15 #if defined (__ANIMATOR_BUILD__)
16 # define __ANIMATOR_DECLSPEC__ __declspec(dllexport)
17 #else
18 # define __ANIMATOR_DECLSPEC__ __declspec(dllimport)
19 #endif
20 
21 #define ANIMATOR_EXPORTED __ANIMATOR_DECLSPEC__
22 
23 #else
24 
25 #define ANIMATOR_EXPORTED
26 
27 #endif
28 
32 
34 
35 
37 
38 //=======================================================================================
41 //=======================================================================================
43 {
44 private:
45 
46 public :
47 
48  //=======================================================================================
51  //=======================================================================================
53  {
54  INTERPOLATIONTYPE_ArcLengthLinear = 0,
55  INTERPOLATIONTYPE_ArcLengthCubic = 1,
56  INTERPOLATIONTYPE_Points = 2,
57  };
58 
59  //=======================================================================================
62  //=======================================================================================
64  {
65  ROTATIONORDER_XYZ = 0,
66  ROTATIONORDER_XZY = 1,
67  ROTATIONORDER_YXZ = 2,
68  ROTATIONORDER_YZX = 3,
69  ROTATIONORDER_ZXY = 4,
70  ROTATIONORDER_ZYX = 5,
71  };
72 
73 public:
76  ANIMATOR_EXPORTED ElementRefP GetSubject () const {return m_subject;}
77 
80  ANIMATOR_EXPORTED bool HasPathMotion () const;
81 
84  ANIMATOR_EXPORTED bool HasKeyFrameMotion () const;
85 
88  ANIMATOR_EXPORTED bool HasDirectionMotion () const;
89 
92  ANIMATOR_EXPORTED bool IsScripted () const;
93 
94 };
95 
96 
100 
RotationOrder
Defines the types of rotation order.
Definition: AnimatedElementController.h:63
#define ANIMATOR_EXPORTED
Definition: AnimatedElementController.h:25
#define USING_NAMESPACE_BENTLEY_DGNPLATFORM
Definition: DgnPlatform.h:27
#define END_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:30
Defines frequent query for controller action.
Definition: AnimationModel.h:1189
#define BEGIN_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:29
#define USING_NAMESPACE_BENTLEY
Definition: Bentley.h:133
AnimationHandler is an interface which extends the relationship handler interface to make relation el...
Definition: AnimationRelation.h:45
RefCountedPtr< struct AnimatedElementController > AnimatedElementControllerPtr
Definition: AnimatedElementController.h:36
ElementRefP GetSubject() const
Gets subject.
Definition: AnimatedElementController.h:76
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
Base class to make a class non-copyable.
Definition: NonCopyableClass.h:23
Interface that provides direct and efficient access to element data.
Definition: ElementRefBase.h:120
InterpolationType
Defines the types of interpolation.
Definition: AnimatedElementController.h:52
Concrete class that can be used to implement the reference-counting pattern.
Definition: RefCounted.h:109
Defines the controller for AnimatedElement.
Definition: AnimatedElementController.h:42
#define USING_NAMESPACE_RELATIONSHIP
Definition: Relationship.h:2527

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.