CFx SDK Documentation 2024 SP0
|
#include <PdfPublishArtwork.h>
Protected Member Functions | |
OdArtwork () | |
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 an artwork entity for .pdf documents created with Publish SDK. Artwork is a user space object that stores a set of objects of different types (acts as a container for other objects and controls).
Definition at line 48 of file PdfPublishArtwork.h.
|
protected |
|
virtual |
Destroys an artwork object.
void OdPdfPublish::OdArtwork::addAnimation | ( | const OdAnimationPtr & | animation | ) |
Adds a new <link OdPdfPublish::OdAnimation, animation> object to the artwork.
animation | [in] A smart pointer to the animation object that should be added. |
void OdPdfPublish::OdArtwork::addView | ( | const OdViewPtr & | view | ) |
Adds a new <link OdPdfPublish::OdView, view> to the artwork.
view | [in] A smart pointer to a view that should be added. |
void OdPdfPublish::OdArtwork::getAnimations | ( | OdAnimationPtrArray & | animations | ) | const |
Returns all animation objects that exist within the artwork. The method fills a passed array of smart poiters to an <link OdPdfPublish::OdAnimation, animation object> and returns it to a calling subroutine.
animations | [out] A placeholder for the animation object smart pointers. |
void OdPdfPublish::OdArtwork::getAnimationStyle | ( | Artwork::AnimationStyle & | style | ) | const |
Returns the current animation style of the artwork. The method fills a passed animation style and returns it to a calling subroutine.
style | [out] A placeholder for the animation style value. |
void OdPdfPublish::OdArtwork::getDefaultViewPreference | ( | Artwork::ViewPreference & | preference | ) | const |
Returns the current source of preferred view options for the artwork. The method fills a passed options source value and returns it to a calling subroutine.
preference | [out] A placeholder for the source of preferred view options. |
void OdPdfPublish::OdArtwork::getDisplayPreference | ( | Artwork::DisplayPreference & | preference | ) | const |
Returns the current source of preferred display options for the artwork entity. The method fills a passed options source value and returns it to a calling subroutine.
preference | [out] A placeholder for the source of preferred display options. |
void OdPdfPublish::OdArtwork::getJavaScript | ( | OdString & | source, |
Source::Type & | source_type | ||
) | const |
Returns the current JavaScript scenario for the artwork. The method fills a passed string object with the JavaScript scenario source code and returns it to a calling subroutine.
source | [out] A placeholder for the JavaScript scenario source code. |
source_type | [out] A placeholder for the JavaScript scenario type. |
void OdPdfPublish::OdArtwork::getPMIColor | ( | ODCOLORREF & | pmi_color | ) | const |
Returns the current Picture Mastering Index color used by the artwork. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
pmi_color | [out] A placeholder for the PMI color value. |
void OdPdfPublish::OdArtwork::getPMICrossHighlighting | ( | bool & | state | ) | const |
Returns the current value of the cross highlighting flag for the Picture Mastering Index (PMI) color. The method fills a passed boolean value and returns it to a calling subroutine.
state | [out] A placeholder for the PMI cross highlighting flag value. |
void OdPdfPublish::OdArtwork::getPMISemanticInformation | ( | bool & | state | ) | const |
Returns the current value of the PMI semantic data flag. The method fills a passed boolean value and returns it to a calling subroutine.
state | [out] A placeholder for the value of the PMI semantic data flag. |
void OdPdfPublish::OdArtwork::getViews | ( | OdViewPtrArray & | views | ) | const |
Returns an array of artwork <link OdPdfPublish::OdView, views>. The method fills a passed view array object and returns it to a calling subroutine.
views | [out] A smart pointer to a view array that should be filled by the method. |
OdPdfPublish::OdArtwork::ODRX_DECLARE_MEMBERS | ( | OdArtwork | ) |
OdPdfPublish::OdArtwork::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdArtwork::setAnimationStyle | ( | Artwork::AnimationStyle | style | ) |
Sets an animation style for the artwork.
style | [in] A new animation style value. |
void OdPdfPublish::OdArtwork::setDefaultViewPreference | ( | Artwork::ViewPreference | preference | ) |
Sets the preferred view option source for the artwork.
preference | [in] A new source of preferred view options. |
void OdPdfPublish::OdArtwork::setDisplayPreference | ( | Artwork::DisplayPreference | preference | ) |
Sets the source of preferred display options for the artwork entity.
preference | [in] A new source of preferred display options. |
void OdPdfPublish::OdArtwork::setJavaScript | ( | const OdString & | source, |
const Source::Type | source_type = Source::kCode |
||
) |
Sets a JavaScript scenario for the artwork.
source | [in] A string object that contains the JavaScript scenario source code. |
source_type | [in] A value that determines the type of the JavaScript source. |
void OdPdfPublish::OdArtwork::setPMIColor | ( | ODCOLORREF | pmi_color | ) |
Sets a Picture Mastering Index color to be used by the artwork.
pmi_color | [in] A new PMI color value. |
void OdPdfPublish::OdArtwork::setPMICrossHighlighting | ( | bool | state | ) |
Sets the cross highlighting flag for the Picture Mastering Index (PMI) color of the artwork entity. If the flag is set to true, the geometry related to a piece of PMI is highlighted when the PMI is selected, otherwise it is not.
state | [in] A new PMI cross highlighting flag value. |
void OdPdfPublish::OdArtwork::setPMISemanticInformation | ( | bool | state | ) |
Sets the semantic data flag for the Picture Mastering Index (PMI) of the artwork entity. If the flag is set to true, the artwork entity stores the semantic data, otherwise it does not.
state | [in] A new PMI semantic data flag value. |