Mako 8.3.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 * @brief Create a visual root node.
1435 * Throws an IEDLError on failure.
1436 * @param pFactory The factory to use.
1437 * @return @b IDOMVisualRootPtr The new visual root node.
1438 */
1439 static EDL_API IDOMVisualRootPtr create(IEDLClassFactory *pFactory);
1440
1441};
1442#define edlobj2IDOMVisualRoot(src) edl_cast((IDOMVisualRoot *)NULL, src)
1443
1444
1455{
1456#define IDOMSoftMaskBrushClassID 0x27315fbf, 0x8f3246a9, 0x929eb580, 0x13f7955d
1457 public:
1461 typedef enum
1462 {
1465 } eSoftMaskType;
1466
1479 static EDL_API IDOMSoftMaskBrushPtr create(IEDLClassFactory *pFactory,
1480 const IDOMTransparencyGroupPtr &group,
1481 eSoftMaskType type,
1482 const FMatrix &renderTransform = FMatrix(),
1483 const IDOMColorPtr &backdropColor = IDOMColorPtr(),
1484 const IDOMFunctionPtr &transfer = IDOMFunctionPtr());
1485
1490 class Data : public CClassParams
1491 {
1492 public:
1494 {
1495 }
1497 float opacity;
1498 IDOMTransparencyGroupPtr group;
1499 IDOMColorPtr backdropColor;
1500 IDOMFunctionPtr transfer;
1502 };
1503
1508 static const CClassID &classID()
1509 {
1511 return id;
1512 };
1513
1518 virtual eSoftMaskType getSoftMaskType() const = 0;
1519
1524 virtual IDOMTransparencyGroupPtr getGroup() const = 0;
1525
1530 virtual IDOMColorPtr getBackdropColor() const = 0;
1531
1536 virtual IDOMFunctionPtr getTransferFunction() const = 0;
1537
1538};
1539
1540#define edlobj2IDOMSoftMaskBrush(src) edl_cast((IDOMSoftMaskBrush *)NULL, src)
1541
1542
1549{
1550#define IDOMTilingPatternBrushClassID 0xE987B191, 0x552840e1, 0xAFA8EC97, 0x2C6EE3DC
1551 public:
1552
1569 static EDL_API IDOMTilingPatternBrushPtr create(IEDLClassFactory *pFactory,
1570 const IDOMNodePtr &visual, const FRect &bBox,
1571 uint8 paintType, const IDOMColorPtr &color,
1572 float xStep, float yStep,
1573 uint8 tilingType = 1,
1574 const FMatrix &renderTransform = FMatrix());
1575
1580 class Data : public CClassParams
1581 {
1582 public:
1584 {
1585 opacity = 1.0f;
1586 paintType = 0;
1587 patternType = 1;
1588 tilingType = 1;
1589 opacity = 1.0f;
1590 bBox = FBox(0.0, 0.0, 1.0, 1.0);
1591 xstep = 1;
1592 ystep = 1;
1594 }
1595 float opacity;
1598 float xstep;
1599 float ystep;
1603
1604 /* for uncolored patterns, these are the color to use for the
1605 * specific invocation of setpattern
1606 */
1607 IDOMColorPtr patternColor;
1608
1609 IDOMNodePtr visual;
1610 };
1611
1616 static const CClassID &classID()
1617 {
1619 return id;
1620 };
1621
1626 virtual uint8 getPatternType () const = 0;
1627
1632 virtual const FBox &getBBox () const = 0;
1633
1638 virtual void setBBox (const FBox &bBox) = 0;
1639
1640#ifdef SWIG
1641 %apply float &OUTPUT { float &xstep };
1642 %apply float &OUTPUT { float &ystep };
1643#endif
1649 virtual void getTilingStep (float &xstep, float &ystep) const = 0;
1650#ifdef SWIG
1651 %clear float &xstep;
1652 %clear float &ystep;
1653#endif
1654
1660 virtual void setTilingStep (float xstep, float ystep) = 0;
1661
1666 virtual void setPaintType (uint8 paintType) = 0;
1667
1672 virtual uint8 getPaintType () const = 0;
1673
1678 virtual void setTilingType (uint8 tilingType) = 0;
1679
1684 virtual uint8 getTilingType () const = 0;
1685
1690 virtual void setPatternColor (const IDOMColorPtr &color) = 0;
1691
1696 virtual IDOMColorPtr getPatternColor () const = 0;
1697
1702 virtual IDOMNodePtr getVisual() const = 0;
1703
1708 virtual void setVisual(const IDOMNodePtr &ptrVisual) = 0;
1709
1717 virtual IDOMVisualBrushPtr getEquivalentVisualBrush(IEDLClassFactory *pFactory) = 0;
1718
1731 virtual IDOMTilingPatternBrushPtr getColoredTilingPatternBrush(IEDLClassFactory *pFactory,
1732 bool overprint = false) = 0;
1733
1734};
1735#define edlobj2IDOMTilingPatternBrush(src) edl_cast((IDOMTilingPatternBrush *)NULL, src)
1736
1737
1744{
1745 public:
1746
1751 virtual uint8 getShadingType () const = 0;
1752
1758 virtual bool getBBox (FBox &bBox) const = 0;
1759
1764 virtual void setBBox (const FBox &bBox) = 0;
1765
1770 virtual void setBackgroundColor (const IDOMColorPtr &color) = 0;
1771
1778 virtual IDOMColorPtr getBackgroundColor () const = 0;
1779
1784 virtual void setColorSpace (const IDOMColorSpacePtr &colorSpace) = 0;
1785
1790 virtual IDOMColorSpacePtr getColorSpace () const = 0;
1791
1803 virtual void setColorSpace (IEDLClassFactory *pFactory, const IDOMColorSpacePtr &colorSpace, eRenderingIntent intent, eBlackPointCompensation bpc) = 0;
1804
1809 virtual void deIndex (IEDLClassFactory *pFactory) = 0;
1810
1815 virtual void setAntiAlias (bool antiAlias) = 0;
1816
1821 virtual bool getAntiAlias () const = 0;
1822
1827 virtual void setFunction (const IDOMFunctionPtr &function) = 0;
1828
1833 virtual IDOMFunctionPtr getFunction () const = 0;
1834
1835};
1836#define edlobj2IDOMShadingPatternBrush(src) edl_cast((IDOMShadingPatternBrush *)NULL, src)
1837
1838
1844
1846{
1847#define IDOMShadingPatternType1BrushClassID 0x599BD13A, 0xB5B74368, 0xA728CDF8, 0x621F8CC0
1848 public:
1849
1850#ifdef SWIG
1851#if SWIGJAVA
1852 %apply float[] { float domain[4] };
1853#endif
1854#if SWIGCSHARP
1855 %apply float INPUT[] { float domain[4] };
1856#endif
1857#endif
1874 static EDL_API IDOMShadingPatternType1BrushPtr create(IEDLClassFactory *pFactory,
1875 const IDOMColorSpacePtr &colorSpace,
1876 float domain[4],
1877 const IDOMFunctionPtr &function,
1878 bool hasBBox = false,
1879 const FBox &bBox = FBox(),
1880 const IDOMColorPtr &background = IDOMColorPtr(),
1881 const FMatrix &matrix = FMatrix(),
1882 const FMatrix &renderTransform = FMatrix(),
1883 bool antiAlias = false,
1884 float opacity = 1.0f);
1885#ifdef SWIG
1886 %clear float domain[4];
1887#endif
1888
1893 class Data : public CClassParams
1894 {
1895 public:
1897 {
1898 opacity = 1.0f;
1899 shadingType = 1;
1900 antiAlias = false;
1901 hasBBox = false;
1902
1903 bBox = FBox();
1904
1905 domain [0] = 0.0;
1906 domain [1] = 1.0;
1907 domain [2] = 0.0;
1908 domain [3] = 1.0;
1909
1910 function = NULL;
1911 }
1912
1913 /* common to all shading types */
1914 float opacity;
1919 IDOMColorSpacePtr colorSpace;
1920 IDOMColorPtr background;
1922
1923
1924 /* type 1 info */
1925 float domain [4];
1927 IDOMFunctionPtr function;
1928 };
1929
1934 static const CClassID &classID()
1935 {
1937 return id;
1938 };
1939
1940#ifdef SWIG
1941#if SWIGJAVA
1942 %apply float[] { float domain[4] };
1943#endif
1944#if SWIGCSHARP
1945 %apply float INPUT[] { float domain[4] };
1946#endif
1947#endif
1952 virtual void setDomain (float domain[4]) = 0;
1953#ifdef SWIG
1954 %clear float domain[4];
1955#endif
1956
1961 virtual const float *getDomain () const = 0;
1962
1967 virtual void setMatrix (const FMatrix &matrix) = 0;
1968
1973 virtual const FMatrix &getMatrix () = 0;
1974};
1975#define edlobj2IDOMShadingPatternType1Brush(src) edl_cast((IDOMShadingPatternType1Brush *)NULL, src)
1976
1977
1984{
1985#define IDOMShadingPatternType2BrushClassID 0xDDD7C873, 0x2C0045b6, 0xB67E54BE, 0x04AD6190
1986 public:
1987
1988#ifdef SWIG
1989#if SWIGJAVA
1990 %apply float[] { float domain[2] };
1991#endif
1992#if SWIGCSHARP
1993 %apply float INPUT[] { float domain[2] };
1994#endif
1995#endif
2015 static EDL_API IDOMShadingPatternType2BrushPtr create(IEDLClassFactory *pFactory,
2016 const FPoint &startPoint,
2017 const FPoint &endPoint,
2018 const IDOMColorSpacePtr &colorSpace,
2019 float domain[2],
2020 const IDOMFunctionPtr &function,
2021 bool extendStart = false,
2022 bool extendEnd = false,
2023 bool hasBBox = false,
2024 const FBox &bBox = FBox(),
2025 const IDOMColorPtr &background = IDOMColorPtr(),
2026 const FMatrix &renderTransform = FMatrix(),
2027 bool antiAlias = false,
2028 float opacity = 1.0f);
2029#ifdef SWIG
2030 %clear float domain[2];
2031#endif
2032
2037 class Data : public CClassParams
2038 {
2039 public:
2041 {
2042 opacity = 1.0f;
2043 shadingType = 2;
2044 antiAlias = false;
2045 hasBBox = false;
2046
2047 bBox = FBox();
2048
2049 startPoint = FPoint();
2050 endPoint = FPoint();
2051
2052 domain [0] = 0.0;
2053 domain [1] = 1.0;
2054
2055 function = NULL;
2056
2057 extend [0] = false;
2058 extend [1] = false;
2059 }
2060
2061 /* common to all shading types */
2062 float opacity;
2067 IDOMColorSpacePtr colorSpace;
2068 IDOMColorPtr background;
2070
2071 /* type 2 info */
2074 float domain [2];
2075 IDOMFunctionPtr function;
2076 bool extend [2];
2077 };
2078
2083 static const CClassID &classID()
2084 {
2086 return id;
2087 };
2088
2089#ifdef SWIG
2090#if SWIGJAVA
2091 %apply float[] { float domain[2] };
2092#endif
2093#if SWIGCSHARP
2094 %apply float INPUT[] { float domain[2] };
2095#endif
2096#endif
2101 virtual void setDomain (float domain[2]) = 0;
2102#ifdef SWIG
2103 %clear float domain[2];
2104#endif
2105
2110 virtual const float *getDomain () const = 0;
2111
2116 virtual void setStartPoint (const FPoint &point) = 0;
2117
2122 virtual const FPoint &getStartPoint () const = 0;
2123
2128 virtual void setEndPoint (const FPoint &point) = 0;
2129
2134 virtual const FPoint &getEndPoint () const = 0;
2135
2142 virtual void setExtend (bool extendStart, bool extendEnd) = 0;
2143
2144#ifdef SWIG
2145 %apply bool &OUTPUT { bool &extendStart };
2146 %apply bool &OUTPUT { bool &extendEnd };
2147#endif
2154 virtual void getExtend (bool &extendStart, bool &extendEnd) const = 0;
2155#ifdef SWIG
2156 %clear bool &extendStart;
2157 %clear bool &extendEnd;
2158#endif
2159
2171 virtual IDOMBrushPtr getEquivalentSimpleBrush(IEDLClassFactory *pFactory, uint32 maxSamples = 255) = 0;
2172};
2173
2174#define edlobj2IDOMShadingPatternType2Brush(src) edl_cast((IDOMShadingPatternType2Brush *)NULL, src)
2175
2176
2182
2184{
2185#define IDOMShadingPatternType3BrushClassID 0x383008FE, 0xB7D64314, 0x9B715287, 0xA57ACBDA
2186 public:
2187
2188#ifdef SWIG
2189#if SWIGJAVA
2190 %apply float[] { float domain[2] };
2191#endif
2192#if SWIGCSHARP
2193 %apply float INPUT[] { float domain[2] };
2194#endif
2195#endif
2217 static EDL_API IDOMShadingPatternType3BrushPtr create(IEDLClassFactory *pFactory,
2218 const FPoint &startCircleCenter,
2219 float startCircleRadius,
2220 const FPoint &endCircleCenter,
2221 float endCircleRadius,
2222 const IDOMColorSpacePtr &colorSpace,
2223 float domain[2],
2224 const IDOMFunctionPtr &function,
2225 bool extendStart = false,
2226 bool extendEnd = false,
2227 bool hasBBox = false,
2228 const FBox &bBox = FBox(),
2229 const IDOMColorPtr &background = IDOMColorPtr(),
2230 const FMatrix &renderTransform = FMatrix(),
2231 bool antiAlias = false,
2232 float opacity = 1.0f);
2233#ifdef SWIG
2234 %clear float domain[2];
2235#endif
2240 class Data : public CClassParams
2241 {
2242 public:
2244 {
2245 opacity = 1.0f;
2246 shadingType = 3;
2247 antiAlias = false;
2248 hasBBox = false;
2249
2250 bBox = FBox();
2251
2253 startCircleRadius = 0.0f;
2255 endCircleRadius = 0.0f;
2256
2257 domain [0] = 0.0;
2258 domain [1] = 1.0;
2259
2260 function = NULL;
2261
2262 extend [0] = false;
2263 extend [1] = false;
2264 }
2265
2266 /* common to all shading types */
2267 float opacity;
2272 IDOMColorSpacePtr colorSpace;
2273 IDOMColorPtr background;
2275
2276
2277 /* type 3 info */
2282 float domain [2];
2283 IDOMFunctionPtr function;
2284 bool extend [2];
2285 };
2286
2291 static const CClassID &classID()
2292 {
2294 return id;
2295 };
2296
2297#ifdef SWIG
2298#if SWIGJAVA
2299 %apply float[] { float domain[2] };
2300#endif
2301#if SWIGCSHARP
2302 %apply float INPUT[] { float domain[2] };
2303#endif
2304#endif
2309 virtual void setDomain (float domain[2]) = 0;
2310#ifdef SWIG
2311 %clear float domain[2];
2312#endif
2313
2318 virtual const float *getDomain () const = 0;
2319
2324 virtual void setStartCircleCenter (const FPoint &point) = 0;
2325
2330 virtual const FPoint &getStartCircleCenter () const = 0;
2331
2336 virtual void setStartCircleRadius(float radius) = 0;
2337
2342 virtual float getStartCircleRadius() const = 0;
2343
2348 virtual void setEndCircleCenter (const FPoint &point) = 0;
2349
2354 virtual const FPoint &getEndCircleCenter () const = 0;
2355
2360 virtual void setEndCircleRadius(float radius) = 0;
2361
2366 virtual float getEndCircleRadius() const = 0;
2367
2374 virtual void setExtend (bool extendStart, bool extendEnd) = 0;
2375
2376#ifdef SWIG
2377 %apply bool &OUTPUT { bool &extendStart };
2378 %apply bool &OUTPUT { bool &extendEnd };
2379#endif
2386 virtual void getExtend (bool &extendStart, bool &extendEnd) const = 0;
2387#ifdef SWIG
2388 %clear bool &extendStart;
2389 %clear bool &extendEnd;
2390#endif
2391
2404 virtual IDOMBrushPtr getEquivalentSimpleBrush(IEDLClassFactory *pFactory, uint32 maxSamples = 255) = 0;
2405};
2406
2407#define edlobj2IDOMShadingPatternType3Brush(src) edl_cast((IDOMShadingPatternType3Brush *)NULL, src)
2408
2409
2415
2417{
2418#define IDOMShadingPatternType4567BrushClassID 0x7204F554, 0x95984d30, 0xA090074B, 0xC03337EE
2419 public:
2420
2444 static EDL_API IDOMShadingPatternType4567BrushPtr create(IEDLClassFactory *pFactory,
2445 uint8 shadingType,
2446 const IDOMColorSpacePtr &colorSpace,
2447 const JawsMako::IPDFStringPtr &dataSource,
2448 const uint8 bitsPerCoordinate = 0,
2449 const uint8 bitsPerComponent = 0,
2450 const uint8 bitsPerFlag = 0,
2451 const int32 verticesPerRow = 0,
2452 const CEDLVector<float> &decode = CEDLVector<float>(),
2453 const IDOMFunctionPtr &function = IDOMFunctionPtr(),
2454 bool hasBBox = false,
2455 const FBox &bBox = FBox(),
2456 const IDOMColorPtr &background = IDOMColorPtr(),
2457 const FMatrix &renderTransform = FMatrix(),
2458 bool antiAlias = false,
2459 float opacity = 1.0f);
2460
2481
2509 static EDL_API IDOMShadingPatternType4567BrushPtr create(IEDLClassFactory *pFactory,
2510 uint8 shadingType,
2511 const IDOMColorSpacePtr &colorSpace,
2512 const IDOMFunctionPtr &function,
2513 const CMeshEntryVect &meshEntries,
2514 const uint8 bitsPerCoordinate = 16,
2515 const uint8 bitsPerComponent = 8,
2516 const uint8 bitsPerFlag = 8,
2517 const int32 verticesPerRow = 0,
2518 const CEDLVector<float> &decode = CEDLVector<float>(),
2519 bool hasBBox = false,
2520 const FBox &bBox = FBox(),
2521 const IDOMColorPtr &background = IDOMColorPtr(),
2522 const FMatrix &renderTransform = FMatrix(),
2523 bool antiAlias = false,
2524 float opacity = 1.0f);
2525
2530 class Data : public CClassParams
2531 {
2532 public:
2534 {
2535 opacity = 1.0f;
2536 shadingType = 4;
2537 antiAlias = false;
2538 hasBBox = false;
2539
2540 bBox = FBox();
2541
2543 bitsPerFlag = 0;
2544 bitsPerComponent = 0;
2545 verticesPerRow = 0;
2546 decode.resize(0);
2547 function = NULL;
2548 dataSource = NULL;
2549 }
2550
2551 virtual ~Data()
2552 {
2553 }
2554
2555 /* common to all shading types */
2556 float opacity;
2561 IDOMColorSpacePtr colorSpace;
2562 IDOMColorPtr background;
2564
2565 /* type 4, 5, 6, 7 info */
2570 JawsMako::IPDFStringPtr dataSource;
2572 IDOMFunctionPtr function;
2573 };
2574
2579 static const CClassID &classID()
2580 {
2582 return id;
2583 };
2584
2589 virtual void setShadingType (uint8 shadingType) = 0;
2590
2595 virtual void setDataSource (const JawsMako::IPDFStringPtr &dataSource) = 0;
2596
2601 virtual JawsMako::IPDFStringPtr getDataSource () const = 0;
2602
2607 virtual void setBitsPerCoordinate (uint8 bitsPerCoordinate) = 0;
2608
2613 virtual uint8 getBitsPerCoordinate () const = 0;
2614
2619 virtual void setBitsPerComponent (uint8 bitsPerComponent) = 0;
2620
2625 virtual uint8 getBitsPerComponent () const = 0;
2626
2631 virtual void setBitsPerFlag (uint8 bitsPerFlag) = 0;
2632
2637 virtual uint8 getBitsPerFlag () const = 0;
2638
2643 virtual void setVerticesPerRow (int32 verticesPerRow) = 0;
2644
2649 virtual int32 getVerticesPerRow () const = 0;
2650
2655 virtual void setDecode (const CEDLVector<float> &decode) = 0;
2656
2661 virtual const CEDLVector<float> &getDecode () const = 0;
2662
2668 virtual CMeshEntryVect getMeshEntries() const = 0;
2669
2675 virtual void setMeshEntries(const CMeshEntryVect &meshEntries) = 0;
2676};
2677#define edlobj2IDOMShadingPatternType4567Brush(src) edl_cast((IDOMShadingPatternType4567Brush *)NULL, src)
2678
2686
2688{
2689#define IDOMNullBrushClassID 0x98F3706B, 0x403E4a41, 0xA975A9B6, 0xD52C99CC
2690 public:
2691
2698 static EDL_API IDOMNullBrushPtr create(IEDLClassFactory *pFactory);
2699
2704 class Data : public CClassParams
2705 {
2706 public:
2708 {}
2709 float opacity;
2710 };
2711
2716 static const CClassID &classID()
2717 {
2718 static CClassID id(IDOMNullBrushClassID);
2719 return id;
2720 };
2721};
2722#define edlobj2IDOMNullBrush(src) edl_cast((IDOMNullBrush *)NULL, src)
2723
2725
2726
2727#endif /* EDLIDOMBRUSH_H */
2728
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:2707
float opacity
Definition idombrush.h:2709
IDOMNullBrush provides a way of representing the default marking brush in a Type3 postscript glyph de...
Definition idombrush.h:2688
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:2716
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:1744
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:1925
int shadingType
Definition idombrush.h:1915
FBox bBox
Definition idombrush.h:1916
float opacity
Definition idombrush.h:1914
IDOMColorPtr background
Definition idombrush.h:1920
Data()
Definition idombrush.h:1896
FMatrix renderTransform
Definition idombrush.h:1921
IDOMFunctionPtr function
Definition idombrush.h:1927
bool antiAlias
Definition idombrush.h:1918
IDOMColorSpacePtr colorSpace
Definition idombrush.h:1919
FMatrix matrix
Definition idombrush.h:1926
bool hasBBox
Definition idombrush.h:1917
IDOMShadingBrush provides a way of representing a PS style type 1 shading pattern.
Definition idombrush.h:1846
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:1934
FBox bBox
Definition idombrush.h:2064
IDOMFunctionPtr function
Definition idombrush.h:2075
IDOMColorPtr background
Definition idombrush.h:2068
bool antiAlias
Definition idombrush.h:2066
bool hasBBox
Definition idombrush.h:2065
FPoint startPoint
Definition idombrush.h:2072
IDOMColorSpacePtr colorSpace
Definition idombrush.h:2067
float domain[2]
Definition idombrush.h:2074
FPoint endPoint
Definition idombrush.h:2073
bool extend[2]
Definition idombrush.h:2076
float opacity
Definition idombrush.h:2062
Data()
Definition idombrush.h:2040
uint8 shadingType
Definition idombrush.h:2063
FMatrix renderTransform
Definition idombrush.h:2069
IDOMShadingBrush provides a way of representing a PS style type 2 shading pattern.
Definition idombrush.h:1984
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:2083
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:2267
IDOMFunctionPtr function
Definition idombrush.h:2283
bool extend[2]
Definition idombrush.h:2284
bool hasBBox
Definition idombrush.h:2270
uint8 shadingType
Definition idombrush.h:2268
bool antiAlias
Definition idombrush.h:2271
FPoint endCircleCenter
Definition idombrush.h:2280
FPoint startCircleCenter
Definition idombrush.h:2278
FBox bBox
Definition idombrush.h:2269
float endCircleRadius
Definition idombrush.h:2281
IDOMColorPtr background
Definition idombrush.h:2273
float domain[2]
Definition idombrush.h:2282
Data()
Definition idombrush.h:2243
FMatrix renderTransform
Definition idombrush.h:2274
float startCircleRadius
Definition idombrush.h:2279
IDOMColorSpacePtr colorSpace
Definition idombrush.h:2272
IDOMShadingPatternType3Brush provides a way of representing a PS style type 2 shading pattern.
Definition idombrush.h:2184
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:2291
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:2471
CEDLVector< CEDLVector< float > > colors
Definition idombrush.h:2474
CEDLVector< FPoint > points
Definition idombrush.h:2472
CMeshEntry()
Definition idombrush.h:2470
float opacity
Definition idombrush.h:2556
IDOMColorPtr background
Definition idombrush.h:2562
uint8 bitsPerCoordinate
Definition idombrush.h:2566
IDOMColorSpacePtr colorSpace
Definition idombrush.h:2561
Data()
Definition idombrush.h:2533
virtual ~Data()
Definition idombrush.h:2551
IDOMFunctionPtr function
Definition idombrush.h:2572
JawsMako::IPDFStringPtr dataSource
Definition idombrush.h:2570
int32 verticesPerRow
Definition idombrush.h:2569
bool hasBBox
Definition idombrush.h:2559
uint8 shadingType
Definition idombrush.h:2557
FMatrix renderTransform
Definition idombrush.h:2563
FBox bBox
Definition idombrush.h:2558
uint8 bitsPerFlag
Definition idombrush.h:2567
CEDLVector< float > decode
Definition idombrush.h:2571
bool antiAlias
Definition idombrush.h:2560
uint8 bitsPerComponent
Definition idombrush.h:2568
IDOMShadingPatternType4567Brush provides a way of representing a PS style type 4 shading pattern.
Definition idombrush.h:2417
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:2480
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:2579
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:1501
IDOMTransparencyGroupPtr group
Definition idombrush.h:1498
IDOMFunctionPtr transfer
Definition idombrush.h:1500
Data()
Definition idombrush.h:1493
IDOMColorPtr backdropColor
Definition idombrush.h:1499
eSoftMaskType type
Definition idombrush.h:1496
float opacity
Definition idombrush.h:1497
IDOMSoftMaskBrush provides a way of representing a PDF style soft mask in its entirety....
Definition idombrush.h:1455
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:1508
eSoftMaskType
Enum for soft mask interpretation.
Definition idombrush.h:1462
@ eLuminosity
Definition idombrush.h:1464
@ eAlpha
Definition idombrush.h:1463
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:1583
float opacity
Definition idombrush.h:1595
uint8 patternType
Definition idombrush.h:1596
uint8 tilingType
Definition idombrush.h:1601
uint8 paintType
Definition idombrush.h:1600
FMatrix renderTransform
Definition idombrush.h:1602
float ystep
Definition idombrush.h:1599
IDOMColorPtr patternColor
Definition idombrush.h:1607
FBox bBox
Definition idombrush.h:1597
IDOMNodePtr visual
Definition idombrush.h:1609
float xstep
Definition idombrush.h:1598
IDOMTilingPatternBrush provides a way of representing a PS style tiling pattern.
Definition idombrush.h:1549
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:1616
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 EDL_API IDOMVisualRootPtr create(IEDLClassFactory *pFactory)
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:84
PointTmpl< double > FPoint
Definition edlgeom.h:102
CTransformMatrix< double > FMatrix
Definition edlgeom.h:1266
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:1985
#define IDOMSoftMaskBrushClassID
Definition idombrush.h:1456
#define IDOMImageBrushClassID
Definition idombrush.h:835
#define IDOMVisualRootClassID
Definition idombrush.h:1420
#define IDOMRadialGradientBrushClassID
Definition idombrush.h:662
#define IDOMShadingPatternType3BrushClassID
Definition idombrush.h:2185
#define IDOMGradientStopClassID
Definition idombrush.h:169
#define IDOMLinearGradientBrushClassID
Definition idombrush.h:538
#define IDOMVisualBrushClassID
Definition idombrush.h:1234
#define IDOMTilingPatternBrushClassID
Definition idombrush.h:1550
#define IDOMMaskedBrushClassID
Definition idombrush.h:1107
#define IDOMSolidColorBrushClassID
Definition idombrush.h:241
#define IDOMNullBrushClassID
Definition idombrush.h:2689
#define IDOMShadingPatternType1BrushClassID
Definition idombrush.h:1847
#define IDOMShadingPatternType4567BrushClassID
Definition idombrush.h:2418
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