Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::Translate ( double  tx,
double  ty 
) [virtual]

Moves the origin.

Parameters:
tx,:movement to the right
ty,:movement to the bottom

Definition at line 1730 of file pdfgraphics.cpp.

References m_inTransform, StartTransform(), and Transform().

Referenced by TranslateX(), and TranslateY().

{
  if (m_inTransform == 0)
  {
    StartTransform();
  }
  // calculate elements of transformation matrix
  double tm[6];
  tm[0] = 1;
  tm[1] = 0;
  tm[2] = 0;
  tm[3] = 1;
  tm[4] = tx;
  tm[5] = -ty;
  // translate the coordinate system
  Transform(tm);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index