Index: experimental/PdfViewer/SkPdfType5ShadingDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfType5ShadingDictionary_autogen.h (revision 9684) |
+++ experimental/PdfViewer/SkPdfType5ShadingDictionary_autogen.h (working copy) |
@@ -5,6 +5,7 @@ |
#include "SkPdfArray_autogen.h" |
#include "SkPdfShadingDictionary_autogen.h" |
+// Additional entries specific to a type 5 shading dictionary |
class SkPdfType5ShadingDictionary : public SkPdfShadingDictionary { |
public: |
virtual SkPdfObjectType getType() const { return kType5ShadingDictionary_SkPdfObjectType;} |
@@ -38,6 +39,13 @@ |
SkPdfType5ShadingDictionary& operator=(const SkPdfType5ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
+/** (Required) The number of bits used to represent each vertex coordinate. |
+ * Valid values are 1, 2, 4, 8, 12, 16, 24, and 32. |
+**/ |
+ bool has_BitsPerCoordinate() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", NULL)); |
+ } |
+ |
long BitsPerCoordinate() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", &ret)) return ret; |
@@ -45,6 +53,13 @@ |
return 0; |
} |
+/** (Required) The number of bits used to represent each color component. |
+ * Valid values are 1, 2, 4, 8, 12, and 16. |
+**/ |
+ bool has_BitsPerComponent() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); |
+ } |
+ |
long BitsPerComponent() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; |
@@ -52,6 +67,14 @@ |
return 0; |
} |
+/** (Required) The number of vertices in each row of the lattice; the value |
+ * must be greater than or equal to 2. The number of rows need not be |
+ * specified. |
+**/ |
+ bool has_VerticesPerRow() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "VerticesPerRow", "", NULL)); |
+ } |
+ |
long VerticesPerRow() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "VerticesPerRow", "", &ret)) return ret; |
@@ -59,6 +82,18 @@ |
return 0; |
} |
+/** (Required) An array of numbers specifying how to map vertex coordinates |
+ * and color components into the appropriate ranges of values. The de- |
+ * coding method is similar to that used in image dictionaries (see "Decode |
+ * Arrays" on page 271). The ranges are specified as follows: |
+ * [ xmin xmax ymin ymax c1,min c1,max ... cn,min cn,max ] |
+ * Note that only one pair of c values should be specified if a Function entry |
+ * is present. |
+**/ |
+ bool has_Decode() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); |
+ } |
+ |
SkPdfArray Decode() const { |
SkPdfArray ret; |
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; |
@@ -66,6 +101,23 @@ |
return SkPdfArray(); |
} |
+/** (Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions |
+ * (where n is the number of color components in the shading dictionary's |
+ * color space). If this entry is present, the color data for each vertex must be |
+ * specified by a single parametric variable rather than by n separate color |
+ * components; the designated function(s) will be called with each interpo- |
+ * lated value of the parametric variable to determine the actual color at each |
+ * point. Each input value will be forced into the range interval specified for |
+ * the corresponding color component in the shading dictionary's Decode |
+ * array. Each function's domain must be a superset of that interval. If the |
+ * value returned by the function for a given color component is out of |
+ * range, it will be adjusted to the nearest valid value. |
+ * This entry may not be used with an Indexed color space. |
+**/ |
+ bool has_Function() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); |
+ } |
+ |
SkPdfFunction Function() const { |
SkPdfFunction ret; |
if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; |