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

int wxPdfDocument::CoonsPatchGradient ( const wxPdfCoonsPatchMesh mesh,
double  minCoord = 0,
double  maxCoord = 1 
) [virtual]

Defines a coons patch mesh gradient shading.

Parameters:
meshcoons patch mesh to be used for the gradient
minCoordminimal coordinate of the mesh
maxCoordmaximal coordinate of the mesh

Definition at line 1949 of file pdfgraphics.cpp.

References wxPdfCoonsPatchMesh::Ok().

{
  int n = 0;
  if (mesh.Ok())
  {
    n = (*m_gradients).size()+1;
    (*m_gradients)[n] = new wxPdfCoonsPatchGradient(mesh, minCoord, maxCoord);
  }
  else
  {
    wxLogError(_("wxPdfDocument::CoonsPatchGradient: Mesh is invalid."));
  }
  return n;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index