a2dGlobal Class Reference

class for storing paths and settings, which are used within the artbase module. More...

#include <artglob.h>

Inheritance diagram for a2dGlobal:

Inheritance graph
[legend]
Collaboration diagram for a2dGlobal:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dGlobal ()
 constructor
virtual ~a2dGlobal ()
 destructor
void Aberration (double angle, double radius, double &dphi, unsigned int &segments)
 based on angle and radius and m_displayaberration calculate a proper delta phi and number of segments
void SetPolygonFillThreshold (wxUint16 pixels)
 set threshold at which polygon is drawn filled or only outline
wxUint16 GetPolygonFillThreshold ()
 get threshold at which polygon is drawn filled or only outline
a2dPathListGetFontPathList ()
 Path for Fonts.
a2dPathListGetImagePathList ()
 Path for Images.
a2dPathListGetIconPathList ()
 Path for Icons and small bitmaps.

Static Public Member Functions

static void SetDisplayAberration (double aber)
 set the display aberation, display of curved shapes
static double GetDisplayAberration ()
static void SetRoundFactor (double roundFactor)
static double GetRoundFactor ()
static void SetPrimitiveThreshold (wxUint16 pixels, bool asrect=true)
 set drawing threshold to the given number of pixels
static wxUint16 GetPrimitiveThreshold ()
 get drawing threshold
static bool GetThresholdDrawRectangle ()
 underneath the threshold draw rectangles instead of the real object.
static void SetAberPolyToArc (double aber)
 conversion from polygon/polyline into arc in database units
static double GetAberPolyToArc ()
 conversion from polygon/polyline into arc in database units
static void SetAberArcToPoly (double aber)
 conversion from arc into lines in database units
static double GetAberArcToPoly ()
 conversion from arc into lines in database units

Static Protected Attributes

static a2dPathList m_fontpath = a2dPathList()
static a2dPathList m_imagepath = a2dPathList()
static a2dPathList m_iconpath = a2dPathList()
static wxUint16 m_drawingthreshold = 1
 object smaller than this value will not be rendered
static wxUint16 m_polygonFillThreshold = 0
 get threshold at which polygon is drawn filled or only outline
static bool m_asrectangle = true
 underneath the threshold draw rectangles if true else nothing
static double m_arc2polyaber = 0
 conversion from arc into lines in database units
static double m_poly2arcaber = 0
static double m_displayaberration = 0
static double m_roundFactor = 1.5


Detailed Description

class for storing paths and settings, which are used within the artbase module.

Definition at line 90 of file artglob.h.


Member Function Documentation

void a2dGlobal::Aberration ( double  angle,
double  radius,
double &  dphi,
unsigned int &  segments 
)

based on angle and radius and m_displayaberration calculate a proper delta phi and number of segments

The calculation is used for circular arc segments

Definition at line 146 of file artglob.cpp.

static void a2dGlobal::SetDisplayAberration ( double  aber  )  [inline, static]

set the display aberation, display of curved shapes

will not deviate more then this from the ideal curve.

Parameters:
aber maximum deviation in device coordianates
Remarks:
the smaller the number the longer the drawing takes.

Definition at line 114 of file artglob.h.

static double a2dGlobal::GetDisplayAberration (  )  [inline, static]

get the display aberation, display of curved shapes will not deviate more then this from the ideal curve.

Definition at line 118 of file artglob.h.

static double a2dGlobal::GetRoundFactor (  )  [inline, static]

get the display aberation, display of curved shapes will not deviate more then this from the ideal curve.

Definition at line 124 of file artglob.h.

static void a2dGlobal::SetPrimitiveThreshold ( wxUint16  pixels,
bool  asrect = true 
) [inline, static]

set drawing threshold to the given number of pixels

every object with a boundingbox (in device coordinates) smaller than the number of pixels in width or height will not be rendered. For drawing with a high dynamic range (small and big objects combined), this means a gain in speed.

Remarks:
default value is 0

Definition at line 134 of file artglob.h.

static wxUint16 a2dGlobal::GetPrimitiveThreshold (  )  [inline, static]

get drawing threshold

See also:
SetDrawingThreshold

Definition at line 143 of file artglob.h.


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