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

#include <PdfPublishAnnotation.h>

Inheritance diagram for OdPdfPublish::OdAnnotation:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdAnnotation)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdAnnotation ()
 
void setSource (const OdCADModelPtr &cad_model)
 
void setName (const OdString &name)
 
void setArtwork (const OdArtworkPtr &artwork)
 
void setToolbarVisibility (bool state)
 
void setModelTreeVisibility (bool state)
 
void setInteractivity (bool state)
 
void setBorderWidth (OdUInt16 width)
 
void setTransparentBackground (bool state)
 
void setPosterImage (const OdImagePtr &image)
 
void setActivation (Activation::When when)
 
void setDeactivation (Deactivation::When when)
 
void setCarouselButtons (const OdStringArray &button_names, const OdString &previous_button_name, const OdString &next_button_name, OdUInt16 scroll_size)
 
void setCarouselViews (const OdUInt32Array &indices, const OdImagePtrArray &images)
 
void setCarouselScrollButtonsImages (const OdImagePtr &previous_button, const OdImagePtr &next_button)
 
void setCarouselButtonsFillColor (const ODCOLORREF color)
 
void setCarouselButtonsOffset (const OdUInt32 value)
 
void setCarouselButtonsFont (const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular)
 
void setCarouselButtonsFont (const Text::StandardFontsType fontType)
 
void setCarouselButtonsFontSize (OdUInt16 size)
 
void setViewListByField (const OdString &field)
 
void setViewList (const OdRect &location, const OdListBoxPtr &list)
 
void setPartsList (const OdStringArray node_names, const OdRect &location, const OdStringArray &headers, const OdDoubleArray &columns, const OdTextFieldPtr text_style=OdTextFieldPtr(), const OdTextFieldPtr header_style=OdTextFieldPtr())
 
void setPropertyList (const OdRect &location)
 
void setPropertyToTextField (const OdString &property_name, const OdTextFieldPtr text_fields)
 
void getSource (OdCADModelPtr &cad_model) const
 
void getName (OdString &name) const
 
void getArtwork (OdArtworkPtr &artwork) const
 
void getToolbarVisibility (bool &state) const
 
void getModelTreeVisibility (bool &state) const
 
void getInteractivity (bool &state) const
 
void getBorderWidth (OdUInt16 &width) const
 
void getTransparentBackground (bool &state) const
 
void getPosterImage (OdImagePtr &image) const
 
void getActivation (Activation::When &when) const
 
void getDeactivation (Deactivation::When &when) const
 
void getCarouselButtons (OdStringArray &button_names, OdString &previous_button_name, OdString &next_button_name, OdUInt16 &scroll_size) const
 
void getCarouselViews (OdUInt32Array &indices, OdImagePtrArray &images) const
 
void getCarouselScrollButtonsImages (OdImagePtr &previous_button, OdImagePtr &next_button) const
 
void getCarouselButtonsFillColor (ODCOLORREF &color) const
 
void getCarouselButtonsOffset (OdUInt32 &value) const
 
void getCarouselButtonsFont (Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle) const
 
void getCarouselButtonsFontSize (OdUInt16 &size) const
 
void getViewListField (OdString &field) const
 
void getViewList (OdRect &location, OdListBoxPtr &list) const
 
void getPartsList (OdStringArray &node_names, OdRect &location, OdStringArray &headers, OdDoubleArray &columns, OdTextFieldPtr &text_style, OdTextFieldPtr &header_style) const
 
void getPropertyList (OdRect &location) const
 
void getPropertyToTextField (const OdString &property_name, OdTextFieldPtrArray &text_field) 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

 OdAnnotation ()
 
- 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 annotation entity for .pdf documents created with Publish SDK. An annotation is a user space object that stores a set of objects of different types (acts like a container for other objects and controls). Annotations can contain compressed and uncompressed .prc tessellations, .prc boundary representation data, .prc attributes, and carousel buttons which allow users to interactively switch between different views. An annotation entity is based on a <link OdPdfPublish::OdCADModel, CAD model>. The <link OdPdfPublish::OdCADModel, CAD model> represents any drawing in a format supported by ODA Software (for example, a .dwg drawing), exported to PRC data format.

