FBX C++ API Reference
fbxmediaclip.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2017 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_SCENE_MEDIACLIP_H_
14 #define _FBXSDK_SCENE_MEDIACLIP_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
18 #include <fbxsdk/core/fbxobject.h>
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
26 {
28 
29 public:
34  virtual void Reset();
37 
46  virtual bool SetFileName(const char* pName);
47 
51  FbxString GetFileName () const;
52 
57  virtual bool SetRelativeFileName(const char* pName);
58 
62  FbxString GetRelativeFileName() const;
63 
69  void SetColor(FbxColor pColor);
70 
74  FbxColor GetColor() const;
75 
81  void SetPlaySpeed(double pPlaySpeed);
82 
86  double GetPlaySpeed() const;
87 
91  void SetClipIn(FbxTime pTime);
92 
96  FbxTime GetClipIn() const;
97 
101  void SetClipOut(FbxTime pTime);
102 
106  FbxTime GetClipOut() const;
107 
112  void SetOffset(FbxTime pTime);
113 
114  /* Retrieve the time offset.
115  * \return The current time shift.
116  */
117  FbxTime GetOffset() const;
118 
124  void SetFreeRunning(bool pState);
125 
129  bool GetFreeRunning() const;
130 
131 
137  void SetLoop(bool pLoop);
138 
142  bool GetLoop() const;
143 
149  void SetMute(bool pMute);
150 
154  bool GetMute() const;
155 
159  {
162  eDiskAsync
163  };
164 
168  void SetAccessMode(EAccessMode pAccessMode);
169 
173  EAccessMode GetAccessMode() const;
175 
176 /*****************************************************************************************************************************
177 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
178 *****************************************************************************************************************************/
179 #ifndef DOXYGEN_SHOULD_SKIP_THIS
180 protected:
181  virtual void Construct(const FbxObject* pFrom);
182  virtual void ConstructProperties(bool pForceSet);
183 
184 public:
185  virtual FbxObject& Copy(const FbxObject& pObject);
186 
187  virtual FbxStringList GetTypeFlags() const;
188 
189  void SetOriginalFormat(bool pState);
190  bool GetOriginalFormat() const;
191  void SetOriginalFilename(const char* pOriginalFilename);
192  const char* GetOriginalFilename() const;
193 
195  FbxPropertyT<FbxTime> ClipIn;
196  FbxPropertyT<FbxTime> ClipOut;
197  FbxPropertyT<FbxTime> Offset;
198  FbxPropertyT<FbxDouble> PlaySpeed;
199  FbxPropertyT<FbxBool> FreeRunning;
202  FbxPropertyT<EAccessMode> AccessMode;
203 
204 protected:
205  void Init();
207  FbxPropertyT<FbxString> RelPath;
208 
209  bool mOriginalFormat;
210  FbxString mOriginalFilename;
211 
212 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
213 };
214 
216 
217 #include <fbxsdk/fbxsdk_nsend.h>
218 
219 #endif /* _FBXSDK_SCENE_MEDIACLIP_H_ */
FBX SDK environment definition.
virtual FbxObject & Copy(const FbxObject &pObject)
Copy an object content into this object.
Array that stores pairs of FbxString and a pointer.
Utility class to manipulate strings.
Definition: fbxstring.h:66
Class to represent colors in RGBA format using doubles.
EFbxType
Type identifier constants.
Class to encapsulate time units.
Definition: fbxtime.h:44
The base class of most FBX objects.
Definition: fbxobject.h:157
FBX SDK media clip class.
Definition: fbxmediaclip.h:25
#define FBXSDK_ABSTRACT_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new abstract class derived from FbxObject.
Definition: fbxobject.h:68
virtual void Construct(const FbxObject *pFrom)
Optional constructor override, automatically called by default constructor.
Enumeration.
EAccessMode
Media clip access mode.
Definition: fbxmediaclip.h:158
#define FBXSDK_DLL
Definition: fbxarch.h:173
EFbxType FbxTypeOf(const FbxMediaClip::EAccessMode &)
Definition: fbxmediaclip.h:215
This template class is used to contain user properties of specific data types.
Definition: fbxproperty.h:1070
virtual void ConstructProperties(bool pForceSet)
Optional property constructor override, automatically called by default constructor.