Keyframe.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 
11 #ifndef DOCUMENTATION_GENERATOR
12 
13 #if defined (__ANIMATOR_BUILD__)
14 # define __ANIMATOR_DECLSPEC__ __declspec(dllexport)
15 #else
16 # define __ANIMATOR_DECLSPEC__ __declspec(dllimport)
17 #endif
18 
19 #define ANIMATOR_EXPORTED __ANIMATOR_DECLSPEC__
20 
21 #else
22 
23 #define ANIMATOR_EXPORTED
24 
25 #endif
26 
27 #include <Mstn\MdlApi\mdl.h>
28 #include <Mstn\MdlApi\elementref.h>
29 
31 
32 /*=================================================================================**/
36 struct KeyFrame
37 {
38 public:
40  ANIMATOR_EXPORTED KeyFrame (ElementRefP ref);
41  ANIMATOR_EXPORTED ~KeyFrame ();
42 
47  ANIMATOR_EXPORTED StatusInt GetName (WCharP pBuf, UInt32 bufChars);
48 
53  ANIMATOR_EXPORTED StatusInt GetDescription (WCharP pBuf, UInt32 bufChars);
54 
57  ANIMATOR_EXPORTED ElementRefP GetElementRef ();
58 
62 
67  ANIMATOR_EXPORTED ElementRefP GetKeyFrameRepresentationOfElement (Bentley::DgnPlatform::ElementId elID, DgnModelRefP modelRef = NULL);
68 
71  ANIMATOR_EXPORTED ElementRefModelMapP GetKeyFrameAnimatedElementMap ();
72 
76 
81  ANIMATOR_EXPORTED StatusInt AddActor (ActorElementP actor);
82 
88 
93  ANIMATOR_EXPORTED StatusInt DeleteActor (ActorElementP actor);
94 
100  ANIMATOR_EXPORTED StatusInt DeleteElement (ElementRefP ref, DgnModelRefP modelRef = NULL);
101 
106  ANIMATOR_EXPORTED StatusInt UpdateElement (AnimatedElementP animEl);
107 
113  ANIMATOR_EXPORTED static ElementRefP CreateEmptyKeyFrame (WCharP pName, WCharP pDescription, DgnModelRefP modelRef);
114 
122  ANIMATOR_EXPORTED static StatusInt SaveElementsToKeyFrameInAnimationModel (MSElementDescrP selectionEdP, AnimationModelP animationModel, WCharCP nameP, WCharCP descriptionP, bool overwriteExisting);
123 
124 
125 }; // KeyFrame
126 
129 
Definition: RelationshipCollections.h:37
#define ANIMATOR_EXPORTED
Definition: Keyframe.h:23
#define END_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:30
wchar_t * WCharP
Definition: Bentley.h:225
#define BEGIN_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:29
wchar_t const * WCharCP
Definition: Bentley.h:224
uint32_t UInt32
Definition: Bentley.r.h:128
#define NULL
Definition: Bentley.h:157
Definition: MSElementDescr.h:28
A DgnModelRef provides access to a model in a Bentley::DgnPlatform::DgnFile.
Definition: DgnModelRef.h:172
Defines key frame structure with relative operations.
Definition: Keyframe.h:36
Interface that provides direct and efficient access to element data.
Definition: ElementRefBase.h:120
ElementRefModelMap * ElementRefModelMapP
Definition: AnimationCollections.h:300
int StatusInt
Definition: Bentley.h:222
UInt64 ElementId
Definition: DgnPlatformBaseType.r.h:83

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