Fovia's C++ Client/Server API
|
Public Member Functions | |
virtual signed int | AskInterface (const BGUID *piid, IRoot **ppr)=0 |
virtual signed int | DecRef ()=0 |
virtual signed int | FrameModified ()=0 |
virtual signed int | GetFrameAt (IMovieMakerKeyFrame **ret, signed long long idx)=0 |
virtual signed int | GetInterpolatedFrame (RENDER_PARAMS &ret, double loc, signed int windowWidth)=0 |
virtual signed int | GetInterpolatedFrameEx (RENDER_PARAMS &ret, RENDER_PARAMS &ret2, ENUM_WINDOW_TYPES &windowType, double loc, signed int windowWidth)=0 |
virtual signed int | GetMovieName (char **pszMovieName)=0 |
virtual signed int | GetNumFrames (signed long long &ret)=0 |
virtual signed int | GetStartIdx (signed long long &ret, double loc)=0 |
virtual signed int | GetTotalTime (double &ret)=0 |
virtual signed int | IncRef ()=0 |
virtual signed int | InsertFrame (IMovieMakerKeyFrame *frame, signed long long idx)=0 |
virtual signed int | RemoveFrame (IMovieMakerKeyFrame *frame)=0 |
virtual signed int | RemoveFrameEx (IMovieMakerKeyFrame **ret, signed long long idx)=0 |
virtual signed int | SetConstantVelocity (double millimetersPerSecond)=0 |
virtual signed int | SetFrameAt (IMovieMakerKeyFrame *frame, signed long long idx)=0 |
virtual signed int | SetMovieName (char *szMovieName)=0 |
Public Member Functions inherited from IRoot | |
template<class T > | |
signed int | AskInterface (T **pp) |
Object that describes a movie used by IMovieMaker. You should set key frames on this object until you are satisfied with the movie. Then, use IMovieMaker to create the movie at the desired frame rate. Note that you can perform quick previewing of this movie by calling GetInterpolatedFrame() with the time in seconds into the movie and you will get a RENDER_PARAMS to apply to your preview window. To get the total play time of the movie call GetTotalTime(). Use ILibrary::CreateObject() to create this object.
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
|
pure virtual |
Notifies the movie object that a frame has been modified. This is necessary for returning metrics such as total time and returning interpolated frames.
|
pure virtual |
Returns the key frame at the specified index into ret.
ret | The address of the key frame interface to get the address of the frame. |
idx | The index of the frame to get. |
|
pure virtual |
Returns a RENDER_PARAMS that describes the frame specified. If there is not a key frame at the frame specified, the RENDER_PARAMS will be generated by interpolating values between the closest key frames.
ret | The interpolated key frame result. |
loc | The time in seconds into the movie from which to create the key frame. |
windowWidth | The width of the render window that will receive the RENDER_PARAMS. This adjusts the RENDER_PARAMS::Zoom so that the image fills the window properly. |
|
pure virtual |
Reserved for future use.
|
pure virtual |
Returns the pointer to the string containing the name of the movie into the variable at address pszMovieName. This is a shallow pointer and should not be deallocated.
pszMovieName | The address of the char* to get the name of the movie. This is a shallow pointer and should not be deallocated. |
|
pure virtual |
Returns the number of key frames in the movie into ret.
ret | The variable to get the number of key frames in the movie. |
|
pure virtual |
Given the start time in seconds loc, The index of the key frame just before that time is returned into ret.
loc | The time in seconds to get the previous key frame. |
ret | The key frame just before time loc. |
|
pure virtual |
Returns the total run time of the movie in seconds into ret.
ret | Gets the total run time of the movie in seconds. |
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
|
pure virtual |
Inserts an IMovieMakerKeyFrame into the movie at index idx.
frame | The IMovieMakerKeyFrame to insert into the movie. |
idx | The index to insert the key frame. The key frame that used to be at that index becomes the keyframe after this new one. If idx is the number of key frames, this frame is inserted at the end of the movie. |
|
pure virtual |
|
pure virtual |
Removes the key frame at the specified index and returns it into ret.
ret | The address of the key frame interface to get the location of the frame removed. |
idx | The index of the frame to remove. |
|
pure virtual |
Sets the lengths of all the key frames in the movie such that eye locations move at the velocity millimetersPerSecond.
millimetersPerSecond | The new speed at which all eye location movements will now go. |
|
pure virtual |
Sets the key frame at the specified index to frame. The previous frame has DecRef() called on it and is otherwise forgotten.
frame | The key frame interface to set at index idx. |
idx | The index of the frame to set. |
|
pure virtual |
Sets the movie name to szMovieName.
szMovieName | The new name for the movie. |