CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishWatermark.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// PdfPublishWatermark.h
28//
30
31#ifndef _PDF_PUBLISH_WATERMARK_INCLUDED_
32#define _PDF_PUBLISH_WATERMARK_INCLUDED_
33
34#include "PdfPublishText.h"
35#include "PdfPublishImage.h"
36#include "DoubleArray.h"
37
42namespace OdPdfPublish{
43
47class PDFPUBLISH_TOOLKIT OdWatermark : public OdObject
48{
49 //DOM-IGNORE-BEGIN
50protected:
52 //DOM-IGNORE-END
53public:
54 //DOM-IGNORE-BEGIN
57 //DOM-IGNORE-END
58
62 virtual ~OdWatermark();
63
70 void setSize(const OdUInt32 width, const OdUInt32 height);
71
78 void setOpacity(const OdUInt8& value);
79
92 void addText(const OdTextPtr& text, const OdRect& location, const double rotation = 0.);
93
104 void addImage(const OdImagePtr& image, const OdRect& location, const double rotation = 0.);
105
114
123
135 void getTexts(OdTextPtrArray& texts, OdRectArray& locations, OdDoubleArray& rotations) const;
136
148 void getImages(OdImagePtrArray& images, OdRectArray& locations, OdDoubleArray& rotations) const;
149
150};
151
156
157}
158#endif // _PDF_PUBLISH_WATERMARK_INCLUDED_
159
OdArray< OdDouble, OdMemoryAllocator< OdDouble > > OdDoubleArray
Definition DoubleArray.h:36
#define SMARTPTR(classname)
Definition IfcCommon.h:33
unsigned int OdUInt32
unsigned char OdUInt8
#define PDFPUBLISH_TOOLKIT
void getTexts(OdTextPtrArray &texts, OdRectArray &locations, OdDoubleArray &rotations) const
void setSize(const OdUInt32 width, const OdUInt32 height)
void addText(const OdTextPtr &text, const OdRect &location, const double rotation=0.)
ODRX_DECLARE_MEMBERS(OdWatermark)
void getOpacity(OdUInt8 &value) const
void setOpacity(const OdUInt8 &value)
void getImages(OdImagePtrArray &images, OdRectArray &locations, OdDoubleArray &rotations) const
void getSize(OdUInt32 &width, OdUInt32 &height) const
void addImage(const OdImagePtr &image, const OdRect &location, const double rotation=0.)
GLint GLenum GLsizei width
Definition gles2_ext.h:110
GLint location
Definition gles2_ext.h:284
GLint GLenum GLsizei GLsizei height
Definition gles2_ext.h:110
GLsizei const GLfloat * value
Definition gles2_ext.h:302
OdArray< OdRect > OdRectArray