OLD | NEW |
1 #ifndef __DEFINED__SkPdfLabColorSpaceDictionary | 1 #ifndef __DEFINED__SkPdfLabColorSpaceDictionary |
2 #define __DEFINED__SkPdfLabColorSpaceDictionary | 2 #define __DEFINED__SkPdfLabColorSpaceDictionary |
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 Lab color space dictionary | 9 // Entries in a Lab color space dictionary |
10 class SkPdfLabColorSpaceDictionary : public SkPdfDictionary { | 10 class SkPdfLabColorSpaceDictionary : public SkPdfDictionary { |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 "CalRGB Color Spa
ces" on | 529 * in the CIE 1931 XYZ space, of the diffuse white point; see "CalRGB Color Spa
ces" on |
530 * page 184 for further discussion. The numbers XW and ZW must be positive, and
YW | 530 * page 184 for further discussion. The numbers XW and ZW must be positive, and
YW |
531 * must be equal to 1.0. | 531 * must be equal to 1.0. |
532 **/ | 532 **/ |
533 bool has_WhitePoint() const { | 533 bool has_WhitePoint() const { |
534 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "White
Point", "", NULL)); | 534 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "White
Point", "", NULL)); |
535 } | 535 } |
536 | 536 |
537 SkPdfArray* WhitePoint() const { | 537 SkPdfArray* WhitePoint() const; |
538 SkPdfArray* ret; | |
539 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint
", "", &ret)) return ret; | |
540 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
541 return NULL; | |
542 } | |
543 | |
544 /** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus
value, in | 538 /** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus
value, in |
545 * the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB Color Spaces
" on | 539 * the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB Color Spaces
" on |
546 * page 184 for further discussion. All three of these numbers must be nonnegat
ive. | 540 * page 184 for further discussion. All three of these numbers must be nonnegat
ive. |
547 * Default value: [0.0 0.0 0.0]. | 541 * Default value: [0.0 0.0 0.0]. |
548 **/ | 542 **/ |
549 bool has_BlackPoint() const { | 543 bool has_BlackPoint() const { |
550 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black
Point", "", NULL)); | 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black
Point", "", NULL)); |
551 } | 545 } |
552 | 546 |
553 SkPdfArray* BlackPoint() const { | 547 SkPdfArray* BlackPoint() const; |
554 SkPdfArray* ret; | |
555 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint
", "", &ret)) return ret; | |
556 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
557 return NULL; | |
558 } | |
559 | |
560 /** (Optional) An array of four numbers [ amin amax bmin bmax ] specifying the r
ange of | 548 /** (Optional) An array of four numbers [ amin amax bmin bmax ] specifying the r
ange of |
561 * valid values for the a* and b* (B and C) components of the color space-that
is, | 549 * valid values for the a* and b* (B and C) components of the color space-that
is, |
562 * a min <= a* <= a max | 550 * a min <= a* <= a max |
563 * and | 551 * and |
564 * b min <= b* <= b max | 552 * b min <= b* <= b max |
565 * Component values falling outside the specified range will be adjusted to the
nearest | 553 * Component values falling outside the specified range will be adjusted to the
nearest |
566 * valid value without error indication. Default value: [ -100 100 -100 100]. | 554 * valid value without error indication. Default value: [ -100 100 -100 100]. |
567 **/ | 555 **/ |
568 bool has_Range() const { | 556 bool has_Range() const { |
569 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range
", "", NULL)); | 557 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range
", "", NULL)); |
570 } | 558 } |
571 | 559 |
572 SkPdfArray* Range() const { | 560 SkPdfArray* Range() const; |
573 SkPdfArray* ret; | |
574 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", ""
, &ret)) return ret; | |
575 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
576 return NULL; | |
577 } | |
578 | |
579 }; | 561 }; |
580 | 562 |
581 #endif // __DEFINED__SkPdfLabColorSpaceDictionary | 563 #endif // __DEFINED__SkPdfLabColorSpaceDictionary |
OLD | NEW |