CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PdfPublishAnnotation.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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
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
244 void setCarouselButtonsFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular);
245
255
262
271 void setViewListByField(const OdString& field);
272
279 void setViewList(const OdRect& location, const OdListBoxPtr& list);
280
304 void setPartsList(const OdStringArray node_names, const OdRect& location, const OdStringArray& headers, const OdDoubleArray& columns,
305 const OdTextFieldPtr text_style = OdTextFieldPtr(), const OdTextFieldPtr header_style = OdTextFieldPtr());
306
313
322 void setPropertyToTextField(const OdString& property_name, const OdTextFieldPtr text_fields);
323
336 void getSource(OdCADModelPtr& cad_model) const;
337
344 void getName(OdString& name) const;
345
355 void getArtwork(OdArtworkPtr& artwork) const;
356
366 void getToolbarVisibility(bool& state) const;
367
377 void getModelTreeVisibility(bool& state) const;
378
388 void getInteractivity(bool& state) const;
389
400
410 void getTransparentBackground(bool& state) const;
411
421 void getPosterImage(OdImagePtr& image) const;
422
436
450
468 void getCarouselButtons(OdStringArray& button_names, OdString& previous_button_name, OdString& next_button_name, OdUInt16& scroll_size) const;
469
482 void getCarouselViews(OdUInt32Array& indices, OdImagePtrArray& images) const;
483
490 void getCarouselScrollButtonsImages(OdImagePtr& previous_button, OdImagePtr& next_button) const;
491
498
505
520 void getCarouselButtonsFont(Text::StorageType& storageType, Text::StandardFontsType& fontType, OdString& fontName, Text::FontStyle& fontStyle) const;
521
529
536 void getViewListField(OdString& field) const;
537
545 void getViewList(OdRect& location, OdListBoxPtr& list) const;
546
571 void getPartsList(OdStringArray& node_names, OdRect& location, OdStringArray& headers, OdDoubleArray& columns,
572 OdTextFieldPtr& text_style, OdTextFieldPtr& header_style) const;
573
579
585 void getPropertyToTextField(const OdString& property_name, OdTextFieldPtrArray& text_field) const;
586};
587
592
593}
594#endif // _PDF_PUBLISH_ANNOTATION_INCLUDED_
595
#define SMARTPTR(classname)
Definition: IfcCommon.h:33
#define ODCOLORREF
Definition: OdPlatform.h:933
unsigned int OdUInt32
unsigned short OdUInt16
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
void setInteractivity(bool state)
void getCarouselScrollButtonsImages(OdImagePtr &previous_button, OdImagePtr &next_button) const
void setSource(const OdCADModelPtr &cad_model)
void getName(OdString &name) const
void getTransparentBackground(bool &state) const
void setName(const OdString &name)
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)
void getModelTreeVisibility(bool &state) 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 getCarouselButtonsFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle) 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