Back to index

tetex-bin  3.0
Public Member Functions | Private Attributes
OutputDev Class Reference

#include <OutputDev.h>

List of all members.

Public Member Functions

 OutputDev ()
virtual ~OutputDev ()
virtual GBool upsideDown ()=0
virtual GBool useDrawChar ()=0
virtual GBool interpretType3Chars ()=0
virtual GBool needNonText ()
virtual void setDefaultCTM (double *ctm)
virtual void startPage (int pageNum, GfxState *state)
virtual void endPage ()
virtual void dump ()
virtual void cvtDevToUser (double dx, double dy, double *ux, double *uy)
virtual void cvtUserToDev (double ux, double uy, int *dx, int *dy)
virtual void drawLink (Link *link, Catalog *catalog)
virtual void saveState (GfxState *state)
virtual void restoreState (GfxState *state)
virtual void updateAll (GfxState *state)
virtual void updateCTM (GfxState *state, double m11, double m12, double m21, double m22, double m31, double m32)
virtual void updateLineDash (GfxState *state)
virtual void updateFlatness (GfxState *state)
virtual void updateLineJoin (GfxState *state)
virtual void updateLineCap (GfxState *state)
virtual void updateMiterLimit (GfxState *state)
virtual void updateLineWidth (GfxState *state)
virtual void updateFillColor (GfxState *state)
virtual void updateStrokeColor (GfxState *state)
virtual void updateFillOpacity (GfxState *state)
virtual void updateStrokeOpacity (GfxState *state)
virtual void updateFont (GfxState *state)
virtual void updateTextMat (GfxState *state)
virtual void updateCharSpace (GfxState *state)
virtual void updateRender (GfxState *state)
virtual void updateRise (GfxState *state)
virtual void updateWordSpace (GfxState *state)
virtual void updateHorizScaling (GfxState *state)
virtual void updateTextPos (GfxState *state)
virtual void updateTextShift (GfxState *state, double shift)
virtual void stroke (GfxState *state)
virtual void fill (GfxState *state)
virtual void eoFill (GfxState *state)
virtual void clip (GfxState *state)
virtual void eoClip (GfxState *state)
virtual void beginString (GfxState *state, GString *s)
virtual void endString (GfxState *state)
virtual void drawChar (GfxState *state, double x, double y, double dx, double dy, double originX, double originY, CharCode code, Unicode *u, int uLen)
virtual void drawString (GfxState *state, GString *s)
virtual GBool beginType3Char (GfxState *state, double x, double y, double dx, double dy, CharCode code, Unicode *u, int uLen)
virtual void endType3Char (GfxState *state)
virtual void endTextObject (GfxState *state)
virtual void drawImageMask (GfxState *state, Object *ref, Stream *str, int width, int height, GBool invert, GBool inlineImg)
virtual void drawImage (GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, int *maskColors, GBool inlineImg)
virtual void type3D0 (GfxState *state, double wx, double wy)
virtual void type3D1 (GfxState *state, double wx, double wy, double llx, double lly, double urx, double ury)
virtual void psXObject (Stream *psStream, Stream *level1Stream)

Private Attributes

double defCTM [6]
double defICTM [6]

Detailed Description

Definition at line 33 of file OutputDev.h.


Constructor & Destructor Documentation

OutputDev::OutputDev ( ) [inline]

Definition at line 37 of file OutputDev.h.

{}
virtual OutputDev::~OutputDev ( ) [inline, virtual]

Definition at line 40 of file OutputDev.h.

{}

Member Function Documentation

virtual void OutputDev::beginString ( GfxState state,
GString s 
) [inline, virtual]

Definition at line 121 of file OutputDev.h.

{}

Here is the caller graph for this function:

GBool OutputDev::beginType3Char ( GfxState state,
double  x,
double  y,
double  dx,
double  dy,
CharCode  code,
Unicode u,
int  uLen 
) [virtual]

Definition at line 63 of file OutputDev.cc.

                                                                 {
  return gFalse;
}