Definition at line 58 of file PdfPublishAnnotation.h.

Constructor & Destructor Documentation

◆ OdAnnotation()

OdPdfPublish::OdAnnotation::OdAnnotation ( )
protected

◆ ~OdAnnotation()

virtual OdPdfPublish::OdAnnotation::~OdAnnotation ( )
virtual

Destroys an annotation object.

Member Function Documentation

◆ getActivation()

void OdPdfPublish::OdAnnotation::getActivation ( Activation::When when) const

Returns the annotation activation type. The method fills a passed activation type value and returns it to a calling subroutine.

Parameters
when[out] A placeholder for the activation type value.
Remarks
The activation type determines when the annotation becomes active.
See also
<link OdPdfPublish::Activation::When, Activation::When enumeration>.

◆ getArtwork()

void OdPdfPublish::OdAnnotation::getArtwork ( OdArtworkPtr &  artwork) const

Returns a smart pointer to the annotation <link OdPdfPublish::OdArtwork, artwork> object. The method fills a passed smart pointer value and returns it to a calling subroutine.

Parameters
artwork[out] A placeholder for the smart pointer to the annotation artwork.
See also
<link OdPdfPublish::OdArtwork, OdArtwork class>.

◆ getBorderWidth()

void OdPdfPublish::OdAnnotation::getBorderWidth ( OdUInt16 width) const

Returns the current border width of the annotation. The method fills a passed value and returns it to a calling subroutine.

Parameters
width[out] A placeholder for the border width value (in points).
Remarks
Border width is measured in points.

◆ getCarouselButtons()

void OdPdfPublish::OdAnnotation::getCarouselButtons ( OdStringArray button_names,
OdString previous_button_name,
OdString next_button_name,
OdUInt16 scroll_size 
) const

Returns the annotation carousel buttons information. The information contains button names, including previous and next button names, and scroll size value. The method fills the passed objects with button information and returns them to a calling subroutine.

Parameters
button_names[out] A placeholder for the array of button names.
previous_button_name[out] A placeholder for the name of the previous button.
next_button_name[out] A placeholder for the name of the next button.
scroll_size[out] A placeholder for the scroll size value.
Remarks
A carousel buttons array includes a collection of buttons to switch between different views (each button contains a small preview) and two specific buttons for switching to a previous or next view relative to the view that is currently displayed. The scroll size property determines how many buttons are scrolled when the user presses the next or previous button.

It is necessary to set carousel buttons to generate a carousel view.

◆ getCarouselButtonsFillColor()

void OdPdfPublish::OdAnnotation::getCarouselButtonsFillColor ( ODCOLORREF color) const

Returns a color that is used for filling the carousel buttons.

Parameters
color[out] A placeholder for the value of the fill color.

◆ getCarouselButtonsFont()

void OdPdfPublish::OdAnnotation::getCarouselButtonsFont ( Text::StorageType storageType,
Text::StandardFontsType fontType,
OdString fontName,
Text::FontStyle fontStyle 
) const

Returns the current carousel buttons font parameters. The method fills passed values and returns them to a calling subroutine.

Parameters
storageType[out] A placeholder for the storage type.
fontType[out] A placeholder for the font type.
fontName[out] A placeholder for the font name.
fontStyle[out] A placeholder for the font style.
See also
<link OdPdfPublish::Text::StorageType, Text::StorageType enumeration> <link OdPdfPublish::Text::StandardFontsType, Text::StandardFontsType enumeration> <link OdPdfPublish::Text::FontStyle, Text::FontStyle enumeration>

◆ getCarouselButtonsFontSize()

void OdPdfPublish::OdAnnotation::getCarouselButtonsFontSize ( OdUInt16 size) const

Returns the carousel buttons font size. The method fills a passed value and returns it to a calling subroutine.

Parameters
size[out] A placeholder for the font size value.

◆ getCarouselButtonsOffset()

void OdPdfPublish::OdAnnotation::getCarouselButtonsOffset ( OdUInt32 value) const

Returns a offset between annotations and the carousel buttons.

Parameters
color[out] A placeholder for the value of the offset.

◆ getCarouselScrollButtonsImages()

void OdPdfPublish::OdAnnotation::getCarouselScrollButtonsImages ( OdImagePtr &  previous_button,
OdImagePtr &  next_button 
) const

Returns the images for carousel scroll buttons.

Parameters
previous_button[out] A placeholder for the smart pointer to image objects that are used as previous button image.
next_button[out] A placeholder for the smart pointer to image objects that are used as next button image.

◆ getCarouselViews()

void OdPdfPublish::OdAnnotation::getCarouselViews ( OdUInt32Array indices,
OdImagePtrArray &  images 
) const

Returns the carousel views of the annotation. The view information contains an array of view indices and an array of button icons. The method fills the passed objects with data about the views and returns them to a calling subroutine.

Parameters
indices[out] A placeholder for the array of view indices.
images[out] A placeholder for the array of smart pointers to the image objects that are used as button preview images.
Remarks
A carousel view array includes a collection of views that represent different points of view to a published drawing. To switch from one view to another, a set of carousel buttons is used. Each button (except the previous and next buttons) is associated with a particular view.

◆ getDeactivation()

void OdPdfPublish::OdAnnotation::getDeactivation ( Deactivation::When when) const

Returns the annotation deactivation type. The method fills a passed deactivation type value and returns it to a calling subroutine.

Parameters
when[out] A placeholder for the deactivation type value.
Remarks
The dectivation type determines when the annotation becomes inactive.
See also
<link OdPdfPublish::Deactivation::When, Deactivation::When enumeration>.

◆ getInteractivity()

void OdPdfPublish::OdAnnotation::getInteractivity ( bool &  state) const

Returns the current value of the interactivity flag of the annotation. The method fills a passed boolean value and returns it to a calling subroutine.

Parameters
state[out] A placeholder for the interactivity flag value.
Remarks
If the flag is true, the annotation interactiviy is enabled, otherwise interactivity is disabled.

◆ getModelTreeVisibility()

void OdPdfPublish::OdAnnotation::getModelTreeVisibility ( bool &  state) const

Returns the current value of the visibility flag of the annotation model tree. The method fills a passed boolean value and returns it to a calling subroutine.

Parameters
state[out] A placeholder for the visibility flag value.
Remarks
If the flag is true, the model tree is diplayed when the annotation becomes active, otherwise the model tree stays hidden.

◆ getName()

void OdPdfPublish::OdAnnotation::getName ( OdString name) const

Returns the annotation name. The method fills a passed string object and returns it to a calling subroutine.

Parameters
name[out] A placeholder for the annotation name.

◆ getPartsList()

void OdPdfPublish::OdAnnotation::getPartsList ( OdStringArray node_names,
OdRect location,
OdStringArray headers,
OdDoubleArray columns,
OdTextFieldPtr &  text_style,
OdTextFieldPtr &  header_style 
) const

Returns the table that contains the list of annotation parts. The method accepts placeholders for the parts list table, fills them and returns to a calling subroutine.

Parameters
node_names[out] A placeholder for the array of node names.
location[out] A placeholder for the location of the parts list table.
headers[out] A placeholder for the header titles (number, name, quantity). If the array is empty, the table will not have headers.
columns[out] A placeholder for the column width proportions. The sum of proportion values must be equal to 1.0.
text_style[out] A placeholder for the text styles of the table cells.
header_style[out] A placeholder for the column header styles.
Remarks
A user can scroll the list parts table. The table consists of three columns: Part number Part name Quantity of the part appearence in the annotation

The annotation must have an OdCADModel object as its source.
The OdCADModel object must contain data in PRC format.

The columns parameter allows you to specify how the whole table width should be divided between three columns (number, name, quantity). For example, if the column array contains values 0.1, 0.75 and 0.15, the number column occupies 10%, name column occupies 75%, and quantity column occupies 15% of the table width respectively.

◆ getPosterImage()

void OdPdfPublish::OdAnnotation::getPosterImage ( OdImagePtr &  image) const

Returns the annotation poster image. The method fills a passed smart pointer to an <link OdPdfPublish::OdImage, image> object and returns it to a calling subroutine.

Parameters
image[out] A placeholder for the smart pointer to an image object.
See also
<link OdPdfPublish::OdImage, OdImage class>.

◆ getPropertyList()

void OdPdfPublish::OdAnnotation::getPropertyList ( OdRect location) const

Returns the current location of the property list label.

Parameters
location[in] A placehloder for the property list location.

◆ getPropertyToTextField()

void OdPdfPublish::OdAnnotation::getPropertyToTextField ( const OdString property_name,
OdTextFieldPtrArray &  text_field 
) const

Returns the current text field property with a specified name.

Parameters
property_name[in] A property name.
text_field[in] A smart pointer to a text field array.

◆ getSource()

void OdPdfPublish::OdAnnotation::getSource ( OdCADModelPtr &  cad_model) const

Returns the annotation source. The method fills a passed smart pointer to the model object and returns it to a calling subroutine.

Parameters
cad_model[out] A placeholder for the smart pointer to the model.
Remarks
The source contains drawing data that has been exported to the annotation.
See also
<link OdPdfPublish::OdCADModel, OdCADModel class>.

◆ getToolbarVisibility()

void OdPdfPublish::OdAnnotation::getToolbarVisibility ( bool &  state) const

Returns the current value of the visibility flag of the annotation toolbar. The method fills a passed boolean value and returns it to a calling subroutine.

Parameters
state[out] A placeholder for the visibility flag value.
Remarks
If the flag is true, the toolbar is diplayed when the annotation becomes active, otherwise the toolbar stays hidden.

◆ getTransparentBackground()

void OdPdfPublish::OdAnnotation::getTransparentBackground ( bool &  state) const

Returns the current value of the transparency flag of the annotation. The method fills a passed boolean value and returns it to a calling subroutine.

Parameters
state[out] A placeholder for the transparency flag value.
Remarks
If the flag is true, the annotation background is transparent, otherwise the annotation background is opaque.

◆ getViewList()

void OdPdfPublish::OdAnnotation::getViewList ( OdRect location,
OdListBoxPtr &  list 
) const

Returns the list box object that contains the list of view names. The method fills the passed location and list box objects, then returns them to a calling subroutine.

Parameters
location[out] A placeholder for the list box location.
list[out] A placeholder for the list box object.

◆ getViewListField()

void OdPdfPublish::OdAnnotation::getViewListField ( OdString field) const

Returns a list of view names combined in a single string. The method fills the passed string objects with view names and returns it to a calling subroutine.

Parameters
field[out] A placeholder for the string containing view names.

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::OdAnnotation::ODRX_DECLARE_MEMBERS ( OdAnnotation  )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::OdAnnotation::ODRX_HEAP_OPERATORS ( )

◆ setActivation()

void OdPdfPublish::OdAnnotation::setActivation ( Activation::When  when)

Sets the annotation activation type. The activation type determines when the annotation becomes active.

Parameters
when[in] An activation type value.
See also
<link OdPdfPublish::Activation::When, Activation::When enumeration>.

◆ setArtwork()

void OdPdfPublish::OdAnnotation::setArtwork ( const OdArtworkPtr &  artwork)

Sets an <link OdPdfPublish::OdArtwork, artwork> object of the annotation.

Parameters
artwork[in] An <link OdPdfPublish::OdArtwork, artwork> object.

◆ setBorderWidth()

void OdPdfPublish::OdAnnotation::setBorderWidth ( OdUInt16  width)

Sets the border width of the annotation. Border width is measured in points.

Parameters
width[in] A border width value (in points).

◆ setCarouselButtons()

void OdPdfPublish::OdAnnotation::setCarouselButtons ( const OdStringArray button_names,
const OdString previous_button_name,
const OdString next_button_name,
OdUInt16  scroll_size 
)

Sets the annotation carousel buttons.

Parameters
button_names[in] An array of button names.
previous_button_name[in] A name for the previous button.
next_button_name[in] A name for the next button.
scroll_size[in] A scroll size value.
Remarks

A carousel buttons array includes a collection of buttons to switch between different views (each button contains a small preview) and two specific buttons for switching to a previous or next view relative to the view that is currently displayed. View indices and small previews are set using the setCarouselViews function. The scroll size property determines how many buttons are scrolled when the user presses the next or previous button.

It is necessary to set carousel buttons to generate a carousel view.

◆ setCarouselButtonsFillColor()

void OdPdfPublish::OdAnnotation::setCarouselButtonsFillColor ( const ODCOLORREF  color)

Sets a color that is used for filling the carousel buttons.

Parameters
color[in] A new value of the fill color.

◆ setCarouselButtonsFont() [1/2]

void OdPdfPublish::OdAnnotation::setCarouselButtonsFont ( const OdString fontName,
Text::FontStyle  fontStyle = Text::kRegular 
)

Sets the carousel buttons font name and style.

Parameters
fontName[in] A new font name.
fontStyle[in] A new font style.
Remarks
This method can set a font that is not represented in the list of <link OdPdfPublish::Text::StandardFontsType, standard fonts>. By default the <link OdPdfPublish::Text::StandardFontsType::kTimesRoman, normal Times New Roman font> is used.
See also
<link OdPdfPublish::Text::FontStyle, Text::FontStyle enumeration> <link OdPdfPublish::Text::StandardFontsType, StandardFontsType enumeration>

◆ setCarouselButtonsFont() [2/2]

void OdPdfPublish::OdAnnotation::setCarouselButtonsFont ( const Text::StandardFontsType  fontType)

Sets the carousel buttons font type from the list of <link OdPdfPublish::Text::StandardFontsType, predefined fonts>.

Parameters
fontType[in] A new font type value.
See also
<link OdPdfPublish::Text::StandardFontsType, Text::StandardFontsType enumeration>.

◆ setCarouselButtonsFontSize()

void OdPdfPublish::OdAnnotation::setCarouselButtonsFontSize ( OdUInt16  size)

Sets the carousel buttons font size.

Parameters
size[in] A new font size value.

◆ setCarouselButtonsOffset()

void OdPdfPublish::OdAnnotation::setCarouselButtonsOffset ( const OdUInt32  value)

Sets a offset between annotations and the carousel buttons.

Parameters
color[in] A new value of the offset.

◆ setCarouselScrollButtonsImages()

void OdPdfPublish::OdAnnotation::setCarouselScrollButtonsImages ( const OdImagePtr &  previous_button,
const OdImagePtr &  next_button 
)

Sets the images for carousel scroll buttons.

Parameters
previous_button[in] A smart pointer to image objects that are used as previous button image.
next_button[in] A smart pointer to image objects that are used as next button image.

◆ setCarouselViews()

void OdPdfPublish::OdAnnotation::setCarouselViews ( const OdUInt32Array indices,
const OdImagePtrArray &  images 
)

Sets the carousel views of the annotation.

Parameters
indices[in] An array of view indices.
images[in] An array of smart pointers to image objects that are used as button preview images.
Remarks
A carousel view array includes a collection of views that represent different points of view to a published drawing. The number of view indices and image must be equal to the number of button names set by the setCarouselButtons function. To switch from one view to another, a set of carousel buttons is used. Each button (except the previous and next buttons) is associated with a particular view.

◆ setDeactivation()

void OdPdfPublish::OdAnnotation::setDeactivation ( Deactivation::When  when)

Sets the annotation deactivation type. The deactivation type determines when the annotation becomes inactive.

Parameters
when[in] A deactivation type value.
See also
<link OdPdfPublish::Deactivation::When, Deactivation::When enumeration>.

◆ setInteractivity()

void OdPdfPublish::OdAnnotation::setInteractivity ( bool  state)

Sets the interactivity flag of the annotation. If the flag is true, annotation interactivity is enabled, otherwise interactivity is disabled.

Parameters
state[in] An interactivity flag value.

◆ setModelTreeVisibility()

void OdPdfPublish::OdAnnotation::setModelTreeVisibility ( bool  state)

Sets the visibility flag of the annotation model tree. If the flag is true, the model tree is diplayed when the annotation becomes active, otherwise the model tree stays hidden.

Parameters
state[in] A visibility flag value.

◆ setName()

void OdPdfPublish::OdAnnotation::setName ( const OdString name)

Sets the annotation name.

Parameters
name[in] A name value.
Remarks
The name is mandatory and must be unique among the document object names.

◆ setPartsList()

void OdPdfPublish::OdAnnotation::setPartsList ( const OdStringArray  node_names,
const OdRect location,
const OdStringArray headers,
const OdDoubleArray columns,
const OdTextFieldPtr  text_style = OdTextFieldPtr(),
const OdTextFieldPtr  header_style = OdTextFieldPtr() 
)

Sets the table that contains the list of annotation parts.

Parameters
node_names[in] A string array that contains the distinct node names.
location[in] A location of the parts list table.
headers[in] The parts list table header titles (number, name, quantity). If the array is empty, the table will not have headers.
columns[in] A double array that contains column width proportions. The sum of proportion values must be equal to 1.0.
text_style[in] A text field object that is used to represent table cells. It means that cells will have the same text style as the specified text field object.
header_style[in] A text field object that is used to represent column headers. It means that the headers will have the same text style as the specified text field object.
Remarks
A user can scroll the list parts table. The table consists of three columns: Part number Part name Quantity of the part appearence in the annotation

The annotation must have an OdCADModel object as its source.
The OdCADModel object must contain data in PRC format.

The columns parameter allows you to specify how the whole table width should be divided between three columns (number, name, quantity). For example if the column array contains values 0.1, 0.75 and 0.15, the number column occupies 10%, name column occupies 75%, and quantity column occupies 15% of the table width respectively.

◆ setPosterImage()

void OdPdfPublish::OdAnnotation::setPosterImage ( const OdImagePtr &  image)

Sets the annotation poster <link OdPdfPublish::OdImage, image>.

Parameters
image[in] A smart pointer to an <link OdPdfPublish::OdImage, image> object that should be used as the poster.
See also
<link OdPdfPublish::OdImage, OdImage class>.

◆ setPropertyList()

void OdPdfPublish::OdAnnotation::setPropertyList ( const OdRect location)

Creates a new OdList object in a specified location and fills it with property values of the node selected at the annotation object. If the node has no property, the list object remains empty.

Parameters
location[in] A rectangle that determines the location.

◆ setPropertyToTextField()

void OdPdfPublish::OdAnnotation::setPropertyToTextField ( const OdString property_name,
const OdTextFieldPtr  text_fields 
)

Displays the property value of the selected node to a specified text field. The property to be displayed is defined by its name.

Parameters
property_name[in] A property name to be displayed.
text_fields[in] A smart pointer to a text field that displays the property value.
Remarks
If the selected node of the annotation does not have a property with the specified name, the text box object remains empty.

◆ setSource()

void OdPdfPublish::OdAnnotation::setSource ( const OdCADModelPtr &  cad_model)

Sets the annotation source. The source contains drawing data that should be exported to the annotation.

Parameters
cad_model[in] A smart pointer to an <link OdPdfPublish::OdCADModel, OdCADModel> object to be set as the annotation source.
See also
<link OdPdfPublish::OdCADModel, OdCADModel>

◆ setToolbarVisibility()

void OdPdfPublish::OdAnnotation::setToolbarVisibility ( bool  state)

Sets the visibility flag of the annotation toolbar. If the flag is true, the toolbar is diplayed when the annotation becomes active, otherwise the toolbar stays hidden.

Parameters
state[in] A visibility flag value.

◆ setTransparentBackground()

void OdPdfPublish::OdAnnotation::setTransparentBackground ( bool  state)

Sets the transparency flag of the annotation. If the flag is true, the annotation background is transparent, otherwise the annotation background is opaque.

Parameters
state[in] A transparency flag value.

◆ setViewList()

void OdPdfPublish::OdAnnotation::setViewList ( const OdRect location,
const OdListBoxPtr &  list 
)

Adds a new list box object in a specified area and creates a list of view names in it.

Parameters
location[out] A list box location.
list[out] A list box object.

◆ setViewListByField()

void OdPdfPublish::OdAnnotation::setViewListByField ( const OdString field)

Creates a new list of view names combined in a single string.

Parameters
field[out] A string containing view names.
Remarks
The name is mandatory and must be unique among the document object names.

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