| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfLabColorSpaceDictionary | 1 #ifndef __DEFINED__SkPdfLabColorSpaceDictionary |
| 2 #define __DEFINED__SkPdfLabColorSpaceDictionary | 2 #define __DEFINED__SkPdfLabColorSpaceDictionary |
| 3 | 3 |
| 4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
| 5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
| 6 #include "SkPdfDictionary_autogen.h" | 6 #include "SkPdfDictionary_autogen.h" |
| 7 | 7 |
| 8 // Entries in a Lab color space dictionary |
| 8 class SkPdfLabColorSpaceDictionary : public SkPdfDictionary { | 9 class SkPdfLabColorSpaceDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kLabColorSpaceDictionary_SkPd
fObjectType;} | 11 virtual SkPdfObjectType getType() const { return kLabColorSpaceDictionary_SkPd
fObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kLabColo
rSpaceDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kLabColo
rSpaceDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return this
;} | 14 virtual SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() {return this
;} |
| 14 virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const
{return this;} | 15 virtual const SkPdfLabColorSpaceDictionary* asLabColorSpaceDictionary() const
{return this;} |
| 15 | 16 |
| 16 private: | 17 private: |
| 17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 515 |
| 515 public: | 516 public: |
| 516 private: | 517 private: |
| 517 public: | 518 public: |
| 518 SkPdfLabColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const Pdf
Object* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfLabColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const Pdf
Object* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 519 | 520 |
| 520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 521 | 522 |
| 522 SkPdfLabColorSpaceDictionary& operator=(const SkPdfLabColorSpaceDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} | 523 SkPdfLabColorSpaceDictionary& operator=(const SkPdfLabColorSpaceDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} |
| 523 | 524 |
| 525 /** (Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus
value, |
| 526 * in the CIE 1931 XYZ space, of the diffuse white point; see "CalRGB Color Spa
ces" on |
| 527 * page 184 for further discussion. The numbers XW and ZW must be positive, and
YW |
| 528 * must be equal to 1.0. |
| 529 **/ |
| 530 bool has_WhitePoint() const { |
| 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "White
Point", "", NULL)); |
| 532 } |
| 533 |
| 524 SkPdfArray WhitePoint() const { | 534 SkPdfArray WhitePoint() const { |
| 525 SkPdfArray ret; | 535 SkPdfArray ret; |
| 526 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint
", "", &ret)) return ret; | 536 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint
", "", &ret)) return ret; |
| 527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 537 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 528 return SkPdfArray(); | 538 return SkPdfArray(); |
| 529 } | 539 } |
| 530 | 540 |
| 541 /** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus
value, in |
| 542 * the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB Color Spaces
" on |
| 543 * page 184 for further discussion. All three of these numbers must be nonnegat
ive. |
| 544 * Default value: [0.0 0.0 0.0]. |
| 545 **/ |
| 546 bool has_BlackPoint() const { |
| 547 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black
Point", "", NULL)); |
| 548 } |
| 549 |
| 531 SkPdfArray BlackPoint() const { | 550 SkPdfArray BlackPoint() const { |
| 532 SkPdfArray ret; | 551 SkPdfArray ret; |
| 533 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint
", "", &ret)) return ret; | 552 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint
", "", &ret)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 553 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return SkPdfArray(); | 554 return SkPdfArray(); |
| 536 } | 555 } |
| 537 | 556 |
| 557 /** (Optional) An array of four numbers [ amin amax bmin bmax ] specifying the r
ange of |
| 558 * valid values for the a* and b* (B and C) components of the color space-that
is, |
| 559 * a min <= a* <= a max |
| 560 * and |
| 561 * b min <= b* <= b max |
| 562 * Component values falling outside the specified range will be adjusted to the
nearest |
| 563 * valid value without error indication. Default value: [ -100 100 -100 100]. |
| 564 **/ |
| 565 bool has_Range() const { |
| 566 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range
", "", NULL)); |
| 567 } |
| 568 |
| 538 SkPdfArray Range() const { | 569 SkPdfArray Range() const { |
| 539 SkPdfArray ret; | 570 SkPdfArray ret; |
| 540 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", ""
, &ret)) return ret; | 571 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", ""
, &ret)) return ret; |
| 541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 572 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 542 return SkPdfArray(); | 573 return SkPdfArray(); |
| 543 } | 574 } |
| 544 | 575 |
| 545 }; | 576 }; |
| 546 | 577 |
| 547 #endif // __DEFINED__SkPdfLabColorSpaceDictionary | 578 #endif // __DEFINED__SkPdfLabColorSpaceDictionary |
| OLD | NEW |