| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfCalrgbColorSpaceDictionary | 1 #ifndef __DEFINED__SkPdfCalrgbColorSpaceDictionary |
| 2 #define __DEFINED__SkPdfCalrgbColorSpaceDictionary | 2 #define __DEFINED__SkPdfCalrgbColorSpaceDictionary |
| 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 // Entries in a CalRGB color space dictionary | 9 // Entries in a CalRGB color space dictionary |
| 10 class SkPdfCalrgbColorSpaceDictionary : public SkPdfDictionary { | 10 class SkPdfCalrgbColorSpaceDictionary : public SkPdfDictionary { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 SkPdfCalrgbColorSpaceDictionary& operator=(const SkPdfCalrgbColorSpaceDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} | 526 SkPdfCalrgbColorSpaceDictionary& operator=(const SkPdfCalrgbColorSpaceDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} |
| 527 | 527 |
| 528 /** (Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus
value, | 528 /** (Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus
value, |
| 529 * in the CIE 1931 XYZ space, of the diffuse white point; see below for further
discus- | 529 * in the CIE 1931 XYZ space, of the diffuse white point; see below for further
discus- |
| 530 * sion. The numbers XW and ZW must be positive, and YW must be equal to 1.0. | 530 * sion. The numbers XW and ZW must be positive, and YW must be equal to 1.0. |
| 531 **/ | 531 **/ |
| 532 bool has_WhitePoint() const { | 532 bool has_WhitePoint() const { |
| 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "White
Point", "", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "White
Point", "", NULL)); |
| 534 } | 534 } |
| 535 | 535 |
| 536 SkPdfArray* WhitePoint() const { | 536 SkPdfArray* WhitePoint() const; |
| 537 SkPdfArray* ret; | |
| 538 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint
", "", &ret)) return ret; | |
| 539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 540 return NULL; | |
| 541 } | |
| 542 | |
| 543 /** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus
value, in | 537 /** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus
value, in |
| 544 * the CIE 1931 XYZ space, of the diffuse black point; see below for further di
scussion. | 538 * the CIE 1931 XYZ space, of the diffuse black point; see below for further di
scussion. |
| 545 * All three of these numbers must be nonnegative. Default value: [0.0 0.0 0.0]
. | 539 * All three of these numbers must be nonnegative. Default value: [0.0 0.0 0.0]
. |
| 546 **/ | 540 **/ |
| 547 bool has_BlackPoint() const { | 541 bool has_BlackPoint() const { |
| 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black
Point", "", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black
Point", "", NULL)); |
| 549 } | 543 } |
| 550 | 544 |
| 551 SkPdfArray* BlackPoint() const { | 545 SkPdfArray* BlackPoint() const; |
| 552 SkPdfArray* ret; | |
| 553 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint
", "", &ret)) return ret; | |
| 554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 555 return NULL; | |
| 556 } | |
| 557 | |
| 558 /** (Optional) An array of three numbers [ GR GG GB ] specifying the gamma for t
he red, | 546 /** (Optional) An array of three numbers [ GR GG GB ] specifying the gamma for t
he red, |
| 559 * green, and blue (A, B, and C) components of the color space. Default value: | 547 * green, and blue (A, B, and C) components of the color space. Default value: |
| 560 * [1.0 1.0 1.0]. | 548 * [1.0 1.0 1.0]. |
| 561 **/ | 549 **/ |
| 562 bool has_Gamma() const { | 550 bool has_Gamma() const { |
| 563 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma
", "", NULL)); | 551 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma
", "", NULL)); |
| 564 } | 552 } |
| 565 | 553 |
| 566 SkPdfArray* Gamma() const { | 554 SkPdfArray* Gamma() const; |
| 567 SkPdfArray* ret; | |
| 568 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Gamma", ""
, &ret)) return ret; | |
| 569 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 570 return NULL; | |
| 571 } | |
| 572 | |
| 573 /** (Optional) An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifyin
g | 555 /** (Optional) An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifyin
g |
| 574 * the linear interpretation of the decoded A, B, and C components of the color
space | 556 * the linear interpretation of the decoded A, B, and C components of the color
space |
| 575 * with respect to the final XYZ representation. Default value: the identity ma
trix | 557 * with respect to the final XYZ representation. Default value: the identity ma
trix |
| 576 * [1 0 0 0 1 0 0 0 1]. | 558 * [1 0 0 0 1 0 0 0 1]. |
| 577 **/ | 559 **/ |
| 578 bool has_Matrix() const { | 560 bool has_Matrix() const { |
| 579 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matri
x", "", NULL)); | 561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matri
x", "", NULL)); |
| 580 } | 562 } |
| 581 | 563 |
| 582 SkPdfArray* Matrix() const { | 564 SkPdfArray* Matrix() const; |
| 583 SkPdfArray* ret; | |
| 584 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "
", &ret)) return ret; | |
| 585 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 586 return NULL; | |
| 587 } | |
| 588 | |
| 589 }; | 565 }; |
| 590 | 566 |
| 591 #endif // __DEFINED__SkPdfCalrgbColorSpaceDictionary | 567 #endif // __DEFINED__SkPdfCalrgbColorSpaceDictionary |
| OLD | NEW |