Open Reality Reference Guide
|
|
Go to the documentation of this file. 1 #ifndef __FBPLAYERCONTROL_H__
2 #define __FBPLAYERCONTROL_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
55 #ifdef FBSDKUseNamespace
56 namespace FBSDKNamespace {;
146 FBPropertyPlayerControlChangeType
Type;
182 bool Play(
bool pUseMarkers =
false);
246 bool Record(
bool pOverrideTake=
false,
bool pCopyData=
true );
528 int Add(
const char *pName );
571 #ifdef FBSDKUseNamespace
FBPropertyTime LoopStart
Read Write Property: Loop begin time.
@ kFBTransportLoopCurrentTake
Playback looping the current take.
bool IsLocked()
Return the current locking state of the transport.
bool GotoStart(FBTimeReferential)
GotoStart button (Rewind).
const char * operator[](int pID)
Overloaded [] operator.
FBTime GetGlobalTimeMarkTime(int pIndex)
Returns the time associated with a global time mark.
FBPropertyTime PreviousMarker
Read Only Property: Previous marked time.
@ kFBSpeed_Custom
Custom speed.
void Key()
Key default data.
@ kFBTimeFormatTimecode
Timecode time display mode.
bool Goto(FBTime pTime)
Goto a time specified by pTime.
void GotoPreviousKey()
Go to the previous key.
void SetEditZoomStop(FBTime pTime)
Set Edit Zoom Stop.
@ kFBTimeModeDefault
Default Time Mode.
FBEventPlayerControlChange(HKEventBase pEvent)
Constructor.
FBTime GetEditZoomStop()
Get Edit Zoom Stop.
@ kFBTransportSnapModeSnapOnFrames
Snaps to an exact frame when modifying the current time.
FBTime GetEditStop()
Get Edit Stop.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
@ kFBTransportStepForwardPrepare
!< Step forward
void SetEditZoomStart(FBTime pTime)
Set Edit Zoom Start.
double GetTransportFpsValue(FBTimeMode pTimeMode=kFBTimeModeDefault)
Get the UI frame rate value.
FBTime GetTime(int pID, FBTime pSystem)
Get a reference time.
FBTransportLoopMode
Available loop modes for the transport control.
void GotoNextKey()
Go to the next key.
@ kFBTransportGotoPrepare
!< Goto.
bool StepBackward()
Step one frame backward.
bool DeleteGlobalTimeMark(int pIndex)
Delete a global time mark.
void GetUniqueIDList(FBArrayTemplate< int > *pIDArray)
Get list of currently available IDs.
class K_DLLIMPORT FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
int GetPreviousGlobalTimeMarkIndex()
Returns the previous global time mark index, based on the current local time.
void EvaluationPause()
Pause device evaluation thread.
FBTimeMode GetTransportFps()
Get the UI frame rate use for display configure in the system.
FBTransportTimeFormat
Available transport control time display.
FBPropertyTime ZoomWindowStop
Read Write Property: Stopping time of the transport control zoom window.
void SetTransportFps(FBTimeMode pTimeMode, double pCustom=0.0)
Set the system frame rate use for display.
@ kFBTransportStopPost
!< Stop mode
void SetPlaySpeedMode(FBTransportPlaySpeed pPlaySpeedMode)
Set Play Speed Mode.
bool SetGlobalTimeMarkName(int pIndex, const char *pName)
Sets a new name for an existing global time mark.
int AddGlobalTimeMark(FBTime pTime, const char *pName=NULL)
Add a global time mark.
double GetPlaySpeed()
Get Play Speed .
@ kFBSpeed_ALL_FR
All frames.
FBPropertyTime ZoomWindowStart
Read Write Property: Starting time of the transport control zoom window.
FBReferenceTime(HIObject pObject=NULL)
Constructor.
FBTransportMode
Transport modes.
FBPropertyTime RecordingSamplingPeriod
Read Write Property: Sampling period for the model recording.
int GetNextGlobalTimeMarkIndex()
Returns the next global time mark index, based on the current local time.
FBPropertyBool IsPlaying
Read Only Property: Is the transport control playing?
void SetEditStop(FBTime pTime)
Set Edit Stop.
bool StepBackward(FBTimeReferential)
Step one frame backward.
int SetGlobalTimeMarkTime(int pIndex, FBTime pTime)
Sets a new time for an existing global time mark.
void SetPlaySpeed(double pSpeed)
Set Play Speed.
@ kFBPlayerControlRecordModeOff
Record mode off.
FBTransportSnapMode
Available snap methods for the transport control.
@ kFBTransportNoLoop
Playback not looping.
FBTimeReferential GetTimeReferential()
Get Time Referential.
bool StepForward()
Step one frame ahead.
const char * GetGlobalTimeMarkName(int pIndex)
Returns the name associated with a global time mark.
FBPropertyInt ItemIndex
Read Write Property: Current reference time index.
const char * GetReferenceTimeName(int pID)
Get the name of a time reference.
FBTransportPlaySpeed GetPlaySpeedMode()
Get Play Speed Mode.
class K_DLLIMPORT FBPropertyBase< FBTime, kFBPT_Time > FBPropertyTime
Property: FBTime
@ kFBTransportLoopThroughAllTakes
Playback from the current take through all takes in order then stops.
@ kFBTimeFormatFrame
Frame time display mode.
bool GotoEnd(FBTimeReferential)
GotoEnd button (FastForward).
#define __FBClassDeclare(Name, Parent)
For internal use only.
void Remove(int pID)
Remove a reference time from the list.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
@ kFBTransportPlayPrepare
!< Play mode
FBTimeMarkAction
Time (Global & Take) Mark assigned action.
FBPropertyPlayerControlChangeType Type
Read Only Property: Type of event.
FBPropertyBool IsRecording
Read Only Property: Is there a recording in progress?
@ kFBPlayerControlGoto
Goto.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
@ kFBTransportSnapModeSnapAndPlayOnFrames
Combines both Snap and Play on frames modes.
FBTimeMarkAction GetGlobalTimeMarkAction(int pIndex)
Returns the action associated with a global time mark.
@ kFBPlayerControlStepForward
Step forward.
bool StepForward(FBTimeReferential)
Step one frame ahead.
bool SetGlobalTimeMarkColor(int pIndex, FBColor pColor)
Sets a new color for an existing global time mark.
@ kFBPlayerControlNone
None.
PropertyEvent: Base event class.
FBTimeReferential
FBCommandState.
FBPropertyTransportTimeFormat TransportTimeFormat
Read Write Property: Current Time Mode of the transport controls.
FBTransportMode GetTransportMode()
Get Transport Mode.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
FBPropertyBool IsPlotting
Read Only Property: Is there a plotting in progress?
@ kFBPlayerControlPlayReverse
Play reverse.
FBPropertyBool LoopActive
Read Write Property: Is looping active?
bool GotoStart()
GotoStart button (Rewind).
void SetEditStart(FBTime pTime)
Set Edit Start.
@ kFBTransportStepBackwardPrepare
!< Step backward.
FBPropertyInt Count
Read Only Property: Number of reference times.
bool GotoEnd()
GotoEnd button (FastForward).
void SetTimeReferential(FBTimeReferential pTimeReferential)
Set Time Referential.
static FBPlayerControl & TheOne()
Get the global object for this class.
FBTime GetEditCurrentTime()
Get Edit Current Time.
FBPropertyInt CurrentTimeReferenceID
Read Write Property: Current reference time ID
bool Goto(FBTime, FBTimeReferential)
Goto a time specified by pTime.
int GetGlobalTimeMarkCount()
Returns the number of global time marks.
@ kFBPlayerControlPlay
Play.
@ kFBTransportShuttlePrepare
!< Shuttle mode
@ kFBPlayerControlStop
Stop.
@ kFBTransportSnapModeNoSnap
No snapping is applied.
Template class to contain an array of items.
FBTime GetEditStart()
Get Edit Start.
bool PlayReverse(bool pUseMarkers=false)
Play Reverse button.
@ kFBTransportJogPrepare
!< Jog.
FBPropertyEvent OnChange
Event Property: Fired when something in the player control has changed. (see FBEventPlayerControlChan...
FBPropertyTime NextMarker
Read Only Property: Next marked time.
Declaration for the FBCommand class.
void EvaluationResume()
Resume device evaluation thread.
FBTimeMode
Different time modes available.
bool Record(bool pOverrideTake=false, bool pCopyData=true)
Begin recording.
FBPropertyTime LoopStop
Read Write Property: Loop end time.
FBTransportPlaySpeed
Available transport control play speed.
void SetTime(int pID, FBTime pReferenceTime, FBTime pSystem)
Set a reference time.
bool SetGlobalTimeMarkAction(int pIndex, FBTimeMarkAction pAction)
Sets a new action for an existing global time mark.
@ kFBTransportSnapModePlayOnFrames
When playing, plays to exact frames.
FBPropertyTransportSnapMode SnapMode
Read Write Property: Set the transport control snap mode.
FBPropertyTransportLoopMode LoopMode
Read Write Property: Loop mode.
@ kFBTransportPlayReversePrepare
!< Play reverse.
bool Play(bool pUseMarkers=false)
Play button.
void DeleteAllGlobalTimeMarks()
Delete all global time marks.
FBTime GetEditZoomStart()
Get Edit Zoom Start.
@ kFBPlayerControlRecordModeOn
Record mode on.
FBPlayerControlChangeType
Types of player control change events.
FBPropertyTime PlotSamplingPeriod
Read Write Property: Sampling period for the model plotting.
MotionBuilder SDK base class.
int Add(const char *pName)
Add a reference time to list.
FBColor GetGlobalTimeMarkColor(int pIndex)
Returns the color associated with a global time mark.
@ kFBPlayerControlStepBackward
Step backward.
void LockTransport(bool pLock)
Lock the transport control.
FBPlayerControl(HIObject pObject=NULL)
Constructor.