Here is the caller graph for this function:

virtual void OutputDev::clip ( GfxState state) [inline, virtual]

Definition at line 117 of file OutputDev.h.

{}

Here is the caller graph for this function:

void OutputDev::cvtDevToUser ( double  dx,
double  dy,
double *  ux,
double *  uy 
) [virtual]

Definition at line 41 of file OutputDev.cc.

                                                                         {
  *ux = defICTM[0] * dx + defICTM[2] * dy + defICTM[4];
  *uy = defICTM[1] * dx + defICTM[3] * dy + defICTM[5];
}
void OutputDev::cvtUserToDev ( double  ux,
double  uy,
int dx,
int dy 
) [virtual]

Definition at line 46 of file OutputDev.cc.

                                                                   {
  *dx = (int)(defCTM[0] * ux + defCTM[2] * uy + defCTM[4] + 0.5);
  *dy = (int)(defCTM[1] * ux + defCTM[3] * uy + defCTM[5] + 0.5);
}
virtual void OutputDev::drawChar ( GfxState state,
double  x,
double  y,
double  dx,
double  dy,
double  originX,
double  originY,
CharCode  code,
Unicode u,
int  uLen 
) [inline, virtual]

Definition at line 123 of file OutputDev.h.

                                                          {}

Here is the caller graph for this function:

void OutputDev::drawImage ( GfxState state,
Object ref,
Stream str,
int  width,
int  height,
GfxImageColorMap colorMap,
int maskColors,
GBool  inlineImg 
) [virtual]

