CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
OdPdfPublish::OdArtwork Class Reference

#include <PdfPublishArtwork.h>

Inheritance diagram for OdPdfPublish::OdArtwork:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdArtwork)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdArtwork ()
 
void setAnimationStyle (Artwork::AnimationStyle style)
 
void setJavaScript (const OdString &source, const Source::Type source_type=Source::kCode)
 
void setPMICrossHighlighting (bool state)
 
void setPMISemanticInformation (bool state)
 
void setDefaultViewPreference (Artwork::ViewPreference preference)
 
void setDisplayPreference (Artwork::DisplayPreference preference)
 
void addView (const OdViewPtr &view)
 
void setPMIColor (ODCOLORREF pmi_color)
 
void addAnimation (const OdAnimationPtr &animation)
 
void getAnimationStyle (Artwork::AnimationStyle &style) const
 
void getJavaScript (OdString &source, Source::Type &source_type) const
 
void getPMICrossHighlighting (bool &state) const
 
void getPMISemanticInformation (bool &state) const
 
void getDefaultViewPreference (Artwork::ViewPreference &preference) const
 
void getDisplayPreference (Artwork::DisplayPreference &preference) const
 
void getViews (OdViewPtrArray &views) const
 
void getPMIColor (ODCOLORREF &pmi_color) const
 
void getAnimations (OdAnimationPtrArray &animations) 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 OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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

 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 OdRxClassdesc ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OdArtwork()

OdPdfPublish::OdArtwork::OdArtwork ( )
protected

◆ ~OdArtwork()

virtual OdPdfPublish::OdArtwork::~OdArtwork ( )
virtual

Destroys an artwork object.

Member Function Documentation

◆ addAnimation()

void OdPdfPublish::OdArtwork::addAnimation ( const OdAnimationPtr &  animation)

Adds a new <link OdPdfPublish::OdAnimation, animation> object to the artwork.

Parameters
animation[in] A smart pointer to the animation object that should be added.

◆ addView()

void OdPdfPublish::OdArtwork::addView ( const OdViewPtr &  view)

Adds a new <link OdPdfPublish::OdView, view> to the artwork.

Parameters
view[in] A smart pointer to a view that should be added.
See also
<link OdPdfPublish::OdView, View class>.

◆ getAnimations()

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.

Parameters
animations[out] A placeholder for the animation object smart pointers.

◆ getAnimationStyle()

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.

Parameters
style[out] A placeholder for the animation style value.
See also
<link OdPdfPublish::Artwork::AnimationStyle, Artwork::AnimationStyle enumeration>.

◆ getDefaultViewPreference()

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.

Parameters
preference[out] A placeholder for the source of preferred view options.
Remarks
View options can be taken from .prc or .pdf data (if such data exists). This functionality is not implemented yet.
See also
<link OdPdfPublish::Artwork::ViewPreference, Artwork::ViewPreference enumeration>.

◆ getDisplayPreference()

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.

Parameters
preference[out] A placeholder for the source of preferred display options.
Remarks
Display options can be taken from view options or from application display settings. This functionality is not implemented yet.
See also
<link OdPdfPublish::Artwork::DisplayPreference, Artwork::DisplayPreference enumeration>.

◆ getJavaScript()

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.

Parameters
source[out] A placeholder for the JavaScript scenario source code.
source_type[out] A placeholder for the JavaScript scenario type.
See also
<link OdPdfPublish::Source::Type, Source::Type enumeration>.

◆ getPMIColor()

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.

Parameters
pmi_color[out] A placeholder for the PMI color value.
Remarks
This functionality is not implemented yet.

◆ getPMICrossHighlighting()

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.

Parameters
state[out] A placeholder for the PMI cross highlighting flag value.
Remarks
If the flag is set to true, the geometry related to a piece of PMI is hightlighted when the PMI is selected, otherwise it is not. This functionality is not implemented yet.

◆ getPMISemanticInformation()

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.

Parameters
state[out] A placeholder for the value of the PMI semantic data flag.
Remarks
If the flag is set to true, the artwork entity stores the semantic Picture Mastering Index data, otherwise it does not. This functionality is not implemented yet.

◆ getViews()

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.

Parameters
views[out] A smart pointer to a view array that should be filled by the method.
See also
<link OdPdfPublish::OdView, OdView class>.

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::OdArtwork::ODRX_DECLARE_MEMBERS ( OdArtwork  )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::OdArtwork::ODRX_HEAP_OPERATORS ( )

◆ setAnimationStyle()

void OdPdfPublish::OdArtwork::setAnimationStyle ( Artwork::AnimationStyle  style)

Sets an animation style for the artwork.

Parameters
style[in] A new animation style value.
See also
<link OdPdfPublish::Artwork::AnimationStyle, Artwork::AnimationStyle enumeration>.

◆ setDefaultViewPreference()

void OdPdfPublish::OdArtwork::setDefaultViewPreference ( Artwork::ViewPreference  preference)

Sets the preferred view option source for the artwork.

Parameters
preference[in] A new source of preferred view options.
Remarks
View options can be taken from .prc or .pdf data (if such data exists). This functionality is not implemented yet.
See also
<link OdPdfPublish::Artwork::ViewPreference, Artwork::ViewPreference enumeration>.

◆ setDisplayPreference()

void OdPdfPublish::OdArtwork::setDisplayPreference ( Artwork::DisplayPreference  preference)

Sets the source of preferred display options for the artwork entity.

Parameters
preference[in] A new source of preferred display options.
Remarks
Display options can be taken from view options or from application display settings. This functionality is not implemented yet.
See also
<link OdPdfPublish::Artwork::DisplayPreference, Artwork::DisplayPreference>.

◆ setJavaScript()

void OdPdfPublish::OdArtwork::setJavaScript ( const OdString source,
const Source::Type  source_type = Source::kCode 
)

Sets a JavaScript scenario for the artwork.

Parameters
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.

◆ setPMIColor()

void OdPdfPublish::OdArtwork::setPMIColor ( ODCOLORREF  pmi_color)

Sets a Picture Mastering Index color to be used by the artwork.

Parameters
pmi_color[in] A new PMI color value.
Remarks
This functionality is not implemented yet.

◆ setPMICrossHighlighting()

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.

Parameters
state[in] A new PMI cross highlighting flag value.
Remarks
This functionality is not implemented yet.

◆ setPMISemanticInformation()

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.

Parameters
state[in] A new PMI semantic data flag value.
Remarks
This functionality is not implemented yet.

The documentation for this class was generated from the following file: