CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishAnnotation.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
26//
27// PdfPublishAnnotation.h
28//
30
31#ifndef _PDF_PUBLISH_ANNOTATION_INCLUDED_
32#define _PDF_PUBLISH_ANNOTATION_INCLUDED_
33
35#include "PdfPublishArtwork.h"
36#include "PdfPublishImage.h"
37#include "PdfPublishModel.h"
38#include "PdfPublishListBox.h"
39#include "PdfPublishTextField.h"
40#include "UInt32Array.h"
41#include "StringArray.h"
42#include "DoubleArray.h"
43
44
49namespace OdPdfPublish{
50
58class PDFPUBLISH_TOOLKIT OdAnnotation : public OdObject
59{
60 //DOM-IGNORE-BEGIN
61protected:
63 //DOM-IGNORE-END
64public:
65 //DOM-IGNORE-BEGIN
68 //DOM-IGNORE-END
69
73 virtual ~OdAnnotation();
74
84 void setSource(const OdCADModelPtr& cad_model);
85
94 void setName(const OdString& name);
95
101 void setArtwork(const OdArtworkPtr& artwork);
102
109 void setToolbarVisibility(bool state);
110
117 void setModelTreeVisibility(bool state);
118
125 void setInteractivity(bool state);
126
134
141 void setTransparentBackground(bool state);
142
151 void setPosterImage(const OdImagePtr& image);
152
163
174
192 void setCarouselButtons(const OdStringArray& button_names, const OdString& previous_button_name, const OdString& next_button_name, OdUInt16 scroll_size);
193
205 void setCarouselViews(const OdUInt32Array& indices, const OdImagePtrArray& images);
206
213 void setCarouselScrollButtonsImages(const OdImagePtr& previous_button, const OdImagePtr& next_button);
214
221
228
247 void setCarouselButtonsFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular, Text::Language language = Text::kDefault, bool embed = false);
248
258
265
279
288 void setViewListByField(const OdString& field);
289
296 void setViewList(const OdRect& location, const OdListBoxPtr& list);
297
321 void setPartsList(const OdStringArray node_names, const OdRect& location, const OdStringArray& headers, const OdDoubleArray& columns,
322 const OdTextFieldPtr text_style = OdTextFieldPtr(), const OdTextFieldPtr header_style = OdTextFieldPtr());
323
330
339 void setPropertyToTextField(const OdString& property_name, const OdTextFieldPtr text_fields);
340
353 void getSource(OdCADModelPtr& cad_model) const;
354
361 void getName(OdString& name) const;
362
372 void getArtwork(OdArtworkPtr& artwork) const;
373
383 void getToolbarVisibility(bool& state) const;
384
394 void getModelTreeVisibility(bool& state) const;
395
405 void getInteractivity(bool& state) const;
406
417
427 void getTransparentBackground(bool& state) const;
428
438 void getPosterImage(OdImagePtr& image) const;
439
453
467
485 void getCarouselButtons(OdStringArray& button_names, OdString& previous_button_name, OdString& next_button_name, OdUInt16& scroll_size) const;
486
499 void getCarouselViews(OdUInt32Array& indices, OdImagePtrArray& images) const;
500
507 void getCarouselScrollButtonsImages(OdImagePtr& previous_button, OdImagePtr& next_button) const;
508
515
522
540 void getCarouselButtonsFont(Text::StorageType& storageType, Text::StandardFontsType& fontType, OdString& fontName, Text::FontStyle& fontStyle, Text::Language& language, bool& embed) const;
541
549
561
568 void getViewListField(OdString& field) const;
569
577 void getViewList(OdRect& location, OdListBoxPtr& list) const;
578
603 void getPartsList(OdStringArray& node_names, OdRect& location, OdStringArray& headers, OdDoubleArray& columns,
604 OdTextFieldPtr& text_style, OdTextFieldPtr& header_style) const;
605
611
617 void getPropertyToTextField(const OdString& property_name, OdTextFieldPtrArray& text_field) const;
618};
619
624
625}
626#endif // _PDF_PUBLISH_ANNOTATION_INCLUDED_
627
OdArray< OdDouble, OdMemoryAllocator< OdDouble > > OdDoubleArray
Definition DoubleArray.h:36
#define SMARTPTR(classname)
Definition IfcCommon.h:33
#define ODCOLORREF
unsigned int OdUInt32
unsigned short OdUInt16
#define PDFPUBLISH_TOOLKIT
OdArray< OdString > OdStringArray
Definition StringArray.h:32
OdArray< OdUInt32, OdMemoryAllocator< OdUInt32 > > OdUInt32Array
Definition UInt32Array.h:35
void setInteractivity(bool state)
void getCarouselScrollButtonsImages(OdImagePtr &previous_button, OdImagePtr &next_button) const
void getCarouselButtonsFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle, Text::Language &language, bool &embed) const
void setSource(const OdCADModelPtr &cad_model)
void getName(OdString &name) const
void getTransparentBackground(bool &state) const
void setName(const OdString &name)
void setCarouselButtonsAlignment(CarouselButtons::Alignment alignment)
ODRX_DECLARE_MEMBERS(OdAnnotation)
void setCarouselButtonsFont(const Text::StandardFontsType fontType)
void getViewListField(OdString &field) const
void getToolbarVisibility(bool &state) const
void setBorderWidth(OdUInt16 width)
void getSource(OdCADModelPtr &cad_model) const
void setPosterImage(const OdImagePtr &image)
void getPartsList(OdStringArray &node_names, OdRect &location, OdStringArray &headers, OdDoubleArray &columns, OdTextFieldPtr &text_style, OdTextFieldPtr &header_style) const
void setActivation(Activation::When when)
void getPosterImage(OdImagePtr &image) const
void getInteractivity(bool &state) const
void setTransparentBackground(bool state)
void getPropertyList(OdRect &location) const
void setCarouselButtonsFontSize(OdUInt16 size)
void setDeactivation(Deactivation::When when)
void setCarouselViews(const OdUInt32Array &indices, const OdImagePtrArray &images)
void setCarouselButtonsFont(const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular, Text::Language language=Text::kDefault, bool embed=false)
void getModelTreeVisibility(bool &state) const
void getCarouselButtonsAlignment(CarouselButtons::Alignment &alignment) const
void setPropertyToTextField(const OdString &property_name, const OdTextFieldPtr text_fields)
void setToolbarVisibility(bool state)
void getArtwork(OdArtworkPtr &artwork) const
void setPropertyList(const OdRect &location)
void setCarouselButtonsFillColor(const ODCOLORREF color)
void setArtwork(const OdArtworkPtr &artwork)
void getDeactivation(Deactivation::When &when) const
void setCarouselScrollButtonsImages(const OdImagePtr &previous_button, const OdImagePtr &next_button)
void setViewList(const OdRect &location, const OdListBoxPtr &list)
void getBorderWidth(OdUInt16 &width) const
void setViewListByField(const OdString &field)
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 setCarouselButtonsOffset(const OdUInt32 value)
void setModelTreeVisibility(bool state)
void getPropertyToTextField(const OdString &property_name, OdTextFieldPtrArray &text_field) const
void setCarouselButtons(const OdStringArray &button_names, const OdString &previous_button_name, const OdString &next_button_name, OdUInt16 scroll_size)
void getViewList(OdRect &location, OdListBoxPtr &list) const
void getActivation(Activation::When &when) const
void getCarouselButtons(OdStringArray &button_names, OdString &previous_button_name, OdString &next_button_name, OdUInt16 &scroll_size) const
void getCarouselButtonsOffset(OdUInt32 &value) const
void getCarouselButtonsFontSize(OdUInt16 &size) const
void getCarouselViews(OdUInt32Array &indices, OdImagePtrArray &images) const
void getCarouselButtonsFillColor(ODCOLORREF &color) const
GLint GLenum GLsizei width
Definition gles2_ext.h:110
GLsizeiptr size
Definition gles2_ext.h:182
GLuint const GLchar * name
Definition gles2_ext.h:265
GLint location
Definition gles2_ext.h:284
GLsizei const GLfloat * value
Definition gles2_ext.h:302