a2dAggDrawer Class Reference
[classes used for drawing with a2dDrawer2D]

the antigrain based drawing context derived from a2dDrawer2D More...

#include <aggdrawer.h>

Inheritance diagram for a2dAggDrawer:

Inheritance graph
[legend]
Collaboration diagram for a2dAggDrawer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dAggDrawer (int width=0, int height=0)
 Drawer having a buffer of w pixel wide and h pixels heigh.
 a2dAggDrawer (const wxSize &size)
 Drawer having a buffer of w pixel wide and h pixels height given by size.
 a2dAggDrawer (const wxBitmap &bitmap)
 a2dAggDrawer (const a2dAggDrawer &other)
 copy constructor
wxBitmap GetBuffer () const
 get buffer as bitmap pointer
wxImage & GetImageBuffer ()
 return wxImage which is used as buffer here
void SetBufferSize (int w, int h)
 set buffer size to w pixel wide and h pixels heigh
wxBitmap GetSubBitmap (wxRect sub_rect) const
 get part of the buffer given a rect
void CopyIntoBuffer (const wxBitmap &bitm)
void BlitBuffer (wxDC *dc, wxRect rect, const wxPoint &bufferpos=wxPoint(0, 0))
 used for blitting to a wxDC.
void ShiftBuffer (int dxy, bool yshift)
 quick scroll over small distance
void DrawImage (const wxImage &image, double x, double y, double width, double height, wxUint8 Opacity=255)
 Draw wxImage in world coordinates.
void DrawImage (const a2dImageRGBA &image, double x, double y, double width, double height, wxUint8 Opacity=255)

Protected Member Functions

void Render (bool fillColor)
virtual void RenderGradient (bool radial)
virtual void RenderBitmapFill ()
virtual void RenderSetClip ()

Protected Attributes

wxImage m_buffer
bool m_needbufferupdate


Detailed Description

the antigrain based drawing context derived from a2dDrawer2D

This drawing context does anti aliased and alpha drawing. And uses a wxImage as a buffer. A strong feature is the ability to draw (rotated) wxImage's

Definition at line 595 of file aggdrawer.h.


Constructor & Destructor Documentation

a2dAggDrawer::a2dAggDrawer ( const wxBitmap &  bitmap  ) 

bitmap is converted to image on which you can draw. Use GetBuffer() to get a bitmap back.

Definition at line 2327 of file aggdrawer.cpp.


Member Function Documentation

void a2dAggDrawer::DrawImage ( const wxImage &  image,
double  x,
double  y,
double  width,
double  height,
wxUint8  Opacity = 255 
) [virtual]

Draw wxImage in world coordinates.

Draw the wxImage to the screen in such a manner that the image is mapped into the rectangle defined by points (x-width/2,y-width/2) and (x+width/2,y+height/2) in world coordinates, with the center of the image at (x,y).

Parameters:
image image to draw
x world x position of center of image
y world y position of center of image
width width in world coordinates to map width of image to
height height in world coordinates to map height of image to

Implements a2dDrawer2D.

Definition at line 2402 of file aggdrawer.cpp.


The documentation for this class was generated from the following files:
a2dAggDrawer Class Reference -- Tue Aug 31 18:11:10 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation