CFx SDK Documentation 2024 SP0
|
#include <PdfPublishAnimation.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdAnimation) | |
ODRX_HEAP_OPERATORS () | |
virtual | ~OdAnimation () |
void | setName (const OdString &name) |
void | setPlayOnOpenDocument (bool state) |
void | setAutoReplay (bool state) |
void | setFramesPerSecond (const OdUInt32 frame_per_second) |
void | setFramesCount (const OdUInt64 frame_count) |
void | setCameraMotion (const OdUInt64 &start_frame, const OdUInt64 &end_frame, OdBaseCameraMotionPtr motion) |
void | addNodeMotion (const OdUInt64 &start_frame, const OdUInt64 &end_frame, OdBaseNodeMotionPtr motion) |
void | getName (OdString &name) const |
void | getPlayOnOpenDocument (bool &state) const |
void | getAutoReplay (bool &state) const |
void | getFramesPerSecond (OdUInt32 &frame_per_second) const |
void | getFramesCount (OdUInt64 &frame_count) const |
void | getCameraMotion (OdUInt64 &start_frame, OdUInt64 &end_frame, OdBaseCameraMotionPtr &motion) const |
void | getNodeMotions (OdUInt64Array &starts_frame, OdUInt64Array &ends_frame, OdBaseNodeMotionPtrArray &motions) const |
Public Member Functions inherited from OdPdfPublish::OdObject | |
ODRX_DECLARE_MEMBERS (OdObject) | |
ODRX_HEAP_OPERATORS () | |
virtual | ~OdObject () |
virtual bool | isEmpty () const |
virtual bool | isValid () const |
virtual void | clear () |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
OdAnimation () | |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
OdObject (OdPublishObjectImpl *pImpl) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class implements a parametric animation object in .pdf documents created with Publish SDK.
Definition at line 50 of file PdfPublishAnimation.h.
|
protected |
|
virtual |
Destroys the animation object.
void OdPdfPublish::OdAnimation::addNodeMotion | ( | const OdUInt64 & | start_frame, |
const OdUInt64 & | end_frame, | ||
OdBaseNodeMotionPtr | motion | ||
) |
Adds an object that handles a node motion when the animation is played.
start_frame | [in] A start frame. Determines when the node motion starts. |
end_frame | [in] An end frame. Determines when the node motion stops. |
motion | [in] A smart pointer to a node motion object. |
void OdPdfPublish::OdAnimation::getAutoReplay | ( | bool & | state | ) | const |
Returns the current value of the flag that determines whether the animation should be replayed.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdAnimation::getCameraMotion | ( | OdUInt64 & | start_frame, |
OdUInt64 & | end_frame, | ||
OdBaseCameraMotionPtr & | motion | ||
) | const |
Returns the current camera motion handler associated with the animation. The method fills passed values with the start frame index, end frame index and with a smart pointer to the camera motion object, then returns them to a calling subroutine.
start_frame | [out] A placeholder for the camera motion start frame. |
end_frame | [out] A placeholder for the camera motion end frame. |
motion | [out] A placeholder for the smart pointer to the camera motion object. |
Returns the total frame quantity for the animation.
frame_count | [out] A placeholder for the total quantity of frames. |
Returns the quantity of frames that are played per second during the animation.
frame_per_second | [out] A placeholder for the quantity of frames. |
Returns the name of the animation object.
name | [out] A placeholder for the name of the animation. |
void OdPdfPublish::OdAnimation::getNodeMotions | ( | OdUInt64Array & | starts_frame, |
OdUInt64Array & | ends_frame, | ||
OdBaseNodeMotionPtrArray & | motions | ||
) | const |
Returns all node motion handlers associated with the animation. The method fills the passed arrays with start and end frame numbers and with smart pointers to motion objects, then returns them to a calling subroutine.
starts_frame | [out] A placeholder for motion start frames. |
ends_frame | [out] A placeholder for motion end frames. |
motions | [out] A placeholder for the array of node motion objects. |
void OdPdfPublish::OdAnimation::getPlayOnOpenDocument | ( | bool & | state | ) | const |
Returns the current value of the flag that determines whether the animation should be started when a document opens.
state | [out] A placeholder for the flag value. |
OdPdfPublish::OdAnimation::ODRX_DECLARE_MEMBERS | ( | OdAnimation | ) |
OdPdfPublish::OdAnimation::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdAnimation::setAutoReplay | ( | bool | state | ) |
Sets the flag that determines whether the animation should be replayed.
state | [in] A new flag value. |
void OdPdfPublish::OdAnimation::setCameraMotion | ( | const OdUInt64 & | start_frame, |
const OdUInt64 & | end_frame, | ||
OdBaseCameraMotionPtr | motion | ||
) |
Sets an object that handles the camera motion when the animation is played.
start_frame | [in] A start frame. Determines when the camera motion starts. |
end_frame | [in] An end frame. Determines when the camera motion stops. |
motion | [in] A smart pointer to a camera motion object. |
Sets the total frame quantity for the animation.
frame_count | [in] A total quantity of frames. |
Sets the quantity of frames that are played per second during the animation.
frame_per_second | [in] A quantity of frames. |
Sets the name of the animation object.
name | [in] A name of the animation. |
void OdPdfPublish::OdAnimation::setPlayOnOpenDocument | ( | bool | state | ) |
Sets the flag that determines whether the animation should be started when a document opens.
state | [in] A new flag value. |