CFx SDK Documentation  2023 SP0
PdfPublishAnnotation.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
34 #include "PdfPublishBaseObject.h"
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 
48 namespace OdPdfPublish{
49 
58 {
59 public:
60  //DOM-IGNORE-BEGIN
63  //DOM-IGNORE-END
64 
69 
73  virtual ~OdAnnotation();
74 
84  void setSource(const OdCADModelPtr& cad_model);
85 
93 
103 
110  void setPRCBRepRemoval(bool state);
111 
118  void setPRCAttributeRemoval(bool state);
119 
125  void setName(const OdString& name);
126 
132  void setArtwork(const OdArtworkPtr& artwork);
133 
140  void setToolbarVisibility(bool state);
141 
148  void setModelTreeVisibility(bool state);
149 
156  void setInteractivity(bool state);
157 
165 
172  void setTransparentBackground(bool state);
173 
180 
189  void setPosterImage(const OdImagePtr& image);
190 
201 
212 
222 
232 
249  void setCarouselButtons(const OdStringArray& button_names, const OdString& previous_button_name, const OdString& next_button_name, OdUInt16 scroll_size);
250 
261  void setCarouselViews(const OdUInt32Array& indices, const OdImagePtrArray& images);
262 
271  void setViewListByField(const OdString& field);
272 
279  void setViewList(const OdRect& location, const OdListBoxPtr& list);
280 
281  void setPartsList(const OdStringArray node_names, const OdRect& location, const OdStringArray& headers, const OdDoubleArray& columns,
282  const OdTextFieldPtr text_style = OdTextFieldPtr(), const OdTextFieldPtr header_style = OdTextFieldPtr());
283 
285 
286  void setPropertyToTextField(const OdString& property_name, const OdTextFieldPtr text_fields);
287 
300  void getSource(OdCADModelPtr& cad_model) const;
301 
311  void getPRCTessellationCompression(bool& state) const;
312 
323 
333  void getPRCBRepRemoval(bool& state) const;
334 
344  void getPRCAttributeRemoval(bool& state) const;
345 
352  void getName(OdString& name) const;
353 
363  void getArtwork(OdArtworkPtr& artwork) const;
364 
374  void getToolbarVisibility(bool& state) const;
375 
385  void getModelTreeVisibility(bool& state) const;
386 
396  void getInteractivity(bool& state) const;
397 
408 
418  void getTransparentBackground(bool& state) const;
419 
420 
427  void getBackgroundColor(ODCOLORREF& color) const;
428 
438  void getPosterImage(OdImagePtr& image) const;
439 
452  void getActivation(Activation::When& when) const;
453 
467 
477  void getLighting(Lighting::Mode& mode) const;
478 
488  void getRendering(Rendering::Mode& mode) const;
489 
507  void getCarouselButtons(OdStringArray& button_names, OdString& previous_button_name, OdString& next_button_name, OdUInt16& scroll_size) const;
508 
521  void getCarouselViews(OdUInt32Array& indices, OdImagePtrArray& images) const;
522 
529  void getViewListField(OdString& field) const;
530 
538  void getViewList(OdRect& location, OdListBoxPtr& list) const;
539 
540  void getPartsList(OdStringArray& node_names, OdRect& location, OdStringArray& headers, OdDoubleArray& columns,
541  OdTextFieldPtr text_style, OdTextFieldPtr header_style) const;
542 
544 
545  void getPropertyToTextField(const OdString& property_name, OdTextFieldPtrArray& text_field) const;
546 };
547 
552 
553 }
554 #endif // _PDF_PUBLISH_ANNOTATION_INCLUDED_
555 
#define ODCOLORREF
Definition: OdPlatform.h:883
unsigned short OdUInt16
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
void getBackgroundColor(ODCOLORREF &color) const
void setInteractivity(bool state)
void setSource(const OdCADModelPtr &cad_model)
void getName(OdString &name) const
void getPRCBRepRemoval(bool &state) const
void getTransparentBackground(bool &state) const
void getLighting(Lighting::Mode &mode) const
void setName(const OdString &name)
ODRX_DECLARE_MEMBERS(OdAnnotation)
void setPRCAttributeRemoval(bool state)
void getPartsList(OdStringArray &node_names, OdRect &location, OdStringArray &headers, OdDoubleArray &columns, OdTextFieldPtr text_style, OdTextFieldPtr header_style) const
void getViewListField(OdString &field) const
void getPRCAttributeRemoval(bool &state) const
void setPRCBRepCompression(PRC::BRepCompression level)
void getToolbarVisibility(bool &state) const
void setBorderWidth(OdUInt16 width)
void setRendering(Rendering::Mode mode)
void getSource(OdCADModelPtr &cad_model) const
void setPosterImage(const OdImagePtr &image)
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 getRendering(Rendering::Mode &mode) const
void setLighting(Lighting::Mode mode)
void setDeactivation(Deactivation::When when)
void setCarouselViews(const OdUInt32Array &indices, const OdImagePtrArray &images)
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 setArtwork(const OdArtworkPtr &artwork)
void getDeactivation(Deactivation::When &when) const
void setPRCBRepRemoval(bool state)
void setViewList(const OdRect &location, const OdListBoxPtr &list)
void getBorderWidth(OdUInt16 &width) const
void setPRCTessellationCompression(bool state)
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 getPRCBRepCompression(PRC::BRepCompression &level) const
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 getPRCTessellationCompression(bool &state) const
void getCarouselViews(OdUInt32Array &indices, OdImagePtrArray &images) const
void setBackgroundColor(ODCOLORREF color)
GLint level
Definition: gles2_ext.h:110
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLint location
Definition: gles2_ext.h:284
SMARTPTR(OdFile)