wxArt2D
|
Filling using a wxbitmap. More...
Public Member Functions | |
virtual a2dStrokeType | GetType (void) const |
![]() | |
a2dStrokeRefData () | |
constructor | |
a2dStrokeRefData (const a2dStrokeRefData &other) | |
Protected Member Functions | |
a2dPatternStrokeData () | |
constructor | |
a2dPatternStrokeData (const a2dPatternStrokeData &other) | |
constructor | |
a2dPatternStrokeData (const wxBitmap &stipple, a2dStrokeStyle style=a2dSTROKE_STIPPLE) | |
constructor More... | |
a2dPatternStrokeData (const wxFileName &filename, a2dStrokeStyle style=a2dSTROKE_STIPPLE) | |
~a2dPatternStrokeData (void) | |
destructor | |
void | SetStipple (const wxBitmap &stipple) |
set stipple style | |
const wxBitmap & | GetStipple () const |
wxString | GetFileName () |
can contain the filename if pattern was read froma file More... | |
a2dStrokeStyle | GetStyle (void) const |
void | SetStyle (a2dStrokeStyle style) |
virtual void | DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts) |
Load settings. | |
virtual void | DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite) |
Save settings. | |
![]() | |
a2dOneColourStrokeData (void) | |
constructor | |
a2dOneColourStrokeData (const a2dOneColourStrokeData &fill) | |
a2dOneColourStrokeData (const wxColour &col, a2dStrokeStyle style=a2dSTROKE_SOLID) | |
constructor | |
a2dOneColourStrokeData (const wxPen &stroke) | |
~a2dOneColourStrokeData (void) | |
destructor | |
void | SetColour (const wxColour &col) |
wxColour | GetColour () const |
return colour | |
void | SetJoin (wxPenJoin join_style) |
void | SetCap (wxPenCap cap_style) |
wxPenCap | GetCap () |
wxPenJoin | GetJoin () |
void | SetWidth (float width) |
Set width of stroke in world coordinates. | |
virtual float | GetWidth () const |
virtual float | GetExtend () const |
void | SetPixelStroke (bool pixelstroke) |
set pixelstoke flag, stroke width is defined in pixels else in worldcoordinates | |
bool | GetPixelStroke () const |
if the width is pixels or not. | |
a2dStrokeStyle | GetStyle (void) const |
void | SetStyle (a2dStrokeStyle style) |
Protected Attributes | |
wxBitmap | m_stipple |
wxString | m_filename |
![]() | |
wxColour | m_colour1 |
float | m_width |
width of stroke in world coordinates | |
bool | m_pixelstroke |
set if stroke is in pixels | |
wxPenJoin | m_join |
Sets the pen join style, which may be one of wxJOIN_BEVEL, wxJOIN_ROUND (default) and wxJOIN_MITER. | |
wxPenCap | m_cap |
Sets the pen cap style, which may be one of wxCAP_ROUND (default), wxCAP_PROJECTING and wxCAP_BUTT. | |
a2dDash * | m_dash |
a2dStrokeStyle | m_style |
Friends | |
class | a2dStroke |
Additional Inherited Members | |
![]() | |
static a2dOneColourStrokeData * | Create (const wxColour &col, a2dStrokeStyle style=a2dSTROKE_SOLID) |
Filling using a wxbitmap.
To Fill shapes with a bitmap. a2dSTROKE_STIPPLE In case a wxMask is set, to do transparent stipple drawing use style a2dSTROKE_STIPPLE_MASK_OPAQUE_TRANSPARENT. The fill colour1 will be used for non Transparent parts in the brush bitmap, while other parts will be transparent. In case a wxMask is set, use style wxSTIPPLE_MASK_OPAQUE to use colour1 and colour2 to fill with the wxMask in those colours.
Definition at line 5695 of file stylebase.cpp.
|
protected |
constructor
stipple | bitmap for stippling the primitive drawn. |
style | can be a2dSTROKE_STIPPLE a2dSTROKE_STIPPLE_MASK_OPAQUE, a2dSTROKE_STIPPLE_MASK_OPAQUE_TRANSPARENT |
Definition at line 5761 of file stylebase.cpp.
|
inlineprotected |
can contain the filename if pattern was read froma file
Certain input formats ( Like CVG ) can hold the path to the pattern.
Definition at line 5736 of file stylebase.cpp.
|
protected |
if the pattern was loaded from a file, this contains the path to this file. a2dGlobals->GetImagePathList() contains the search path for the file.
Definition at line 5751 of file stylebase.cpp.