Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
idombrush.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007-2025 Global Graphics Software Ltd. All rights reserved.
3*/
4
5#ifndef EDLIDOMBRUSH_H
6#define EDLIDOMBRUSH_H
7
14
15#include <edl/edlnamespaces.h>
16#include <edl/idomnode.h>
17#include <edl/idomhashable.h>
18#include <edl/edlfwd.h>
20
21#include <edl/edltypes.h>
22#include <edl/idomnode.h>
23#include <edl/iedlenum.h>
24#include <edl/idomcolor.h>
25#include <edl/idomfunction.h>
27#include <edl/idomgroup.h>
28
30
53class IDOMBrush : public IEDLObject
54{
55 public:
77
82 virtual eBrushType getBrushType() const = 0;
83
93 virtual float getOpacity() const = 0;
94
99 virtual void setOpacity(float opc) = 0;
100
117 virtual IDOMBrushPtr getAdjustedForUseInTransformedNode(IEDLClassFactory *pFactory, const FMatrix &nodeTransform);
118};
119#define edlobj2IDOMBrush(src) edl_cast((IDOMBrush *)NULL, src)
120
134{
135 public:
140 virtual const FMatrix &getRenderTransform() const = 0;
141
146 virtual void setRenderTransform(const FMatrix &matrix) = 0;
147};
148#define edlobj2IDOMTransformableBrush(src) edl_cast((IDOMTransformableBrush *)NULL, src)
150
168{
169#define IDOMGradientStopClassID 0x5c788994, 0xc0bb4387, 0x96ff4086, 0x874b16db
170 public:
171
180 static EDL_API IDOMGradientStopPtr create(IEDLClassFactory *pFactory, const IDOMColorPtr &color, double offset);
181
186 class Data : public CClassParams
187 {
188 public:
189 double offset;
190 IDOMColorPtr color;
191 };
192
197 static const CClassID &classID()
198 {
200 return id;
201 };
202
208 virtual IDOMColorPtr getColor() const = 0;
209
214 virtual void setColor(const IDOMColorPtr &color) = 0;
215
220 virtual double getOffset() const = 0;
221
226 virtual void setOffset(double offset) = 0;
227
228};
229#define edlobj2IDOMGradientStop(src) edl_cast((IDOMGradientStop *)NULL, src)
231
232
240{
241#define IDOMSolidColorBrushClassID 0x9dc4c01e, 0x8fe545f7, 0xa51b15c6, 0xed751103
242 public:
243
252 static EDL_API IDOMSolidColorBrushPtr create(IEDLClassFactory *pFactory, const IDOMColorPtr &color, float opacity = 1.0f);
253
261 static IDOMSolidColorBrushPtr createSolidGray(IEDLClassFactory *pFactory, float gray = 0.0f)
262 {
263 return IDOMSolidColorBrush::create(pFactory, IDOMColor::createSolidGray(pFactory, gray));
264 }
265
275 static IDOMSolidColorBrushPtr createSolidRgb(IEDLClassFactory *pFactory, float r = 0.0f, float g = 0.0f, float b = 0.0f)
276 {
277 return IDOMSolidColorBrush::create(pFactory, IDOMColor::createSolidRgb(pFactory, r, g, b));
278 }
279
290 static IDOMSolidColorBrushPtr createSolidCmyk(IEDLClassFactory *pFactory, float c = 0.0f, float m = 0.0f, float y = 0.0f, float k = 0.0f)
291 {
292 return IDOMSolidColorBrush::create(pFactory, IDOMColor::createSolidCmyk(pFactory, c, m, y, k));
293 }
294
336 static EDL_API IDOMSolidColorBrushPtr createWithSpaceAndComponents(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &space, double opacity,
337 double component1, double component2 = 0.0, double component3 = 0.0, double component4 = 0.0, double component5 = 0.0,
338 double component6 = 0.0, double component7 = 0.0, double component8 = 0.0, double component9 = 0.0, double component10 = 0.0,
339 double component11 = 0.0, double component12 = 0.0, double component13 = 0.0, double component14 = 0.0, double component15 = 0.0,
340 double component16 = 0.0, double component17 = 0.0, double component18 = 0.0, double component19 = 0.0, double component20 = 0.0,
341 double component21 = 0.0, double component22 = 0.0, double component23 = 0.0, double component24 = 0.0, double component25 = 0.0,
342 double component26 = 0.0, double component27 = 0.0, double component28 = 0.0, double component29 = 0.0, double component30 = 0.0,
343 double component31 = 0.0, double component32 = 0.0
344 );
345
356 static EDL_API IDOMSolidColorBrushPtr createWithSpaceAndComponentsFromVect(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &space, float opacity, const CEDLVector<float> &components);
357
358#ifdef SWIG
359#if SWIGJAVA
360 %apply float[] { const float *components };
361#endif
362#if SWIGCSHARP
363 %apply float INPUT[] { const float *components };
364#endif
365#endif
376 static EDL_API IDOMSolidColorBrushPtr createWithSpaceAndComponentsFromArray(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &space, float opacity, const float *components);
377#ifdef SWIG
378 %clear const float *components;
379#endif
380
385 class Data : public CClassParams
386 {
387 public:
388 Data(): opacity(1.0)
389 {}
390 float opacity;
391 IDOMColorPtr color;
392 };
393
398 static const CClassID &classID()
399 {
401 return id;
402 };
403
408 virtual IDOMColorPtr getColor() const = 0;
409
414 virtual void setColor(const IDOMColorPtr &color) = 0;
415
416};
417#define edlobj2IDOMSolidColorBrush(src) edl_cast((IDOMSolidColorBrush *)NULL, src)
418
419
430
443
451{
452 public:
462
472
481 virtual eSpreadMethod getSpreadMethod() const = 0;
482
490 virtual void setSpreadMethod(eSpreadMethod sm) = 0;
491
497 virtual void setGradientStops(const CDOMGradientStopVect &stops) = 0;
498
505 virtual const CDOMGradientStopVect &getGradientStops() const = 0;
506
512 virtual void addGradientStop(const IDOMGradientStopPtr &ptrGradientStop) = 0;
513
525 virtual void normalizeStops(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &ptrColorSpace = IDOMColorSpacePtr(),
527};
529#define edlobj2IDOMGradientBrush(src) edl_cast((IDOMGradientBrush *)NULL, src)
530
537{
538#define IDOMLinearGradientBrushClassID 0x59493763, 0x87084cf5, 0x8033bfd1, 0x0740e0f2
539 public:
540
554 static EDL_API IDOMLinearGradientBrushPtr create(IEDLClassFactory *pFactory,
555 const FPoint &startPoint, const FPoint &endPoint,
556 const CDOMGradientStopVect &stops, float opacity = 1.0f,
557 const FMatrix &renderTransform = FMatrix(),
558 eSpreadMethod spreadMethod = eNoSpread,
559 eColorInterpolationMode colorInterpolationMode = eSRgbLinearInterpolation);
560
578
583 static const CClassID &classID()
584 {
586 return id;
587 };
588
593 virtual const FPoint &getStartPoint() const = 0;
594
599 virtual void setStartPoint(const FPoint &pt) = 0;
600
605 virtual const FPoint &getEndPoint() const = 0;
606
611 virtual void setEndPoint(const FPoint &pt) = 0;
612
630 virtual IDOMShadingPatternType2BrushPtr createShading(IEDLClassFactory *pFactory,
631 bool ignoreSpreadMethod,
632 bool useFirstStopColorSpace) = 0;
633
645 virtual IDOMBrushPtr createPdfBrush(IEDLClassFactory *pFactory, bool useFirstStopColorSpace = false) = 0;
646};
647#define edlobj2IDOMLinearGradientBrush(src) edl_cast((IDOMLinearGradientBrush *)NULL, src)
648
649
661{
662#define IDOMRadialGradientBrushClassID 0xfd36410b, 0x387f4656, 0x9c2c276f, 0xcba05c91
663 public:
664
680 static EDL_API IDOMRadialGradientBrushPtr create(IEDLClassFactory *pFactory,
681 const FPoint &center, const FPoint &gradientOrigin,
682 double radiusX, double radiusY,
683 const CDOMGradientStopVect &stops, float opacity = 1.0f,
684 const FMatrix &renderTransform = FMatrix(),
685 eSpreadMethod spreadMethod = eNoSpread,
686 eColorInterpolationMode colorInterpolationMode = eSRgbLinearInterpolation);
687
708
712 static const CClassID &classID()
713 {
715 return id;
716 };
717
718
723 virtual const FPoint &getCenter() const = 0;
724
729 virtual void setCenter(const FPoint &pt) = 0;
730
735 virtual const FPoint &getGradientOrigin() const = 0;
736
741 virtual void setGradientOrigin(const FPoint &pt) = 0;
742
747 virtual double getRadiusX() const = 0;
748
753 virtual void setRadiusX(double r) = 0;
754
759 virtual double getRadiusY() const = 0;
760
765 virtual void setRadiusY(double r) = 0;
766
779 virtual IDOMShadingPatternType3BrushPtr createShading(IEDLClassFactory *pFactory, const FRect &fillArea, bool useFirstStopColorSpace = false) = 0;
780
792 virtual IDOMRadialGradientBrushPtr getSimplifiedGradient(IEDLClassFactory *pFactory, const FRect &fillArea) = 0;
793
794};
795#define edlobj2IDOMRadialGradientBrush(src) edl_cast((IDOMRadialGradientBrush *)NULL, src)
796
797
803typedef enum
804{
806} eViewUnits;
807
823
824
834{
835#define IDOMImageBrushClassID 0xebe9f8fd, 0xc5c34d21, 0xae76465a, 0x4b4e64a0
836 public:
837
854 static EDL_API IDOMImageBrushPtr create(IEDLClassFactory *pFactory,
855 const IDOMImagePtr &image,
856 const FRect &viewBox, const FRect &viewPort,
857 const FMatrix &renderTransform = FMatrix(),
858 float opacity = 1.0f,
859 eTilingMode tileMode = eNoTile,
860 const CDOMAlternateImageVect &alternateImages = CDOMAlternateImageVect(),
861 const JawsMako::IOptionalContentDetailsPtr &optionalContentDetails = JawsMako::IOptionalContentDetailsPtr(),
862 const JawsMako::IPDFDictionaryPtr &propertiesDictionary = JawsMako::IPDFDictionaryPtr());
863
887
891 static const CClassID &classID()
892 {
894 return id;
895 };
896
902 virtual eTilingMode getTileMode() const = 0;
903
908 virtual void setTileMode(eTilingMode tm) = 0;
909
916 virtual eViewUnits getViewBoxUnits() const = 0;
917
924 virtual void setViewBoxUnits(eViewUnits vu) = 0;
925
932 virtual eViewUnits getViewPortUnits() const = 0;
933
940 virtual void setViewPortUnits(eViewUnits vu) = 0;
941
953 virtual const FRect &getViewBox() const = 0;
954
965 virtual void setViewBox(const FRect &vb) = 0;
966
976 virtual const FRect &getViewPort() const = 0;
977
987 virtual void setViewPort(const FRect &vp) = 0;
988
993 virtual IDOMICCProfilePtr getICCProfile() const = 0;
994
999 virtual void setICCProfile(const IDOMICCProfilePtr &icc) = 0;
1000
1005 virtual IDOMImagePtr getImageSource() const = 0;
1006
1011 virtual void setImageSource(const IDOMImagePtr &ptrImageSource) = 0;
1012
1018
1023 virtual void setAlternateImages(const CDOMAlternateImageVect &alternates) = 0;
1024
1029 virtual JawsMako::IOptionalContentDetailsPtr getOptionalContentDetails() const = 0;
1030
1035 virtual void setOptionalContentDetails(const JawsMako::IOptionalContentDetailsPtr &details) = 0;
1036
1062 virtual JawsMako::IPDFDictionaryPtr getPdfPropertiesDictionary() const = 0;
1063
1070 virtual void setPdfPropertiesDictionary(const JawsMako::IPDFDictionaryPtr &propertiesDictionary) = 0;
1071
1079 virtual IDOMTilingPatternBrushPtr getEquivalentTilingBrush(IEDLClassFactory *pFactory) = 0;
1080
1091 virtual IDOMVisualBrushPtr getEquivalentVisualBrush(IEDLClassFactory *pFactory) = 0;
1092};
1093#define edlobj2IDOMImageBrush(src) edl_cast((IDOMImageBrush *)NULL, src)
1094
1106{
1107#define IDOMMaskedBrushClassID 0x8EC7F5C6, 0xC56049d1, 0x9E2864EB, 0x0E7A90A6
1108 public:
1109
1126 static EDL_API IDOMMaskedBrushPtr create(IEDLClassFactory *pFactory,
1127 const IDOMImagePtr &mask,
1128 const IDOMBrushPtr &brush,
1129 const FRect &viewBox, const FRect &viewPort,
1130 const FMatrix &renderTransform = FMatrix(),
1131 float opacity = 1.0f,
1132 const CDOMAlternateImageVect &alternateImages = CDOMAlternateImageVect(),
1133 const JawsMako::IOptionalContentDetailsPtr &optionalContentDetails =
1134 JawsMako::IOptionalContentDetailsPtr(),
1135 const JawsMako::IPDFDictionaryPtr &propertiesDictionary = JawsMako::IPDFDictionaryPtr());
1136
1159
1163 static const CClassID &classID()
1164 {
1166 return id;
1167 };
1168
1173 virtual IDOMBrushPtr getBrush () const = 0;
1174
1179 virtual void setBrush (const IDOMBrushPtr &brush) = 0;
1180
1188 virtual bool getIsSoftMask(IEDLClassFactory *pFactory) = 0;
1189
1202 virtual IDOMBrushPtr getEquivalentXPSBrush(IEDLClassFactory *pFactory, const FRect &enclosedBounds) = 0;
1203
1215 virtual IDOMImageBrushPtr getSimpleImageBrush(IEDLClassFactory *pFactory) = 0;
1216
1217};
1218#define edlobj2IDOMMaskedBrush(src) edl_cast((IDOMMaskedBrush *)NULL, src)
1219
1233{
1234#define IDOMVisualBrushClassID 0xa811d50a, 0xfebd4be7, 0xa3901ac9, 0x0bd52265
1235 public:
1236
1249 static EDL_API IDOMVisualBrushPtr create(IEDLClassFactory *pFactory,
1250 const IDOMNodePtr &visual,
1251 const FRect &viewBox, const FRect &viewPort,
1252 const FMatrix &renderTransform = FMatrix(),
1253 float opacity = 1.0f,
1254 eTilingMode tileMode = eNoTile);
1255
1275
1280 static const CClassID &classID()
1281 {
1283 return id;
1284 };
1285
1291 virtual eTilingMode getTileMode() const = 0;
1292
1298 virtual void setTileMode(eTilingMode tm) = 0;
1299
1306 virtual eViewUnits getViewBoxUnits() const = 0;
1307
1314 virtual void setViewBoxUnits(eViewUnits vu) = 0;
1315
1322 virtual eViewUnits getViewPortUnits() const = 0;
1323
1330 virtual void setViewPortUnits(eViewUnits vu) = 0;
1331
1343 virtual const FRect &getViewBox() const = 0;
1344
1355 virtual void setViewBox(const FRect &vb) = 0;
1356
1366 virtual const FRect &getViewPort() const = 0;
1367
1377 virtual void setViewPort(const FRect &vp) = 0;
1378
1383 virtual IDOMNodePtr getVisual() const = 0;
1384
1389 virtual void setVisual(const IDOMNodePtr &ptrVisual) = 0;
1390
1398 virtual IDOMTilingPatternBrushPtr getEquivalentTilingBrush(IEDLClassFactory *pFactory) = 0;
1399
1407 virtual IDOMVisualBrushPtr getEquivalentSimpleVisualBrush(IEDLClassFactory *pFactory) = 0;
1408};
1409
1410#define edlobj2IDOMVisualBrush(src) edl_cast((IDOMVisualBrush *)NULL, src)
1411
1412
1419{
1420#define IDOMVisualRootClassID 0x2309ff5c, 0x29c64c63, 0xbf58de4d, 0x7819ee02
1421 public:
1422
1427 static const CClassID &classID()
1428 {
1430 return id;
1431 }
1432
1433};
1434#define edlobj2IDOMVisualRoot(src) edl_cast((IDOMVisualRoot *)NULL, src)
1435
1436
1447{
1448#define IDOMSoftMaskBrushClassID 0x27315fbf, 0x8f3246a9, 0x929eb580, 0x13f7955d
1449 public:
1453 typedef enum
1454 {
1457 } eSoftMaskType;
1458
1471 static EDL_API IDOMSoftMaskBrushPtr create(IEDLClassFactory *pFactory,
1472 const IDOMTransparencyGroupPtr &group,
1473 eSoftMaskType type,
1474 const FMatrix &renderTransform = FMatrix(),
1475 const IDOMColorPtr &backdropColor = IDOMColorPtr(),
1476 const IDOMFunctionPtr &transfer = IDOMFunctionPtr());
1477
1482 class Data : public CClassParams
1483 {
1484 public:
1486 {
1487 }
1489 float opacity;
1490 IDOMTransparencyGroupPtr group;
1491 IDOMColorPtr backdropColor;
1492 IDOMFunctionPtr transfer;
1494 };
1495
1500 static const CClassID &classID()
1501 {
1503 return id;
1504 };
1505
1510 virtual eSoftMaskType getSoftMaskType() const = 0;
1511
1516 virtual IDOMTransparencyGroupPtr getGroup() const = 0;
1517
1522 virtual IDOMColorPtr getBackdropColor() const = 0;
1523
1528 virtual IDOMFunctionPtr getTransferFunction() const = 0;
1529
1530};
1531
1532#define edlobj2IDOMSoftMaskBrush(src) edl_cast((IDOMSoftMaskBrush *)NULL, src)
1533
1534
1541{
1542#define IDOMTilingPatternBrushClassID 0xE987B191, 0x552840e1, 0xAFA8EC97, 0x2C6EE3DC
1543 public:
1544
1561 static EDL_API IDOMTilingPatternBrushPtr create(IEDLClassFactory *pFactory,
1562 const IDOMNodePtr &visual, const FRect &bBox,
1563 uint8 paintType, const IDOMColorPtr &color,
1564 float xStep, float yStep,
1565 uint8 tilingType = 1,
1566 const FMatrix &renderTransform = FMatrix());
1567
1572 class Data : public CClassParams
1573 {
1574 public:
1576 {
1577 opacity = 1.0f;
1578 paintType = 0;
1579 patternType = 1;
1580 tilingType = 1;
1581 opacity = 1.0f;
1582 bBox = FBox(0.0, 0.0, 1.0, 1.0);
1583 xstep = 1;
1584 ystep = 1;
1586 }
1587 float opacity;
1590 float xstep;
1591 float ystep;
1595
1596 /* for uncolored patterns, these are the color to use for the
1597 * specific invocation of setpattern
1598 */
1599 IDOMColorPtr patternColor;
1600
1601 IDOMNodePtr visual;
1602 };
1603
1608 static const CClassID &classID()
1609 {
1611 return id;
1612 };
1613
1618 virtual uint8 getPatternType () const = 0;
1619
1624 virtual const FBox &getBBox () const = 0;
1625
1630 virtual void setBBox (const FBox &bBox) = 0;
1631
1632#ifdef SWIG
1633 %apply float &OUTPUT { float &xstep };
1634 %apply float &OUTPUT { float &ystep };
1635#endif
1641 virtual void getTilingStep (float &xstep, float &ystep) const = 0;
1642#ifdef SWIG
1643 %clear float &xstep;
1644 %clear float &ystep;
1645#endif
1646
1652 virtual void setTilingStep (float xstep, float ystep) = 0;
1653
1658 virtual void setPaintType (uint8 paintType) = 0;
1659
1664 virtual uint8 getPaintType () const = 0;
1665
1670 virtual void setTilingType (uint8 tilingType) = 0;
1671
1676 virtual uint8 getTilingType () const = 0;
1677
1682 virtual void setPatternColor (const IDOMColorPtr &color) = 0;
1683
1688 virtual IDOMColorPtr getPatternColor () const = 0;
1689
1694 virtual IDOMNodePtr getVisual() const = 0;
1695
1700 virtual void setVisual(const IDOMNodePtr &ptrVisual) = 0;
1701
1709 virtual IDOMVisualBrushPtr getEquivalentVisualBrush(IEDLClassFactory *pFactory) = 0;
1710
1723 virtual IDOMTilingPatternBrushPtr getColoredTilingPatternBrush(IEDLClassFactory *pFactory,
1724 bool overprint = false) = 0;
1725
1726};
1727#define edlobj2IDOMTilingPatternBrush(src) edl_cast((IDOMTilingPatternBrush *)NULL, src)
1728
1729
1736{
1737 public:
1738
1743 virtual uint8 getShadingType () const = 0;
1744
1750 virtual bool getBBox (FBox &bBox) const = 0;
1751
1756 virtual void setBBox (const FBox &bBox) = 0;
1757
1762 virtual void setBackgroundColor (const IDOMColorPtr &color) = 0;
1763
1770 virtual IDOMColorPtr getBackgroundColor () const = 0;
1771
1776 virtual void setColorSpace (const IDOMColorSpacePtr &colorSpace) = 0;
1777
1782 virtual IDOMColorSpacePtr getColorSpace () const = 0;
1783
1795 virtual void setColorSpace (IEDLClassFactory *pFactory, const IDOMColorSpacePtr &colorSpace, eRenderingIntent intent, eBlackPointCompensation bpc) = 0;
1796
1801 virtual void deIndex (IEDLClassFactory *pFactory) = 0;
1802
1807 virtual void setAntiAlias (bool antiAlias) = 0;
1808
1813 virtual bool getAntiAlias () const = 0;
1814
1819 virtual void setFunction (const IDOMFunctionPtr &function) = 0;
1820
1825 virtual IDOMFunctionPtr getFunction () const = 0;
1826
1827};
1828#define edlobj2IDOMShadingPatternBrush(src) edl_cast((IDOMShadingPatternBrush *)NULL, src)
1829
1830
1836
1838{
1839#define IDOMShadingPatternType1BrushClassID 0x599BD13A, 0xB5B74368, 0xA728CDF8, 0x621F8CC0
1840 public:
1841
1842#ifdef SWIG
1843#if SWIGJAVA
1844 %apply float[] { float domain[4] };
1845#endif
1846#if SWIGCSHARP
1847 %apply float INPUT[] { float domain[4] };
1848#endif
1849#endif
1866 static EDL_API IDOMShadingPatternType1BrushPtr create(IEDLClassFactory *pFactory,
1867 const IDOMColorSpacePtr &colorSpace,
1868 float domain[4],
1869 const IDOMFunctionPtr &function,
1870 bool hasBBox = false,
1871 const FBox &bBox = FBox(),
1872 const IDOMColorPtr &background = IDOMColorPtr(),
1873 const FMatrix &matrix = FMatrix(),
1874 const FMatrix &renderTransform = FMatrix(),
1875 bool antiAlias = false,
1876 float opacity = 1.0f);
1877#ifdef SWIG
1878 %clear float domain[4];
1879#endif
1880
1885 class Data : public CClassParams
1886 {
1887 public:
1889 {
1890 opacity = 1.0f;
1891 shadingType = 1;
1892 antiAlias = false;
1893 hasBBox = false;
1894
1895 bBox = FBox();
1896
1897 domain [0] = 0.0;
1898 domain [1] = 1.0;
1899 domain [2] = 0.0;
1900 domain [3] = 1.0;
1901
1902 function = NULL;
1903 }
1904
1905 /* common to all shading types */
1906 float opacity;
1911 IDOMColorSpacePtr colorSpace;
1912 IDOMColorPtr background;
1914
1915
1916 /* type 1 info */
1917 float domain [4];
1919 IDOMFunctionPtr function;
1920 };
1921
1926 static const CClassID &classID()
1927 {
1929 return id;
1930 };
1931
1932#ifdef SWIG
1933#if SWIGJAVA
1934 %apply float[] { float domain[4] };
1935#endif
1936#if SWIGCSHARP
1937 %apply float INPUT[] { float domain[4] };
1938#endif
1939#endif
1944 virtual void setDomain (float domain[4]) = 0;
1945#ifdef SWIG
1946 %clear float domain[4];
1947#endif
1948
1953 virtual const float *getDomain () const = 0;
1954
1959 virtual void setMatrix (const FMatrix &matrix) = 0;
1960
1965 virtual const FMatrix &getMatrix () = 0;
1966};
1967#define edlobj2IDOMShadingPatternType1Brush(src) edl_cast((IDOMShadingPatternType1Brush *)NULL, src)
1968
1969
1976{
1977#define IDOMShadingPatternType2BrushClassID 0xDDD7C873, 0x2C0045b6, 0xB67E54BE, 0x04AD6190
1978 public:
1979
1980#ifdef SWIG
1981#if SWIGJAVA
1982 %apply float[] { float domain[2] };
1983#endif
1984#if SWIGCSHARP
1985 %apply float INPUT[] { float domain[2] };
1986#endif
1987#endif
2007 static EDL_API IDOMShadingPatternType2BrushPtr create(IEDLClassFactory *pFactory,
2008 const FPoint &startPoint,
2009 const FPoint &endPoint,
2010 const IDOMColorSpacePtr &colorSpace,
2011 float domain[2],
2012 const IDOMFunctionPtr &function,
2013 bool extendStart = false,
2014 bool extendEnd = false,
2015 bool hasBBox = false,
2016 const FBox &bBox = FBox(),
2017 const IDOMColorPtr &background = IDOMColorPtr(),
2018 const FMatrix &renderTransform = FMatrix(),
2019 bool antiAlias = false,
2020 float opacity = 1.0f);
2021#ifdef SWIG
2022 %clear float domain[2];
2023#endif
2024
2029 class Data : public CClassParams
2030 {
2031 public:
2033 {
2034 opacity = 1.0f;
2035 shadingType = 2;
2036 antiAlias = false;
2037 hasBBox = false;
2038
2039 bBox = FBox();
2040
2041 startPoint = FPoint();
2042 endPoint = FPoint();
2043
2044 domain [0] = 0.0;
2045 domain [1] = 1.0;
2046
2047 function = NULL;
2048
2049 extend [0] = false;
2050 extend [1] = false;
2051 }
2052
2053 /* common to all shading types */
2054 float opacity;
2059 IDOMColorSpacePtr colorSpace;
2060 IDOMColorPtr background;
2062
2063 /* type 2 info */
2066 float domain [2];
2067 IDOMFunctionPtr function;
2068 bool extend [2];
2069 };
2070
2075 static const CClassID &classID()
2076 {
2078 return id;
2079 };
2080
2081#ifdef SWIG
2082#if SWIGJAVA
2083 %apply float[] { float domain[2] };
2084#endif
2085#if SWIGCSHARP
2086 %apply float INPUT[] { float domain[2] };
2087#endif
2088#endif
2093 virtual void setDomain (float domain[2]) = 0;
2094#ifdef SWIG
2095 %clear float domain[2];
2096#endif
2097
2102 virtual const float *getDomain () const = 0;
2103
2108 virtual void setStartPoint (const FPoint &point) = 0;
2109
2114 virtual const FPoint &getStartPoint () const = 0;
2115
2120 virtual void setEndPoint (const FPoint &point) = 0;
2121
2126 virtual const FPoint &getEndPoint () const = 0;
2127
2134 virtual void setExtend (bool extendStart, bool extendEnd) = 0;
2135
2136#ifdef SWIG
2137 %apply bool &OUTPUT { bool &extendStart };
2138 %apply bool &OUTPUT { bool &extendEnd };
2139#endif
2146 virtual void getExtend (bool &extendStart, bool &extendEnd) const = 0;
2147#ifdef SWIG
2148 %clear bool &extendStart;
2149 %clear bool &extendEnd;
2150#endif
2151
2163 virtual IDOMBrushPtr getEquivalentSimpleBrush(IEDLClassFactory *pFactory, uint32 maxSamples = 255) = 0;
2164};
2165
2166#define edlobj2IDOMShadingPatternType2Brush(src) edl_cast((IDOMShadingPatternType2Brush *)NULL, src)
2167
2168
2174
2176{
2177#define IDOMShadingPatternType3BrushClassID 0x383008FE, 0xB7D64314, 0x9B715287, 0xA57ACBDA
2178 public:
2179
2180#ifdef SWIG
2181#if SWIGJAVA
2182 %apply float[] { float domain[2] };
2183#endif
2184#if SWIGCSHARP
2185 %apply float INPUT[] { float domain[2] };
2186#endif
2187#endif
2209 static EDL_API IDOMShadingPatternType3BrushPtr create(IEDLClassFactory *pFactory,
2210 const FPoint &startCircleCenter,
2211 float startCircleRadius,
2212 const FPoint &endCircleCenter,
2213 float endCircleRadius,
2214 const IDOMColorSpacePtr &colorSpace,
2215 float domain[2],
2216 const IDOMFunctionPtr &function,
2217 bool extendStart = false,
2218 bool extendEnd = false,
2219 bool hasBBox = false,
2220 const FBox &bBox = FBox(),
2221 const IDOMColorPtr &background = IDOMColorPtr(),
2222 const FMatrix &renderTransform = FMatrix(),
2223 bool antiAlias = false,
2224 float opacity = 1.0f);
2225#ifdef SWIG
2226 %clear float domain[2];
2227#endif
2232 class Data : public CClassParams
2233 {
2234 public:
2236 {
2237 opacity = 1.0f;
2238 shadingType = 3;
2239 antiAlias = false;
2240 hasBBox = false;
2241
2242 bBox = FBox();
2243
2245 startCircleRadius = 0.0f;
2247 endCircleRadius = 0.0f;
2248
2249 domain [0] = 0.0;
2250 domain [1] = 1.0;
2251
2252 function = NULL;
2253
2254 extend [0] = false;
2255 extend [1] = false;
2256 }
2257
2258 /* common to all shading types */
2259 float opacity;
2264 IDOMColorSpacePtr colorSpace;
2265 IDOMColorPtr background;
2267
2268
2269 /* type 3 info */
2274 float domain [2];
2275 IDOMFunctionPtr function;
2276 bool extend [2];
2277 };
2278
2283 static const CClassID &classID()
2284 {
2286 return id;
2287 };
2288
2289#ifdef SWIG
2290#if SWIGJAVA
2291 %apply float[] { float domain[2] };
2292#endif
2293#if SWIGCSHARP
2294 %apply float INPUT[] { float domain[2] };
2295#endif
2296#endif
2301 virtual void setDomain (float domain[2]) = 0;
2302#ifdef SWIG
2303 %clear float domain[2];
2304#endif
2305
2310 virtual const float *getDomain () const = 0;
2311
2316 virtual void setStartCircleCenter (const FPoint &point) = 0;
2317
2322 virtual const FPoint &getStartCircleCenter () const = 0;
2323
2328 virtual void setStartCircleRadius(float radius) = 0;
2329
2334 virtual float getStartCircleRadius() const = 0;
2335
2340 virtual void setEndCircleCenter (const FPoint &point) = 0;
2341
2346 virtual const FPoint &getEndCircleCenter () const = 0;
2347
2352 virtual void setEndCircleRadius(float radius) = 0;
2353
2358 virtual float getEndCircleRadius() const = 0;
2359
2366 virtual void setExtend (bool extendStart, bool extendEnd) = 0;
2367
2368#ifdef SWIG
2369 %apply bool &OUTPUT { bool &extendStart };
2370 %apply bool &OUTPUT { bool &extendEnd };
2371#endif
2378 virtual void getExtend (bool &extendStart, bool &extendEnd) const = 0;
2379#ifdef SWIG
2380 %clear bool &extendStart;
2381 %clear bool &extendEnd;
2382#endif
2383
2396 virtual IDOMBrushPtr getEquivalentSimpleBrush(IEDLClassFactory *pFactory, uint32 maxSamples = 255) = 0;
2397};
2398
2399#define edlobj2IDOMShadingPatternType3Brush(src) edl_cast((IDOMShadingPatternType3Brush *)NULL, src)
2400
2401
2407
2409{
2410#define IDOMShadingPatternType4567BrushClassID 0x7204F554, 0x95984d30, 0xA090074B, 0xC03337EE
2411 public:
2412
2436 static EDL_API IDOMShadingPatternType4567BrushPtr create(IEDLClassFactory *pFactory,
2437 uint8 shadingType,
2438 const IDOMColorSpacePtr &colorSpace,
2439 const JawsMako::IPDFStringPtr &dataSource,
2440 const uint8 bitsPerCoordinate = 0,
2441 const uint8 bitsPerComponent = 0,
2442 const uint8 bitsPerFlag = 0,
2443 const int32 verticesPerRow = 0,
2444 const CEDLVector<float> &decode = CEDLVector<float>(),
2445 const IDOMFunctionPtr &function = IDOMFunctionPtr(),
2446 bool hasBBox = false,
2447 const FBox &bBox = FBox(),
2448 const IDOMColorPtr &background = IDOMColorPtr(),
2449 const FMatrix &renderTransform = FMatrix(),
2450 bool antiAlias = false,
2451 float opacity = 1.0f);
2452
2473
2501 static EDL_API IDOMShadingPatternType4567BrushPtr create(IEDLClassFactory *pFactory,
2502 uint8 shadingType,
2503 const IDOMColorSpacePtr &colorSpace,
2504 const IDOMFunctionPtr &function,
2505 const CMeshEntryVect &meshEntries,
2506 const uint8 bitsPerCoordinate = 16,
2507 const uint8 bitsPerComponent = 8,
2508 const uint8 bitsPerFlag = 8,
2509 const int32 verticesPerRow = 0,
2510 const CEDLVector<float> &decode = CEDLVector<float>(),
2511 bool hasBBox = false,
2512 const FBox &bBox = FBox(),
2513 const IDOMColorPtr &background = IDOMColorPtr(),
2514 const FMatrix &renderTransform = FMatrix(),
2515 bool antiAlias = false,
2516 float opacity = 1.0f);
2517
2522 class Data : public CClassParams
2523 {
2524 public:
2526 {
2527 opacity = 1.0f;
2528 shadingType = 4;
2529 antiAlias = false;
2530 hasBBox = false;
2531
2532 bBox = FBox();
2533
2535 bitsPerFlag = 0;
2536 bitsPerComponent = 0;
2537 verticesPerRow = 0;
2538 decode.resize(0);
2539 function = NULL;
2540 dataSource = NULL;
2541 }
2542
2543 virtual ~Data()
2544 {
2545 }
2546
2547 /* common to all shading types */
2548 float opacity;
2553 IDOMColorSpacePtr colorSpace;
2554 IDOMColorPtr background;
2556
2557 /* type 4, 5, 6, 7 info */
2562 JawsMako::IPDFStringPtr dataSource;
2564 IDOMFunctionPtr function;
2565 };
2566
2571 static const CClassID &classID()
2572 {
2574 return id;
2575 };
2576
2581 virtual void setShadingType (uint8 shadingType) = 0;
2582
2587 virtual void setDataSource (const JawsMako::IPDFStringPtr &dataSource) = 0;
2588
2593 virtual JawsMako::IPDFStringPtr getDataSource () const = 0;
2594
2599 virtual void setBitsPerCoordinate (uint8 bitsPerCoordinate) = 0;
2600
2605 virtual uint8 getBitsPerCoordinate () const = 0;
2606
2611 virtual void setBitsPerComponent (uint8 bitsPerComponent) = 0;
2612
2617 virtual uint8 getBitsPerComponent () const = 0;
2618
2623 virtual void setBitsPerFlag (uint8 bitsPerFlag) = 0;
2624
2629 virtual uint8 getBitsPerFlag () const = 0;
2630
2635 virtual void setVerticesPerRow (int32 verticesPerRow) = 0;
2636
2641 virtual int32 getVerticesPerRow () const = 0;
2642
2647 virtual void setDecode (const CEDLVector<float> &decode) = 0;
2648
2653 virtual const CEDLVector<float> &getDecode () const = 0;
2654
2660 virtual CMeshEntryVect getMeshEntries() const = 0;
2661
2667 virtual void setMeshEntries(const CMeshEntryVect &meshEntries) = 0;
2668};
2669#define edlobj2IDOMShadingPatternType4567Brush(src) edl_cast((IDOMShadingPatternType4567Brush *)NULL, src)
2670
2678
2680{
2681#define IDOMNullBrushClassID 0x98F3706B, 0x403E4a41, 0xA975A9B6, 0xD52C99CC
2682 public:
2683
2690 static EDL_API IDOMNullBrushPtr create(IEDLClassFactory *pFactory);
2691
2696 class Data : public CClassParams
2697 {
2698 public:
2700 {}
2701 float opacity;
2702 };
2703
2708 static const CClassID &classID()
2709 {
2710 static CClassID id(IDOMNullBrushClassID);
2711 return id;
2712 };
2713};
2714#define edlobj2IDOMNullBrush(src) edl_cast((IDOMNullBrush *)NULL, src)
2715
2717
2718
2719#endif /* EDLIDOMBRUSH_H */
2720
An object to represent a 128-bit globally unique ID.
Definition objclassid.h:29
EDL Object Interface.
Definition iedlobject.h:31
Definition edlvector.h:30
Interface to the brush element.
Definition idombrush.h:54
virtual void setOpacity(float opc)=0
Sets the opacity value of a brush element.
virtual float getOpacity() const =0
Retrieves the opacity value of the brush element.
virtual IDOMBrushPtr getAdjustedForUseInTransformedNode(IEDLClassFactory *pFactory, const FMatrix &nodeTransform)
Get a version of this brush adjusted for use inside a node with the given transform.
virtual eBrushType getBrushType() const =0
Retrieves the type of the brush.
@ eType4567ShadingPattern
Type 4, 5, 6 or 7 shading pattern brush.
Definition idombrush.h:74
@ eImage
Image brush.
Definition idombrush.h:66
@ eVisual
Visual brush.
Definition idombrush.h:68
@ eTilingPattern
Tiling pattern brush.
Definition idombrush.h:70
@ eLinearGradient
Linear gradient brush.
Definition idombrush.h:64
@ eType2ShadingPattern
Type 2 shading pattern brush.
Definition idombrush.h:72
@ eSolidColor
Solid color brush.
Definition idombrush.h:63
@ eMasked
Masked brush.
Definition idombrush.h:67
@ eSoftMask
Softmask brush.
Definition idombrush.h:69
@ eRadialGradient
Radial gradient brush.
Definition idombrush.h:65
@ eType3ShadingPattern
Type 3 shading pattern brush.
Definition idombrush.h:73
@ eNull
Null brush.
Definition idombrush.h:75
@ eType1ShadingPattern
Type 1 shading pattern brush.
Definition idombrush.h:71
static IDOMColorPtr createSolidGray(IEDLClassFactory *pFactory, float gray=0.0f)
Simplified color creation for DeviceGray colors. Default parameters will yield an opaque DeviceGray b...
Definition idomcolor.h:54
static IDOMColorPtr createSolidCmyk(IEDLClassFactory *pFactory, float c=0.0f, float m=0.0f, float y=0.0f, float k=0.0f)
Simplified color creation for DeviceCMYK colors. Default parameters will yield an opaque DeviceCMYK w...
Definition idomcolor.h:83
static IDOMColorPtr createSolidRgb(IEDLClassFactory *pFactory, float r=0.0f, float g=0.0f, float b=0.0f)
Simplified color creation for DeviceRGB colors. Default parameters will yield an opaque DeviceRGB bla...
Definition idomcolor.h:68
A common interface for both IDOMLinearGradient and IDOMRadialGradient. Provides straightforward acces...
Definition idombrush.h:451
virtual void setGradientStops(const CDOMGradientStopVect &stops)=0
Set the vector of stops in this gradient. Must not be empty.
virtual eSpreadMethod getSpreadMethod() const =0
Retrieves the spread method value of the RadialGradientBrush element.
virtual void setColorInterpolationMode(eColorInterpolationMode cim)=0
Sets the color interpolation mode value of the radial gradient brush.
virtual void addGradientStop(const IDOMGradientStopPtr &ptrGradientStop)=0
Append a gradient stop.
virtual const CDOMGradientStopVect & getGradientStops() const =0
Retrieves the vector of stops in this gradient. An exception will be thrown if the gradient has no st...
virtual eColorInterpolationMode getColorInterpolationMode() const =0
Retrieves the color interpolation mode value of the radial gradient brush.
virtual void setSpreadMethod(eSpreadMethod sm)=0
Sets spread method value of the RadialGradientBrush element.
virtual void normalizeStops(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &ptrColorSpace=IDOMColorSpacePtr(), eRenderingIntent intent=eRelativeColorimetric, eBlackPointCompensation bpc=eBPCDefault)=0
Normalize the gradient stops to a single color space, sort them and ensure there are stops at 0....
Initialization data.
Definition idombrush.h:187
double offset
Definition idombrush.h:189
IDOMColorPtr color
Definition idombrush.h:190
IDOMGradientStop defines the ramp of colors to use on a gradient.
Definition idombrush.h:168
virtual void setColor(const IDOMColorPtr &color)=0
Sets the color value of the gradient stop.
static EDL_API IDOMGradientStopPtr create(IEDLClassFactory *pFactory, const IDOMColorPtr &color, double offset)
Simplified gradient stop creation. Throws an IEDLError on failure.
virtual void setOffset(double offset)=0
Sets the offset value of the gradient stop.
virtual IDOMColorPtr getColor() const =0
Retrieves the color value of the gradient stop. Never returns NULL.
static const CClassID & classID()
Retrieves class id of IDOMGradientStop.
Definition idombrush.h:197
virtual double getOffset() const =0
Retrieves the offset value of the gradient stop.
Abstract interface for objects that can be hashed.
Definition idomhashable.h:28
FRect viewBox
Definition idombrush.h:875
eViewUnits viewBoxUnits
Definition idombrush.h:878
FMatrix renderTransform
Definition idombrush.h:882
eTilingMode tileMode
Definition idombrush.h:877
IDOMImagePtr ptrImageSource
Definition idombrush.h:880
JawsMako::IOptionalContentDetailsPtr optionalContentDetails
Definition idombrush.h:883
Data()
Definition idombrush.h:871
CDOMAlternateImageVect alternateImages
Definition idombrush.h:884
JawsMako::IPDFDictionaryPtr propertiesDictionary
Definition idombrush.h:885
eViewUnits viewPortUnits
Definition idombrush.h:879
IDOMICCProfilePtr ptrICCProfile
Definition idombrush.h:881
float opacity
Definition idombrush.h:874
FRect viewPort
Definition idombrush.h:876
Provides an interface to a DOM image brush object.
Definition idombrush.h:834
virtual IDOMICCProfilePtr getICCProfile() const =0
Retrieves the external ICC profile of the brush if present.
virtual IDOMImagePtr getImageSource() const =0
Retrieves a smart pointer to the image resource.
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:891
virtual JawsMako::IPDFDictionaryPtr getPdfPropertiesDictionary() const =0
Get the dictionary containing PDF properties attached to the image object. This dictionary will be as...
virtual eViewUnits getViewPortUnits() const =0
Retrieves the viewport units value of the image brush. Currently, only absolute units are supported.
virtual eViewUnits getViewBoxUnits() const =0
Retrieves the viewbox units used by the image brush. Currently, only absolute units are supported.
virtual void setViewBox(const FRect &vb)=0
Sets the viewbox rectangle.
virtual void setPdfPropertiesDictionary(const JawsMako::IPDFDictionaryPtr &propertiesDictionary)=0
Set the dictionary containing PDF properties attached to the image object. Please see getPdfPropertie...
virtual eTilingMode getTileMode() const =0
Retrieves the tiling mode value of the image brush.
static EDL_API IDOMImageBrushPtr create(IEDLClassFactory *pFactory, const IDOMImagePtr &image, const FRect &viewBox, const FRect &viewPort, const FMatrix &renderTransform=FMatrix(), float opacity=1.0f, eTilingMode tileMode=eNoTile, const CDOMAlternateImageVect &alternateImages=CDOMAlternateImageVect(), const JawsMako::IOptionalContentDetailsPtr &optionalContentDetails=JawsMako::IOptionalContentDetailsPtr(), const JawsMako::IPDFDictionaryPtr &propertiesDictionary=JawsMako::IPDFDictionaryPtr())
Simplified creator for an image brush. Throws an IEDLError on failure.
virtual IDOMVisualBrushPtr getEquivalentVisualBrush(IEDLClassFactory *pFactory)=0
For tiled images, returns an equivalent visual brush containing the image without tiling....
virtual JawsMako::IOptionalContentDetailsPtr getOptionalContentDetails() const =0
Returns any optional content information that applies to this brush.
virtual CDOMAlternateImageVect getAlternateImages() const =0
Retrieves any alternate images associated with this brush.
virtual const FRect & getViewBox() const =0
Retrieves the viewbox rectangle.
virtual void setViewPortUnits(eViewUnits vu)=0
Sets the viewport units used for the image brush. Currently, only absolute units are supported.
virtual IDOMTilingPatternBrushPtr getEquivalentTilingBrush(IEDLClassFactory *pFactory)=0
Gets an equivalent IDOMTilingPattern brush. If the receiver has a tile mode of eNoTile,...
virtual const FRect & getViewPort() const =0
Retrieves the viewport rectangle.
virtual void setAlternateImages(const CDOMAlternateImageVect &alternates)=0
Set the alternate images associated with this brush.
virtual void setImageSource(const IDOMImagePtr &ptrImageSource)=0
Sets the image resource for the brush.
virtual void setOptionalContentDetails(const JawsMako::IOptionalContentDetailsPtr &details)=0
Set the optional content details that apply to this brush, or NULL to remove.
virtual void setTileMode(eTilingMode tm)=0
Sets the tiling mode of the image brush.
virtual void setICCProfile(const IDOMICCProfilePtr &icc)=0
Retrieves the external ICC profile of the brush if present.
virtual void setViewPort(const FRect &vp)=0
Sets the viewport rectangle.
virtual void setViewBoxUnits(eViewUnits vu)=0
Sets the viewbox units value of the image brush. Currently, only absolute units are supported.
FPoint endPoint
Definition idombrush.h:572
eColorInterpolationMode colorInterpolationMode
Definition idombrush.h:574
eSpreadMethod spreadMethod
Definition idombrush.h:575
float opacity
Definition idombrush.h:570
FPoint startPoint
Definition idombrush.h:571
FMatrix renderTransform
Definition idombrush.h:576
CDOMGradientStopVect stops
Definition idombrush.h:573
Data()
Definition idombrush.h:568
IDOMLinearGradientBrush interface. A linear gradient brush is used to specify a gradient along a vect...
Definition idombrush.h:537
static EDL_API IDOMLinearGradientBrushPtr create(IEDLClassFactory *pFactory, const FPoint &startPoint, const FPoint &endPoint, const CDOMGradientStopVect &stops, float opacity=1.0f, const FMatrix &renderTransform=FMatrix(), eSpreadMethod spreadMethod=eNoSpread, eColorInterpolationMode colorInterpolationMode=eSRgbLinearInterpolation)
Simplified linear gradient brush creation. Throws an IEDLError on failure.
virtual const FPoint & getStartPoint() const =0
Retrieves the start point of the linear gradient.
virtual const FPoint & getEndPoint() const =0
Retrieves the end point of the linear gradient.
virtual IDOMShadingPatternType2BrushPtr createShading(IEDLClassFactory *pFactory, bool ignoreSpreadMethod, bool useFirstStopColorSpace)=0
Create a Type2 Shading Pattern brush from this linear brush. Repeat and reflect spread methods cannot...
virtual IDOMBrushPtr createPdfBrush(IEDLClassFactory *pFactory, bool useFirstStopColorSpace=false)=0
Create a PDF-compatible brush for this gradient. If the pad mode is reflect, the result will be a sha...
virtual void setStartPoint(const FPoint &pt)=0
Sets the start point of the linear gradient.
virtual void setEndPoint(const FPoint &pt)=0
Sets the end point of the linear gradient.
static const CClassID & classID()
Retrieves class id of IDOMLinearGradientBrush.
Definition idombrush.h:583
CDOMAlternateImageVect alternateImages
Definition idombrush.h:1156
JawsMako::IPDFDictionaryPtr propertiesDictionary
Definition idombrush.h:1157
FMatrix renderTransform
Definition idombrush.h:1154
FRect viewPort
Definition idombrush.h:1149
eViewUnits viewPortUnits
Definition idombrush.h:1151
JawsMako::IOptionalContentDetailsPtr optionalContentDetails
Definition idombrush.h:1155
float opacity
Definition idombrush.h:1147
IDOMBrushPtr brush
Definition idombrush.h:1153
Data()
Definition idombrush.h:1144
IDOMImagePtr imageMask
Definition idombrush.h:1152
FRect viewBox
Definition idombrush.h:1148
eViewUnits viewBoxUnits
Definition idombrush.h:1150
IDOMMaskedBrush interface, this describes a generalization of a masked image. The sub-brush (set by g...
Definition idombrush.h:1106
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:1163
static EDL_API IDOMMaskedBrushPtr create(IEDLClassFactory *pFactory, const IDOMImagePtr &mask, const IDOMBrushPtr &brush, const FRect &viewBox, const FRect &viewPort, const FMatrix &renderTransform=FMatrix(), float opacity=1.0f, const CDOMAlternateImageVect &alternateImages=CDOMAlternateImageVect(), const JawsMako::IOptionalContentDetailsPtr &optionalContentDetails=JawsMako::IOptionalContentDetailsPtr(), const JawsMako::IPDFDictionaryPtr &propertiesDictionary=JawsMako::IPDFDictionaryPtr())
Simplified creator for a masked brush. Throws an IEDLError on failure.
virtual void setBrush(const IDOMBrushPtr &brush)=0
Sets brush.
virtual bool getIsSoftMask(IEDLClassFactory *pFactory)=0
Is the mask a soft mask? That is, is the mask not a single bit image? An outright error will result i...
virtual IDOMBrushPtr getEquivalentXPSBrush(IEDLClassFactory *pFactory, const FRect &enclosedBounds)=0
Gets an equivalent image or visual brush that can be used to express this masked brush in XPS compati...
virtual IDOMImageBrushPtr getSimpleImageBrush(IEDLClassFactory *pFactory)=0
Attempts to create a single IDOMImageBrush that represents the masked result. This can be achieved if...
virtual IDOMBrushPtr getBrush() const =0
Retrieves smart pointer to the brush to be painted through the image.
Abstract class providing the interface to basic DOM node functionality. IDOMNode is the base class fo...
Definition idomnode.h:139
Data()
Definition idombrush.h:2699
float opacity
Definition idombrush.h:2701
IDOMNullBrush provides a way of representing the default marking brush in a Type3 postscript glyph de...
Definition idombrush.h:2680
static EDL_API IDOMNullBrushPtr create(IEDLClassFactory *pFactory)
Simplified creator for a Null brush. Throws an IEDLError on failure.
static const CClassID & classID()
Retrieves class id of IDOMNullBrush.
Definition idombrush.h:2708
eColorInterpolationMode colorInterpolationMode
Definition idombrush.h:699
Data()
Definition idombrush.h:695
FPoint gradientOrigin
Definition idombrush.h:702
FMatrix renderTransform
Definition idombrush.h:706
double radiusX
Definition idombrush.h:703
CDOMGradientStopVect stops
Definition idombrush.h:705
FPoint center
Definition idombrush.h:701
eSpreadMethod spreadMethod
Definition idombrush.h:700
float opacity
Definition idombrush.h:698
double radiusY
Definition idombrush.h:704
IDOMRadialGradientBrush interface. A radial gradient brush defines an ellipse to be filled with the g...
Definition idombrush.h:661
virtual void setCenter(const FPoint &pt)=0
Sets the center point of the gradient brush ellipse.
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:712
virtual const FPoint & getCenter() const =0
Retrieves the center point of the gradient brush ellipse.
virtual void setGradientOrigin(const FPoint &pt)=0
Sets the origin point of the radial gradient, corresponding to the gradient stop with an offset of 0....
virtual void setRadiusY(double r)=0
Sets the y-radius of the gradient brush ellipse.
virtual const FPoint & getGradientOrigin() const =0
Retrieves the origin point of the radial gradient, corresponding to the gradient stop with an offset ...
static EDL_API IDOMRadialGradientBrushPtr create(IEDLClassFactory *pFactory, const FPoint &center, const FPoint &gradientOrigin, double radiusX, double radiusY, const CDOMGradientStopVect &stops, float opacity=1.0f, const FMatrix &renderTransform=FMatrix(), eSpreadMethod spreadMethod=eNoSpread, eColorInterpolationMode colorInterpolationMode=eSRgbLinearInterpolation)
Simplified radial gradient brush creation. Throws an IEDLError on failure.
virtual IDOMRadialGradientBrushPtr getSimplifiedGradient(IEDLClassFactory *pFactory, const FRect &fillArea)=0
Create a simplified radial gradient brush, where any repeat or reflect pad mode is converted to simpl...
virtual void setRadiusX(double r)=0
Sets the x-radius of the gradient brush ellipse.
virtual double getRadiusX() const =0
Retrieves the x-radius of the gradient brush ellipse.
virtual double getRadiusY() const =0
Retrieves the y-radius of the gradient brush ellipse.
virtual IDOMShadingPatternType3BrushPtr createShading(IEDLClassFactory *pFactory, const FRect &fillArea, bool useFirstStopColorSpace=false)=0
Create a Type3 Shading Pattern brush from this radial brush. All alpha information in the gradient st...
IDOMShadingBrush provides a way of representing a PS style shading pattern.
Definition idombrush.h:1736
virtual void setAntiAlias(bool antiAlias)=0
Sets anti aliasing flag.
virtual uint8 getShadingType() const =0
Retrieves the shading type.
virtual void setColorSpace(const IDOMColorSpacePtr &colorSpace)=0
Sets the colorspace to use for painting the shade.
virtual void deIndex(IEDLClassFactory *pFactory)=0
If the shading brush uses an Indexed color space, reduce it to its base color space.
virtual bool getBBox(FBox &bBox) const =0
Retrieves the bounding box for the shade.
virtual void setBBox(const FBox &bBox)=0
Sets the bounding box for the shade.
virtual void setFunction(const IDOMFunctionPtr &function)=0
Sets the shade function.
virtual IDOMColorPtr getBackgroundColor() const =0
Gets the background color to use before painting the shade. If the return is NULL then the background...
virtual IDOMFunctionPtr getFunction() const =0
Gets the shade function object.
virtual bool getAntiAlias() const =0
Gets anti aliasing flag.
virtual void setColorSpace(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &colorSpace, eRenderingIntent intent, eBlackPointCompensation bpc)=0
Set the colorspace of the shading brush, performing color conversion to that target space....
virtual void setBackgroundColor(const IDOMColorPtr &color)=0
Sets the background color to use before painting the shade.
virtual IDOMColorSpacePtr getColorSpace() const =0
Gets the colorspace object to be used when painting the shading.
float domain[4]
Definition idombrush.h:1917
int shadingType
Definition idombrush.h:1907
FBox bBox
Definition idombrush.h:1908
float opacity
Definition idombrush.h:1906
IDOMColorPtr background
Definition idombrush.h:1912
Data()
Definition idombrush.h:1888
FMatrix renderTransform
Definition idombrush.h:1913
IDOMFunctionPtr function
Definition idombrush.h:1919
bool antiAlias
Definition idombrush.h:1910
IDOMColorSpacePtr colorSpace
Definition idombrush.h:1911
FMatrix matrix
Definition idombrush.h:1918
bool hasBBox
Definition idombrush.h:1909
IDOMShadingBrush provides a way of representing a PS style type 1 shading pattern.
Definition idombrush.h:1838
virtual const float * getDomain() const =0
Gets the domain range.
virtual void setMatrix(const FMatrix &matrix)=0
Sets the Type 1 shade matrix.
static EDL_API IDOMShadingPatternType1BrushPtr create(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &colorSpace, float domain[4], const IDOMFunctionPtr &function, bool hasBBox=false, const FBox &bBox=FBox(), const IDOMColorPtr &background=IDOMColorPtr(), const FMatrix &matrix=FMatrix(), const FMatrix &renderTransform=FMatrix(), bool antiAlias=false, float opacity=1.0f)
Simplified creator for a type 1 shading pattern brush Throws an IEDLError on failure.
virtual const FMatrix & getMatrix()=0
Gets the Type 1 shade matrix.
virtual void setDomain(float domain[4])=0
Sets the domain range.
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:1926
FBox bBox
Definition idombrush.h:2056
IDOMFunctionPtr function
Definition idombrush.h:2067
IDOMColorPtr background
Definition idombrush.h:2060
bool antiAlias
Definition idombrush.h:2058
bool hasBBox
Definition idombrush.h:2057
FPoint startPoint
Definition idombrush.h:2064
IDOMColorSpacePtr colorSpace
Definition idombrush.h:2059
float domain[2]
Definition idombrush.h:2066
FPoint endPoint
Definition idombrush.h:2065
bool extend[2]
Definition idombrush.h:2068
float opacity
Definition idombrush.h:2054
Data()
Definition idombrush.h:2032
uint8 shadingType
Definition idombrush.h:2055
FMatrix renderTransform
Definition idombrush.h:2061
IDOMShadingBrush provides a way of representing a PS style type 2 shading pattern.
Definition idombrush.h:1976
virtual void setEndPoint(const FPoint &point)=0
Set the end point.
virtual const float * getDomain() const =0
Get the domain range.
virtual const FPoint & getStartPoint() const =0
Get the start point.
static EDL_API IDOMShadingPatternType2BrushPtr create(IEDLClassFactory *pFactory, const FPoint &startPoint, const FPoint &endPoint, const IDOMColorSpacePtr &colorSpace, float domain[2], const IDOMFunctionPtr &function, bool extendStart=false, bool extendEnd=false, bool hasBBox=false, const FBox &bBox=FBox(), const IDOMColorPtr &background=IDOMColorPtr(), const FMatrix &renderTransform=FMatrix(), bool antiAlias=false, float opacity=1.0f)
Simplified creator for a type 2 shading pattern brush Throws an IEDLError on failure.
virtual void getExtend(bool &extendStart, bool &extendEnd) const =0
Gets the shading Extend flag to represent whether to extend beyond the start and end points for each ...
virtual const FPoint & getEndPoint() const =0
Get the end point.
virtual void setStartPoint(const FPoint &point)=0
Sets the start point.
virtual void setExtend(bool extendStart, bool extendEnd)=0
Sets the shading Extend flag to represent whether to extend beyond the start and end points.
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:2075
virtual IDOMBrushPtr getEquivalentSimpleBrush(IEDLClassFactory *pFactory, uint32 maxSamples=255)=0
Gets an equivalent Linear gradient or Visual brush, which may involve sampling the functions....
virtual void setDomain(float domain[2])=0
Sets the domain range.
float opacity
Definition idombrush.h:2259
IDOMFunctionPtr function
Definition idombrush.h:2275
bool extend[2]
Definition idombrush.h:2276
bool hasBBox
Definition idombrush.h:2262
uint8 shadingType
Definition idombrush.h:2260
bool antiAlias
Definition idombrush.h:2263
FPoint endCircleCenter
Definition idombrush.h:2272
FPoint startCircleCenter
Definition idombrush.h:2270
FBox bBox
Definition idombrush.h:2261
float endCircleRadius
Definition idombrush.h:2273
IDOMColorPtr background
Definition idombrush.h:2265
float domain[2]
Definition idombrush.h:2274
Data()
Definition idombrush.h:2235
FMatrix renderTransform
Definition idombrush.h:2266
float startCircleRadius
Definition idombrush.h:2271
IDOMColorSpacePtr colorSpace
Definition idombrush.h:2264
IDOMShadingPatternType3Brush provides a way of representing a PS style type 2 shading pattern.
Definition idombrush.h:2176
static EDL_API IDOMShadingPatternType3BrushPtr create(IEDLClassFactory *pFactory, const FPoint &startCircleCenter, float startCircleRadius, const FPoint &endCircleCenter, float endCircleRadius, const IDOMColorSpacePtr &colorSpace, float domain[2], const IDOMFunctionPtr &function, bool extendStart=false, bool extendEnd=false, bool hasBBox=false, const FBox &bBox=FBox(), const IDOMColorPtr &background=IDOMColorPtr(), const FMatrix &renderTransform=FMatrix(), bool antiAlias=false, float opacity=1.0f)
Simplified creator for a type 3 shading pattern brush Throws an IEDLError on failure.
virtual const float * getDomain() const =0
Get the domain range.
virtual void setDomain(float domain[2])=0
Sets the domain range.
virtual const FPoint & getStartCircleCenter() const =0
Get the center of the starting circle.
virtual float getStartCircleRadius() const =0
Get the radius of the starting circle.
virtual void setEndCircleCenter(const FPoint &point)=0
Sets the center of the ending circle.
virtual void setStartCircleCenter(const FPoint &point)=0
Sets the center of the starting circle.
virtual void setExtend(bool extendStart, bool extendEnd)=0
Sets the shading Extend flag to represent whether to extend beyond the start and end circles.
virtual float getEndCircleRadius() const =0
Get the radius of the ending circle.
virtual IDOMBrushPtr getEquivalentSimpleBrush(IEDLClassFactory *pFactory, uint32 maxSamples=255)=0
Gets an equivalent Radial gradient or Visual brush, which may involve sampling the functions....
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:2283
virtual void setEndCircleRadius(float radius)=0
Set the radius of the ending circle.
virtual void getExtend(bool &extendStart, bool &extendEnd) const =0
Gets the shading Extend flag to represent whether to extend beyond the start and end points for each ...
virtual void setStartCircleRadius(float radius)=0
Set the radius of the starting circle.
virtual const FPoint & getEndCircleCenter() const =0
Get the center of the ending circle.
uint8 flag
A flag for the mesh entry. Used for Type 4, 6, and 7 shading patterns.
Definition idombrush.h:2463
CEDLVector< CEDLVector< float > > colors
Definition idombrush.h:2466
CEDLVector< FPoint > points
Definition idombrush.h:2464
CMeshEntry()
Definition idombrush.h:2462
float opacity
Definition idombrush.h:2548
IDOMColorPtr background
Definition idombrush.h:2554
uint8 bitsPerCoordinate
Definition idombrush.h:2558
IDOMColorSpacePtr colorSpace
Definition idombrush.h:2553
Data()
Definition idombrush.h:2525
virtual ~Data()
Definition idombrush.h:2543
IDOMFunctionPtr function
Definition idombrush.h:2564
JawsMako::IPDFStringPtr dataSource
Definition idombrush.h:2562
int32 verticesPerRow
Definition idombrush.h:2561
bool hasBBox
Definition idombrush.h:2551
uint8 shadingType
Definition idombrush.h:2549
FMatrix renderTransform
Definition idombrush.h:2555
FBox bBox
Definition idombrush.h:2550
uint8 bitsPerFlag
Definition idombrush.h:2559
CEDLVector< float > decode
Definition idombrush.h:2563
bool antiAlias
Definition idombrush.h:2552
uint8 bitsPerComponent
Definition idombrush.h:2560
IDOMShadingPatternType4567Brush provides a way of representing a PS style type 4 shading pattern.
Definition idombrush.h:2409
virtual void setMeshEntries(const CMeshEntryVect &meshEntries)=0
Set the vector of mesh entries that describe the appearance of this shading pattern.
virtual void setVerticesPerRow(int32 verticesPerRow)=0
Sets the vertices per row flag.
virtual void setBitsPerCoordinate(uint8 bitsPerCoordinate)=0
Sets the bits per coordinate.
static EDL_API IDOMShadingPatternType4567BrushPtr create(IEDLClassFactory *pFactory, uint8 shadingType, const IDOMColorSpacePtr &colorSpace, const JawsMako::IPDFStringPtr &dataSource, const uint8 bitsPerCoordinate=0, const uint8 bitsPerComponent=0, const uint8 bitsPerFlag=0, const int32 verticesPerRow=0, const CEDLVector< float > &decode=CEDLVector< float >(), const IDOMFunctionPtr &function=IDOMFunctionPtr(), bool hasBBox=false, const FBox &bBox=FBox(), const IDOMColorPtr &background=IDOMColorPtr(), const FMatrix &renderTransform=FMatrix(), bool antiAlias=false, float opacity=1.0f)
Simplified creator for a type 4,5,6 or 7 shading pattern brush Throws an IEDLError on failure.
virtual JawsMako::IPDFStringPtr getDataSource() const =0
Gets the data source property.
virtual uint8 getBitsPerComponent() const =0
Gets the bits per component parameter.
virtual uint8 getBitsPerFlag() const =0
Gets the bits per flag parameter.
virtual void setDataSource(const JawsMako::IPDFStringPtr &dataSource)=0
Sets the data source property.
virtual void setBitsPerFlag(uint8 bitsPerFlag)=0
Sets the bits per flag.
virtual uint8 getBitsPerCoordinate() const =0
Gets the bits per coordinate parameter.
virtual void setDecode(const CEDLVector< float > &decode)=0
Sets the decode array.
virtual const CEDLVector< float > & getDecode() const =0
Gets the decode array.
CEDLVector< CMeshEntry > CMeshEntryVect
Definition idombrush.h:2472
virtual int32 getVerticesPerRow() const =0
Gets the vertices per row parameter.
static EDL_API IDOMShadingPatternType4567BrushPtr create(IEDLClassFactory *pFactory, uint8 shadingType, const IDOMColorSpacePtr &colorSpace, const IDOMFunctionPtr &function, const CMeshEntryVect &meshEntries, const uint8 bitsPerCoordinate=16, const uint8 bitsPerComponent=8, const uint8 bitsPerFlag=8, const int32 verticesPerRow=0, const CEDLVector< float > &decode=CEDLVector< float >(), bool hasBBox=false, const FBox &bBox=FBox(), const IDOMColorPtr &background=IDOMColorPtr(), const FMatrix &renderTransform=FMatrix(), bool antiAlias=false, float opacity=1.0f)
Simplified creator for a type 4,5,6 or 7 shading pattern brush, providing a mesh as data source Throw...
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:2571
virtual CMeshEntryVect getMeshEntries() const =0
Get the vector of mesh entries that describe the appearance of this shading pattern....
virtual void setShadingType(uint8 shadingType)=0
Sets the shading type.
virtual void setBitsPerComponent(uint8 bitsPerComponent)=0
Sets the bits per component.
FMatrix renderTransform
Definition idombrush.h:1493
IDOMTransparencyGroupPtr group
Definition idombrush.h:1490
IDOMFunctionPtr transfer
Definition idombrush.h:1492
Data()
Definition idombrush.h:1485
IDOMColorPtr backdropColor
Definition idombrush.h:1491
eSoftMaskType type
Definition idombrush.h:1488
float opacity
Definition idombrush.h:1489
IDOMSoftMaskBrush provides a way of representing a PDF style soft mask in its entirety....
Definition idombrush.h:1447
virtual IDOMColorPtr getBackdropColor() const =0
Retrieves the color used for luminosity backdrop composition.
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:1500
eSoftMaskType
Enum for soft mask interpretation.
Definition idombrush.h:1454
@ eLuminosity
Definition idombrush.h:1456
@ eAlpha
Definition idombrush.h:1455
virtual eSoftMaskType getSoftMaskType() const =0
Retrieves the soft mask type.
virtual IDOMTransparencyGroupPtr getGroup() const =0
Retrieves the transparency group used for the mask.
virtual IDOMFunctionPtr getTransferFunction() const =0
Retrieves the function used for luminosity used for deriving mask values.
static EDL_API IDOMSoftMaskBrushPtr create(IEDLClassFactory *pFactory, const IDOMTransparencyGroupPtr &group, eSoftMaskType type, const FMatrix &renderTransform=FMatrix(), const IDOMColorPtr &backdropColor=IDOMColorPtr(), const IDOMFunctionPtr &transfer=IDOMFunctionPtr())
Simplified creator for a soft mask brush. Throws an IEDLError on failure.
Data()
Definition idombrush.h:388
float opacity
Definition idombrush.h:390
IDOMColorPtr color
Definition idombrush.h:391
A solid color brush is used to fill defined geometric regions with a solid color. If there is an alph...
Definition idombrush.h:240
static EDL_API IDOMSolidColorBrushPtr createWithSpaceAndComponents(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &space, double opacity, double component1, double component2=0.0, double component3=0.0, double component4=0.0, double component5=0.0, double component6=0.0, double component7=0.0, double component8=0.0, double component9=0.0, double component10=0.0, double component11=0.0, double component12=0.0, double component13=0.0, double component14=0.0, double component15=0.0, double component16=0.0, double component17=0.0, double component18=0.0, double component19=0.0, double component20=0.0, double component21=0.0, double component22=0.0, double component23=0.0, double component24=0.0, double component25=0.0, double component26=0.0, double component27=0.0, double component28=0.0, double component29=0.0, double component30=0.0, double component31=0.0, double component32=0.0)
Simplified solid color brush creation routine which takes a color space and components directly....
static IDOMSolidColorBrushPtr createSolidGray(IEDLClassFactory *pFactory, float gray=0.0f)
Simplified solid color brush creation for DeviceGray colors. Default parameters will yield an opaque ...
Definition idombrush.h:261
static EDL_API IDOMSolidColorBrushPtr create(IEDLClassFactory *pFactory, const IDOMColorPtr &color, float opacity=1.0f)
Simplified solid color brush creation. Throws an IEDLError on failure.
static EDL_API IDOMSolidColorBrushPtr createWithSpaceAndComponentsFromVect(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &space, float opacity, const CEDLVector< float > &components)
Simplified solid color brush creation routine which takes a color space and components directly....
static IDOMSolidColorBrushPtr createSolidRgb(IEDLClassFactory *pFactory, float r=0.0f, float g=0.0f, float b=0.0f)
Simplified solid color brush creation for DeviceRGB colors. Default parameters will yield an opaque D...
Definition idombrush.h:275
static IDOMSolidColorBrushPtr createSolidCmyk(IEDLClassFactory *pFactory, float c=0.0f, float m=0.0f, float y=0.0f, float k=0.0f)
Simplified solid color brush creation for DeviceCMYK colors. Default parameters will yield an opaque ...
Definition idombrush.h:290
virtual void setColor(const IDOMColorPtr &color)=0
Sets color value of the solid color brush.
static EDL_API IDOMSolidColorBrushPtr createWithSpaceAndComponentsFromArray(IEDLClassFactory *pFactory, const IDOMColorSpacePtr &space, float opacity, const float *components)
Simplified solid color brush creation routine which takes a color space and components directly....
static const CClassID & classID()
Retrieves class id of IDOMIDOMSolidColorBrush.
Definition idombrush.h:398
virtual IDOMColorPtr getColor() const =0
Retrieves the color value of the solid color brush.
Data()
Definition idombrush.h:1575
float opacity
Definition idombrush.h:1587
uint8 patternType
Definition idombrush.h:1588
uint8 tilingType
Definition idombrush.h:1593
uint8 paintType
Definition idombrush.h:1592
FMatrix renderTransform
Definition idombrush.h:1594
float ystep
Definition idombrush.h:1591
IDOMColorPtr patternColor
Definition idombrush.h:1599
FBox bBox
Definition idombrush.h:1589
IDOMNodePtr visual
Definition idombrush.h:1601
float xstep
Definition idombrush.h:1590
IDOMTilingPatternBrush provides a way of representing a PS style tiling pattern.
Definition idombrush.h:1541
virtual IDOMTilingPatternBrushPtr getColoredTilingPatternBrush(IEDLClassFactory *pFactory, bool overprint=false)=0
Get a version of this tiling pattern brush that is always colored (paint type 1) If the brush is alre...
virtual IDOMNodePtr getVisual() const =0
Retrieves smart pointer to visual (path, glyphs, group, canvas) node.
static EDL_API IDOMTilingPatternBrushPtr create(IEDLClassFactory *pFactory, const IDOMNodePtr &visual, const FRect &bBox, uint8 paintType, const IDOMColorPtr &color, float xStep, float yStep, uint8 tilingType=1, const FMatrix &renderTransform=FMatrix())
Simplified creator for a tiling brush. Throws an IEDLError on failure.
static const CClassID & classID()
Retrieves class id of IDOM.
Definition idombrush.h:1608
virtual const FBox & getBBox() const =0
Retrieves the bounding box for the pattern.
virtual uint8 getPatternType() const =0
Retrieves the pattern type.
virtual void setPatternColor(const IDOMColorPtr &color)=0
Sets the pattern color for uncolored pattern (paint type is 2)
virtual void setTilingType(uint8 tilingType)=0
Sets the tiling type for the pattern.
virtual uint8 getPaintType() const =0
Gets the paint type for the pattern.
virtual void setPaintType(uint8 paintType)=0
Sets the paint type for the pattern.
virtual IDOMVisualBrushPtr getEquivalentVisualBrush(IEDLClassFactory *pFactory)=0
Gets an equivalent IDOMVisualBrush brush. If the brush has overlapping tiles, this cannot be done.
virtual void getTilingStep(float &xstep, float &ystep) const =0
Retrieves the tiling step for the pattern.
virtual IDOMColorPtr getPatternColor() const =0
Gets the pattern color for uncolored pattern (paint type is 2)
virtual uint8 getTilingType() const =0
Gets the tiling type for the pattern.
virtual void setVisual(const IDOMNodePtr &ptrVisual)=0
Sets visual node.
virtual void setTilingStep(float xstep, float ystep)=0
Sets the tiling step for the pattern.
virtual void setBBox(const FBox &bBox)=0
Sets the bounding box for the pattern.
Abstract interface for a brush to which a render transform may be applied.
Definition idombrush.h:134
virtual const FMatrix & getRenderTransform() const =0
Retrieves the render transform matrix.
virtual void setRenderTransform(const FMatrix &matrix)=0
Sets the render transform matrix.
eViewUnits viewBoxUnits
Definition idombrush.h:1270
eTilingMode tileMode
Definition idombrush.h:1269
FMatrix renderTransform
Definition idombrush.h:1273
FRect viewPort
Definition idombrush.h:1268
eViewUnits viewPortUnits
Definition idombrush.h:1271
IDOMNodePtr ptrVisual
Definition idombrush.h:1272
Data()
Definition idombrush.h:1263
FRect viewBox
Definition idombrush.h:1267
float opacity
Definition idombrush.h:1266
A visual brush is used to fill a region with a vector drawing.
Definition idombrush.h:1233
virtual IDOMVisualBrushPtr getEquivalentSimpleVisualBrush(IEDLClassFactory *pFactory)=0
Gets an equivalent visual brush where any flip tile mode is simplified to simple tiling....
virtual eTilingMode getTileMode() const =0
Retrieves the tiling mode value of the visual brush.
virtual void setViewBoxUnits(eViewUnits vu)=0
Sets the viewbox units value of the image brush. Currently, only absolute units are supported.
virtual const FRect & getViewPort() const =0
Retrieves the viewport rectangle.
virtual void setTileMode(eTilingMode tm)=0
Sets tiling mode value of the visual brush.
virtual void setViewPort(const FRect &vp)=0
Sets the viewport rectangle.
static EDL_API IDOMVisualBrushPtr create(IEDLClassFactory *pFactory, const IDOMNodePtr &visual, const FRect &viewBox, const FRect &viewPort, const FMatrix &renderTransform=FMatrix(), float opacity=1.0f, eTilingMode tileMode=eNoTile)
Simplified creator for a visual brush. Throws an IEDLError on failure.
virtual void setViewBox(const FRect &vb)=0
Sets viewbox rectangle.
static const CClassID & classID()
Retrieves the class id of IDOMVisualBrush.
Definition idombrush.h:1280
virtual IDOMTilingPatternBrushPtr getEquivalentTilingBrush(IEDLClassFactory *pFactory)=0
Gets an equivalent IDOMTilingPattern brush. If the receiver has a tile mode of eNoTile,...
virtual IDOMNodePtr getVisual() const =0
Retrieves smart pointer to the visual node (path, glyphs, group or canvas node) used to specify the s...
virtual void setViewPortUnits(eViewUnits vu)=0
Sets the viewport units used for the image brush. Currently, only absolute units are supported.
virtual void setVisual(const IDOMNodePtr &ptrVisual)=0
Sets the visual node (path, glyphs or canvas node) used to specify the source for the visual brush.
virtual const FRect & getViewBox() const =0
Retrieves the viewbox rectangle.
virtual eViewUnits getViewPortUnits() const =0
Retrieves the viewport units value of the image brush. Currently, only absolute units are supported.
virtual eViewUnits getViewBoxUnits() const =0
Retrieves the viewbox units used by the image brush. Currently, only absolute units are supported.
IDOMVisualRoot interface.
Definition idombrush.h:1419
static const CClassID & classID()
Retrieves the class ID of IDOMVisualRoot.
Definition idombrush.h:1427
EDL Factory Interface allows one part of the EDL infrastructure to register class creation methods id...
Definition iedlfactory.h:31
IEDLObject is an abstract base class that is used by all classes that are intended to be created via ...
Definition iedlobject.h:53
CEDLVector< IDOMPDFAlternateImagePtr > CDOMAlternateImageVect
Definition edlfwd.h:82
PointTmpl< double > FPoint
Definition edlgeom.h:102
CTransformMatrix< double > FMatrix
Definition edlgeom.h:1208
BoxTmpl< double > FBox
Definition edlgeom.h:441
RectTmpl< double > FRect
Definition edlgeom.h:338
EDL C++ namespace(s)
#define _END_EDL_DOM_NAMESPACE
Definition edlnamespaces.h:110
#define _BEGIN_EDL_DOM_NAMESPACE
Definition edlnamespaces.h:109
EDL "standard" types including known bit-length signed and unsigned integer type[def]s and definition...
unsigned int uint32
Definition edltypes.h:34
#define EDL_API
Definition edltypes.h:86
signed int int32
Definition edltypes.h:29
unsigned char uint8
Definition edltypes.h:32
eColorInterpolationMode
Color interpolation mode type enumeration.
Definition idombrush.h:426
eViewUnits
View units type enumeration.
Definition idombrush.h:804
eBrushType
Brush type enumeration.
Definition idombrush.h:62
eTilingMode
Tiling mode type enumeration.
Definition idombrush.h:814
eSpreadMethod
Spread Method type enumeration.
Definition idombrush.h:437
eBlackPointCompensation
Black point compensation enumeration.
Definition edlblackpointcompensation.h:17
eRenderingIntent
Rendering intent enumeration.
Definition edlrenderingintent.h:17
@ eBPCDefault
Default behavior.
Definition edlblackpointcompensation.h:19
@ eRelativeColorimetric
Relative colorimetric rendering intent.
Definition edlrenderingintent.h:20
#define IDOMShadingPatternType2BrushClassID
Definition idombrush.h:1977
#define IDOMSoftMaskBrushClassID
Definition idombrush.h:1448
#define IDOMImageBrushClassID
Definition idombrush.h:835
#define IDOMVisualRootClassID
Definition idombrush.h:1420
#define IDOMRadialGradientBrushClassID
Definition idombrush.h:662
#define IDOMShadingPatternType3BrushClassID
Definition idombrush.h:2177
#define IDOMGradientStopClassID
Definition idombrush.h:169
#define IDOMLinearGradientBrushClassID
Definition idombrush.h:538
#define IDOMVisualBrushClassID
Definition idombrush.h:1234
#define IDOMTilingPatternBrushClassID
Definition idombrush.h:1542
#define IDOMMaskedBrushClassID
Definition idombrush.h:1107
#define IDOMSolidColorBrushClassID
Definition idombrush.h:241
#define IDOMNullBrushClassID
Definition idombrush.h:2681
#define IDOMShadingPatternType1BrushClassID
Definition idombrush.h:1839
#define IDOMShadingPatternType4567BrushClassID
Definition idombrush.h:2410
CEDLVector< IDOMGradientStopPtr > CDOMGradientStopVect
Definition idombrush.h:230
@ eSCRgbLinearInterpolation
Linear interpolation for scRGB color space.
Definition idombrush.h:428
@ eSRgbLinearInterpolation
Linear interpolation for sRGB color space.
Definition idombrush.h:427
@ eAbsolute
Absolute units.
Definition idombrush.h:805
@ eFlipX
Definition idombrush.h:817
@ eTile
Tile image without any flipping or rotating of the image. A square image consisting of a single diago...
Definition idombrush.h:816
@ eNoTile
No tiling. If the area to be painted is larger than the image, just paint the image once (in the loca...
Definition idombrush.h:815
@ eFlipXY
Tile image such that alternate columns of tiles are flipped horizontally AND alternate rows of tiles ...
Definition idombrush.h:821
@ eFlipY
Tile image such that alternate rows of tiles are flipped vertically. A square image consisting of a s...
Definition idombrush.h:820
@ eReflect
Fill the remaining area by reflecting the gradient, such that the finish point becomes the start of t...
Definition idombrush.h:439
@ eNoSpread
Do not fill the remaining area, but allow it to remain transparent.
Definition idombrush.h:441
@ eRepeat
Fill the remaining area by repeating the gradient from its first gradient stop, starting at the point...
Definition idombrush.h:440
@ ePad
Fill the remaining area with the color specified by the final gradient stop.
Definition idombrush.h:438
EDL iterator template classes designed to allow iteration over the contents of a collection....
#define DECL_SMART_PTR(cls)
Definition smartptr.h:211