Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: experimental/PdfViewer/SkPdfType3FunctionDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfType3FunctionDictionary 1 #ifndef __DEFINED__SkPdfType3FunctionDictionary
2 #define __DEFINED__SkPdfType3FunctionDictionary 2 #define __DEFINED__SkPdfType3FunctionDictionary
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 // Additional entries specific to a type 3 function dictionary
8 class SkPdfType3FunctionDictionary : public SkPdfDictionary { 9 class SkPdfType3FunctionDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kType3FunctionDictionary_SkPd fObjectType;} 11 virtual SkPdfObjectType getType() const { return kType3FunctionDictionary_SkPd fObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3Fu nctionDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3Fu nctionDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return this ;} 14 virtual SkPdfType3FunctionDictionary* asType3FunctionDictionary() {return this ;}
14 virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() const {return this;} 15 virtual const SkPdfType3FunctionDictionary* asType3FunctionDictionary() 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
514 515
515 public: 516 public:
516 private: 517 private:
517 public: 518 public:
518 SkPdfType3FunctionDictionary(const PdfMemDocument* podofoDoc = NULL, const Pdf Object* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfType3FunctionDictionary(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 SkPdfType3FunctionDictionary& operator=(const SkPdfType3FunctionDictionary& fr om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret urn *this;} 523 SkPdfType3FunctionDictionary& operator=(const SkPdfType3FunctionDictionary& fr om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret urn *this;}
523 524
525 /** (Required) An array of k 1-input functions making up the stitching function. The out-
526 * put dimensionality of all functions must be the same, and compatible with th e value of
527 * Range if Range is present.
528 **/
529 bool has_Functions() const {
530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Funct ions", "", NULL));
531 }
532
524 SkPdfArray Functions() const { 533 SkPdfArray Functions() const {
525 SkPdfArray ret; 534 SkPdfArray ret;
526 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Functions" , "", &ret)) return ret; 535 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Functions" , "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 536 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return SkPdfArray(); 537 return SkPdfArray();
529 } 538 }
530 539
540 /** (Required) An array of k - 1 numbers that, in combination with Domain, defin e the
541 * intervals to which each function from the Functions array applies. Bounds el ements
542 * must be in order of increasing value, and each value must be within the doma in
543 * defined by Domain.
544 **/
545 bool has_Bounds() const {
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bound s", "", NULL));
547 }
548
531 SkPdfArray Bounds() const { 549 SkPdfArray Bounds() const {
532 SkPdfArray ret; 550 SkPdfArray ret;
533 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bounds", " ", &ret)) return ret; 551 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bounds", " ", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 552 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return SkPdfArray(); 553 return SkPdfArray();
536 } 554 }
537 555
556 /** (Required) An array of 2 x k numbers that, taken in pairs, map each subset o f the do-
557 * main defined by Domain and the Bounds array to the domain of the correspondi ng
558 * function.
559 **/
560 bool has_Encode() const {
561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod e", "", NULL));
562 }
563
538 SkPdfArray Encode() const { 564 SkPdfArray Encode() const {
539 SkPdfArray ret; 565 SkPdfArray ret;
540 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", " ", &ret)) return ret; 566 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encode", " ", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 567 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return SkPdfArray(); 568 return SkPdfArray();
543 } 569 }
544 570
545 }; 571 };
546 572
547 #endif // __DEFINED__SkPdfType3FunctionDictionary 573 #endif // __DEFINED__SkPdfType3FunctionDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698