Definition at line 83 of file OutputDev.cc.

                                                         {
  int i, j;

  if (inlineImg) {
    str->reset();
    j = height * ((width * colorMap->getNumPixelComps() *
                 colorMap->getBits() + 7) / 8);
    for (i = 0; i < j; ++i)
      str->getChar();
    str->close();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void OutputDev::drawImageMask ( GfxState state,
Object ref,
Stream str,
int  width,
int  height,
GBool  invert,
GBool  inlineImg 
) [virtual]

Definition at line 69 of file OutputDev.cc.

                                            {
  int i, j;

  if (inlineImg) {
    str->reset();
    j = height * ((width + 7) / 8);
    for (i = 0; i < j; ++i)
      str->getChar();
    str->close();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void OutputDev::drawLink ( Link link,
Catalog catalog 
) [inline, virtual]

Definition at line 79 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::drawString ( GfxState state,
GString s 
) [inline, virtual]

Definition at line 127 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::dump ( ) [inline, virtual]

Definition at line 70 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::endPage ( ) [inline, virtual]

Definition at line 67 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::endString ( GfxState state) [inline, virtual]

Definition at line 122 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::endTextObject ( GfxState state) [inline, virtual]

Definition at line 132 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::endType3Char ( GfxState state) [inline, virtual]

Definition at line 131 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::eoClip ( GfxState state) [inline, virtual]

Definition at line 118 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::eoFill ( GfxState state) [inline, virtual]

Definition at line 114 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::fill ( GfxState state) [inline, virtual]

Definition at line 113 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual GBool OutputDev::interpretType3Chars ( ) [pure virtual]

Here is the caller graph for this function:

virtual GBool OutputDev::needNonText ( ) [inline, virtual]

Definition at line 56 of file OutputDev.h.

{ return gTrue; }

Here is the caller graph for this function:

virtual void OutputDev::psXObject ( Stream psStream,
Stream level1Stream 
) [inline, virtual]

Definition at line 154 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::restoreState ( GfxState state) [inline, virtual]

Definition at line 83 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::saveState ( GfxState state) [inline, virtual]

Definition at line 82 of file OutputDev.h.

{}

Here is the caller graph for this function:

void OutputDev::setDefaultCTM ( double *  ctm) [virtual]

Definition at line 25 of file OutputDev.cc.

                                         {
  int i;
  double det;

  for (i = 0; i < 6; ++i) {
    defCTM[i] = ctm[i];
  }
  det = 1 / (defCTM[0] * defCTM[3] - defCTM[1] * defCTM[2]);
  defICTM[0] = defCTM[3] * det;
  defICTM[1] = -defCTM[1] * det;
  defICTM[2] = -defCTM[2] * det;
  defICTM[3] = defCTM[0] * det;
  defICTM[4] = (defCTM[2] * defCTM[5] - defCTM[3] * defCTM[4]) * det;
  defICTM[5] = (defCTM[1] * defCTM[4] - defCTM[0] * defCTM[5]) * det;
}

Here is the caller graph for this function:

virtual void OutputDev::startPage ( int  pageNum,
GfxState state 
) [inline, virtual]

Definition at line 64 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::stroke ( GfxState state) [inline, virtual]

Definition at line 112 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::type3D0 ( GfxState state,
double  wx,
double  wy 
) [inline, virtual]

Definition at line 149 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::type3D1 ( GfxState state,
double  wx,
double  wy,
double  llx,
double  lly,
double  urx,
double  ury 
) [inline, virtual]

Definition at line 150 of file OutputDev.h.

                                                                     {}

Here is the caller graph for this function:

void OutputDev::updateAll ( GfxState state) [virtual]

Definition at line 51 of file OutputDev.cc.

                                         {
  updateLineDash(state);
  updateFlatness(state);
  updateLineJoin(state);
  updateLineCap(state);
  updateMiterLimit(state);
  updateLineWidth(state);
  updateFillColor(state);
  updateStrokeColor(state);
  updateFont(state);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void OutputDev::updateCharSpace ( GfxState state) [inline, virtual]

Definition at line 103 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateCTM ( GfxState state,
double  m11,
double  m12,
double  m21,
double  m22,
double  m31,
double  m32 
) [inline, virtual]

Definition at line 87 of file OutputDev.h.

                                                                      {}

Here is the caller graph for this function:

virtual void OutputDev::updateFillColor ( GfxState state) [inline, virtual]

Definition at line 95 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateFillOpacity ( GfxState state) [inline, virtual]

Definition at line 97 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateFlatness ( GfxState state) [inline, virtual]

Definition at line 90 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateFont ( GfxState state) [inline, virtual]

Definition at line 101 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateHorizScaling ( GfxState state) [inline, virtual]

Definition at line 107 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateLineCap ( GfxState state) [inline, virtual]

Definition at line 92 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateLineDash ( GfxState state) [inline, virtual]

Definition at line 89 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateLineJoin ( GfxState state) [inline, virtual]

Definition at line 91 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateLineWidth ( GfxState state) [inline, virtual]

Definition at line 94 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateMiterLimit ( GfxState state) [inline, virtual]

Definition at line 93 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateRender ( GfxState state) [inline, virtual]

Definition at line 104 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateRise ( GfxState state) [inline, virtual]

Definition at line 105 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateStrokeColor ( GfxState state) [inline, virtual]

Definition at line 96 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateStrokeOpacity ( GfxState state) [inline, virtual]

Definition at line 98 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateTextMat ( GfxState state) [inline, virtual]

Definition at line 102 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateTextPos ( GfxState state) [inline, virtual]

Definition at line 108 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateTextShift ( GfxState state,
double  shift 
) [inline, virtual]

Definition at line 109 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual void OutputDev::updateWordSpace ( GfxState state) [inline, virtual]

Definition at line 106 of file OutputDev.h.

{}

Here is the caller graph for this function:

virtual GBool OutputDev::upsideDown ( ) [pure virtual]

Here is the caller graph for this function:

virtual GBool OutputDev::useDrawChar ( ) [pure virtual]

Here is the caller graph for this function:


Member Data Documentation

double OutputDev::defCTM[6] [private]

Definition at line 158 of file OutputDev.h.

double OutputDev::defICTM[6] [private]

Definition at line 159 of file OutputDev.h.


The documentation for this class was generated from the following files: