OLD | NEW |
1 #ifndef __DEFINED__SkPdfType3FunctionDictionary | 1 #ifndef __DEFINED__SkPdfType3FunctionDictionary |
2 #define __DEFINED__SkPdfType3FunctionDictionary | 2 #define __DEFINED__SkPdfType3FunctionDictionary |
3 | 3 |
4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
8 | 8 |
9 // Additional entries specific to a type 3 function dictionary | 9 // Additional entries specific to a type 3 function dictionary |
10 class SkPdfType3FunctionDictionary : public SkPdfDictionary { | 10 class SkPdfType3FunctionDictionary : public SkPdfDictionary { |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 SkPdfType3FunctionDictionary& operator=(const SkPdfType3FunctionDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} | 526 SkPdfType3FunctionDictionary& operator=(const SkPdfType3FunctionDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} |
527 | 527 |
528 /** (Required) An array of k 1-input functions making up the stitching function.
The out- | 528 /** (Required) An array of k 1-input functions making up the stitching function.
The out- |
529 * put dimensionality of all functions must be the same, and compatible with th
e value of | 529 * put dimensionality of all functions must be the same, and compatible with th
e value of |
530 * Range if Range is present. | 530 * Range if Range is present. |
531 **/ | 531 **/ |
532 bool has_Functions() const { | 532 bool has_Functions() const { |
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Funct
ions", "", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Funct
ions", "", NULL)); |
534 } | 534 } |
535 | 535 |
536 SkPdfArray* Functions() const { | 536 SkPdfArray* Functions() const; |
537 SkPdfArray* ret; | |
538 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Functions"
, "", &ret)) return ret; | |
539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
540 return NULL; | |
541 } | |
542 | |
543 /** (Required) An array of k - 1 numbers that, in combination with Domain, defin
e the | 537 /** (Required) An array of k - 1 numbers that, in combination with Domain, defin
e the |
544 * intervals to which each function from the Functions array applies. Bounds el
ements | 538 * intervals to which each function from the Functions array applies. Bounds el
ements |
545 * must be in order of increasing value, and each value must be within the doma
in | 539 * must be in order of increasing value, and each value must be within the doma
in |
546 * defined by Domain. | 540 * defined by Domain. |
547 **/ | 541 **/ |
548 bool has_Bounds() const { | 542 bool has_Bounds() const { |
549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bound
s", "", NULL)); | 543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bound
s", "", NULL)); |
550 } | 544 } |
551 | 545 |
552 SkPdfArray* Bounds() const { | 546 SkPdfArray* Bounds() const; |
553 SkPdfArray* ret; | |
554 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bounds", "
", &ret)) return ret; | |
555 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
556 return NULL; | |
557 } | |
558 | |
559 /** (Required) An array of 2 x k numbers that, taken in pairs, map each subset o
f the do- | 547 /** (Required) An array of 2 x k numbers that, taken in pairs, map each subset o
f the do- |
560 * main defined by Domain and the Bounds array to the domain of the correspondi
ng | 548 * main defined by Domain and the Bounds array to the domain of the correspondi
ng |
561 * function. | 549 * function. |
562 **/ | 550 **/ |
563 bool has_Encode() const { | 551 bool has_Encode() const { |
564 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod
e", "", NULL)); | 552 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod
e", "", NULL)); |
565 } | 553 } |
566 | 554 |
567 SkPdfArray* Encode() const { | 555 SkPdfArray* Encode() const; |
568 SkPdfArray* ret; | |
569 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", "
", &ret)) return ret; | |
570 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
571 return NULL; | |
572 } | |
573 | |
574 }; | 556 }; |
575 | 557 |
576 #endif // __DEFINED__SkPdfType3FunctionDictionary | 558 #endif // __DEFINED__SkPdfType3FunctionDictionary |
OLD | NEW |