KiCad PCB EDA Suite
|
#include <cairo_gal.h>
Classes | |
struct | GROUP_ELEMENT |
Type definition for an graphics group element. More... | |
Public Member Functions | |
CAIRO_GAL_BASE (GAL_DISPLAY_OPTIONS &aDisplayOptions) | |
~CAIRO_GAL_BASE () | |
bool | IsCairoEngine () override |
Return true if the GAL engine is a Cairo based type. | |
void | DrawLine (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) override |
Draw a line. | |
void | DrawSegment (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint, double aWidth) override |
Draw a rounded segment. | |
void | DrawCircle (const VECTOR2D &aCenterPoint, double aRadius) override |
Draw a circle using world coordinates. | |
void | DrawHoleWall (const VECTOR2D &aCenterPoint, double aHoleRadius, double aWallWidth) override |
Draw a hole wall ring. | |
void | DrawArc (const VECTOR2D &aCenterPoint, double aRadius, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle) override |
Draw an arc. | |
void | DrawArcSegment (const VECTOR2D &aCenterPoint, double aRadius, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aWidth, double aMaxError) override |
Draw an arc segment. | |
void | DrawRectangle (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) override |
Draw a rectangle. | |
void | DrawSegmentChain (const std::vector< VECTOR2D > &aPointList, double aWidth) override |
Draw a chain of rounded segments. | |
void | DrawSegmentChain (const SHAPE_LINE_CHAIN &aLineChain, double aWidth) override |
void | DrawPolyline (const std::deque< VECTOR2D > &aPointList) override |
Draw a polyline. | |
void | DrawPolyline (const VECTOR2D aPointList[], int aListSize) override |
void | DrawPolyline (const SHAPE_LINE_CHAIN &aLineChain) override |
void | DrawPolylines (const std::vector< std::vector< VECTOR2D > > &aPointLists) override |
Draw multiple polylines. | |
void | DrawPolygon (const std::deque< VECTOR2D > &aPointList) override |
Draw a polygon. | |
void | DrawPolygon (const VECTOR2D aPointList[], int aListSize) override |
void | DrawPolygon (const SHAPE_POLY_SET &aPolySet, bool aStrokeTriangulation=false) override |
void | DrawPolygon (const SHAPE_LINE_CHAIN &aPolySet) override |
void | DrawGlyph (const KIFONT::GLYPH &aPolySet, int aNth, int aTotal) override |
Draw a polygon representing a font glyph. | |
void | DrawGlyphs (const std::vector< std::unique_ptr< KIFONT::GLYPH > > &aGlyphs) override |
Draw polygons representing font glyphs. | |
void | DrawCurve (const VECTOR2D &startPoint, const VECTOR2D &controlPointA, const VECTOR2D &controlPointB, const VECTOR2D &endPoint, double aFilterValue=0.0) override |
Draw a cubic bezier spline. | |
void | DrawBitmap (const BITMAP_BASE &aBitmap, double alphaBlend=1.0) override |
Draw a bitmap image. | |
void | ResizeScreen (int aWidth, int aHeight) override |
Resizes the canvas. | |
void | Flush () override |
Force all remaining objects to be drawn. | |
void | ClearScreen () override |
Clear the screen. | |
void | SetIsFill (bool aIsFillEnabled) override |
Enable/disable fill. | |
void | SetIsStroke (bool aIsStrokeEnabled) override |
Enable/disable stroked outlines. | |
void | SetStrokeColor (const COLOR4D &aColor) override |
Set the stroke color. | |
void | SetFillColor (const COLOR4D &aColor) override |
Set the fill color. | |
void | SetLineWidth (float aLineWidth) override |
Set the line width. | |
void | SetLayerDepth (double aLayerDepth) override |
Set the depth of the layer (position on the z-axis) | |
void | Transform (const MATRIX3x3D &aTransformation) override |
Transform the context. | |
void | Rotate (double aAngle) override |
Rotate the context. | |
void | Translate (const VECTOR2D &aTranslation) override |
Translate the context. | |
void | Scale (const VECTOR2D &aScale) override |
Scale the context. | |
void | Save () override |
Save the context. | |
void | Restore () override |
Restore the context. | |
int | BeginGroup () override |
Begin a group. | |
void | EndGroup () override |
End the group. | |
void | DrawGroup (int aGroupNumber) override |
Draw the stored group. | |
void | ChangeGroupColor (int aGroupNumber, const COLOR4D &aNewColor) override |
Change the color used to draw the group. | |
void | ChangeGroupDepth (int aGroupNumber, int aDepth) override |
Change the depth (Z-axis position) of the group. | |
void | DeleteGroup (int aGroupNumber) override |
Delete the group from the memory. | |
void | ClearCache () override |
Delete all data created during caching of graphic items. | |
void | SetNegativeDrawMode (bool aSetting) override |
Set negative draw mode in the renderer. | |
void | DrawCursor (const VECTOR2D &aCursorPosition) override |
Draw the cursor. | |
void | EnableDepthTest (bool aEnabled=false) override |
void | DrawGrid () override |
void | BeginDrawing () override |
Start/end drawing functions, draw calls can be only made in between the calls to BeginDrawing()/EndDrawing(). | |
void | EndDrawing () override |
End the drawing, needs to be called for every new frame. | |
virtual bool | IsInitialized () const |
Return the initialization status for the canvas. | |
virtual bool | IsVisible () const |
Return true if the GAL canvas is visible on the screen. | |
virtual bool | IsOpenGlEngine () |
Return true if the GAL engine is a OpenGL based type. | |
virtual void | DrawPolyline (const std::vector< VECTOR2D > &aPointList) |
void | DrawRectangle (const BOX2I &aRect) |
virtual bool | Show (bool aShow) |
Show/hide the GAL canvas. | |
const VECTOR2I & | GetScreenPixelSize () const |
Return GAL canvas size in pixels. | |
virtual int | GetSwapInterval () const |
Return the swap interval. -1 for adaptive, 0 for disabled/unknown. | |
void | SetClearColor (const COLOR4D &aColor) |
const COLOR4D & | GetClearColor () const |
bool | GetIsFill () const |
Get the fill status. | |
bool | GetIsStroke () const |
Get the stroke status. | |
const COLOR4D & | GetFillColor () const |
Get the fill color. | |
const COLOR4D & | GetStrokeColor () const |
Get the stroke color. | |
virtual void | SetMinLineWidth (float aLineWidth) |
Set the minimum line width in pixels. | |
float | GetLineWidth () const |
Get the line width. | |
float | GetMinLineWidth () const |
Get the minimum line width in pixels. | |
void | AdvanceDepth () |
Change the current depth to deeper, so it is possible to draw objects right beneath other. | |
virtual void | BitmapText (const wxString &aText, const VECTOR2I &aPosition, const EDA_ANGLE &aAngle) |
Draw a text using a bitmap font. | |
void | ResetTextAttributes () |
Reset text attributes to default styling. | |
void | SetGlyphSize (const VECTOR2I aSize) |
const VECTOR2I & | GetGlyphSize () const |
void | SetFontBold (const bool aBold) |
bool | IsFontBold () const |
void | SetFontItalic (bool aItalic) |
bool | IsFontItalic () const |
void | SetFontUnderlined (bool aUnderlined) |
bool | IsFontUnderlined () const |
void | SetTextMirrored (const bool aMirrored) |
bool | IsTextMirrored () const |
void | SetHorizontalJustify (const GR_TEXT_H_ALIGN_T aHorizontalJustify) |
GR_TEXT_H_ALIGN_T | GetHorizontalJustify () const |
void | SetVerticalJustify (const GR_TEXT_V_ALIGN_T aVerticalJustify) |
GR_TEXT_V_ALIGN_T | GetVerticalJustify () const |
virtual void | ComputeWorldScreenMatrix () |
Compute the world <-> screen transformation matrix. | |
const MATRIX3x3D & | GetWorldScreenMatrix () const |
Get the world <-> screen transformation matrix. | |
const MATRIX3x3D & | GetScreenWorldMatrix () const |
Get the screen <-> world transformation matrix. | |
void | SetWorldScreenMatrix (const MATRIX3x3D &aMatrix) |
Set the world <-> screen transformation matrix. | |
BOX2D | GetVisibleWorldExtents () const |
void | SetWorldUnitLength (double aWorldUnitLength) |
Set the unit length. | |
void | SetScreenSize (const VECTOR2I &aSize) |
void | SetScreenDPI (double aScreenDPI) |
Set the dots per inch of the screen. | |
double | GetScreenDPI () const |
void | SetLookAtPoint (const VECTOR2D &aPoint) |
Get/set the Point in world space to look at. | |
const VECTOR2D & | GetLookAtPoint () const |
void | SetZoomFactor (double aZoomFactor) |
double | GetZoomFactor () const |
void | SetRotation (double aRotation) |
Get/set the rotation angle (in radians). | |
double | GetRotation () const |
void | SetDepthRange (const VECTOR2D &aDepthRange) |
Set the range of the layer depth. | |
double | GetMinDepth () const |
double | GetMaxDepth () const |
double | GetWorldScale () const |
Get the world scale. | |
void | SetFlip (bool xAxis, bool yAxis) |
Sets flipping of the screen. | |
bool | IsFlippedX () const |
bool | IsFlippedY () const |
virtual void | SetTarget (RENDER_TARGET aTarget) |
Set the target for rendering. | |
virtual RENDER_TARGET | GetTarget () const |
Get the currently used target for rendering. | |
virtual void | ClearTarget (RENDER_TARGET aTarget) |
Clear the target for rendering. | |
virtual bool | HasTarget (RENDER_TARGET aTarget) |
Return true if the target exists. | |
virtual void | StartDiffLayer () |
Begins rendering of a differential layer. | |
virtual void | EndDiffLayer () |
Ends rendering of a differential layer. | |
virtual void | StartNegativesLayer () |
Begins rendering in a new layer that will be copied to the main layer in EndNegativesLayer(). | |
virtual void | EndNegativesLayer () |
Ends rendering of a negatives layer and draws it to the main layer. | |
void | SetGridVisibility (bool aVisibility) |
Set the visibility setting of the grid. | |
bool | GetGridVisibility () const |
bool | GetGridSnapping () const |
void | SetGridOrigin (const VECTOR2D &aGridOrigin) |
Set the origin point for the grid. | |
const VECTOR2D & | GetGridOrigin () const |
void | SetGridSize (const VECTOR2D &aGridSize) |
Set the grid size. | |
const VECTOR2D & | GetGridSize () const |
Return the grid size. | |
VECTOR2D | GetVisibleGridSize () const |
Return the visible grid size in x and y directions. | |
void | SetGridColor (const COLOR4D &aGridColor) |
Set the grid color. | |
void | SetAxesColor (const COLOR4D &aAxesColor) |
Set the axes color. | |
void | SetAxesEnabled (bool aAxesEnabled) |
Enable drawing the axes. | |
void | SetCoarseGrid (int aInterval) |
Draw every tick line wider. | |
float | GetGridLineWidth () const |
Get the grid line width. | |
VECTOR2D | GetGridPoint (const VECTOR2D &aPoint) const |
For a given point it returns the nearest point belonging to the grid in world coordinates. | |
VECTOR2D | ToWorld (const VECTOR2D &aPoint) const |
Compute the point position in world coordinates from given screen coordinates. | |
VECTOR2D | ToScreen (const VECTOR2D &aPoint) const |
Compute the point position in screen coordinates from given world coordinates. | |
virtual bool | SetNativeCursorStyle (KICURSOR aCursor, bool aHiDPI) |
Set the cursor in the native panel. | |
void | SetCursorEnabled (bool aCursorEnabled) |
Enable/disable cursor. | |
bool | IsCursorEnabled () const |
Return information about cursor visibility. | |
void | SetCursorColor (const COLOR4D &aCursorColor) |
Set the cursor color. | |
virtual bool | IsContextLocked () |
Checks the state of the context lock. | |
virtual void | LockContext (int aClientCookie) |
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing. | |
virtual void | UnlockContext (int aClientCookie) |
Protected Types | |
enum | GRAPHICS_COMMAND { CMD_SET_FILL , CMD_SET_STROKE , CMD_SET_FILLCOLOR , CMD_SET_STROKECOLOR , CMD_SET_LINE_WIDTH , CMD_STROKE_PATH , CMD_FILL_PATH , CMD_ROTATE , CMD_TRANSLATE , CMD_SCALE , CMD_SAVE , CMD_RESTORE , CMD_CALL_GROUP } |
Definitions for the command recorder. More... | |
typedef GAL | super |
Super class definition. | |
typedef std::deque< GROUP_ELEMENT > | GROUP |
A graphic group type definition. | |
Protected Member Functions | |
double | xform (double x) |
const VECTOR2D | xform (double x, double y) |
const VECTOR2D | xform (const VECTOR2D &aP) |
double | angle_xform (double aAngle) |
Transform according to the rotation from m_currentWorld2Screen transform matrix. | |
void | arc_angles_xform_and_normalize (double &aStartAngle, double &aEndAngle) |
Transform according to the rotation from m_currentWorld2Screen transform matrix for the start angle and the end angle of an arc. | |
void | resetContext () |
void | drawGridLine (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) |
Draw a grid line (usually a simplified line function). | |
void | drawGridCross (const VECTOR2D &aPoint) |
void | drawGridPoint (const VECTOR2D &aPoint, double aWidth, double aHeight) |
void | drawAxes (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) |
void | flushPath () |
void | storePath () |
Store the actual path. | |
void | blitCursor (wxMemoryDC &clientDC) |
Blit cursor into the current screen. | |
void | drawPoly (const std::deque< VECTOR2D > &aPointList) |
Drawing polygons & polylines is the same in Cairo, so here is the common code. | |
void | drawPoly (const std::vector< VECTOR2D > &aPointList) |
void | drawPoly (const VECTOR2D aPointList[], int aListSize) |
void | drawPoly (const SHAPE_LINE_CHAIN &aLineChain) |
unsigned int | getNewGroupNumber () |
Return a valid key that can be used as a new group number. | |
void | syncLineWidth (bool aForceWidth=false, double aWidth=0.0) |
void | updateWorldScreenMatrix () |
const VECTOR2D | roundp (const VECTOR2D &v) |
virtual void | beginUpdate () |
Enable item update mode. | |
virtual void | endUpdate () |
Disable item update mode. | |
void | computeWorldScale () |
Compute the scaling factor for the world->screen matrix. | |
double | computeMinGridSpacing () const |
Compute minimum grid spacing from the grid settings. | |
COLOR4D | getCursorColor () const |
Get the actual cursor color to draw. | |
void | OnGalDisplayOptionsChanged (const GAL_DISPLAY_OPTIONS &aOptions) override |
Handler for observer settings changes. | |
virtual bool | updatedGalDisplayOptions (const GAL_DISPLAY_OPTIONS &aOptions) |
Handle updating display options. | |
template<typename T> | |
void | normalize (T &a, T &b) |
Ensure that the first element is smaller than the second. | |
Protected Attributes | |
bool | m_isGrouping |
Is grouping enabled ? | |
bool | m_isElementAdded |
Was an graphic element added ? | |
std::map< int, GROUP > | m_groups |
List of graphic groups. | |
unsigned int | m_groupCounter |
Counter used for generating group keys. | |
GROUP * | m_currentGroup |
Currently used group. | |
double | m_lineWidthInPixels |
bool | m_lineWidthIsOdd |
cairo_matrix_t | m_cairoWorldScreenMatrix |
Cairo world to screen transform matrix. | |
cairo_matrix_t | m_currentXform |
cairo_matrix_t | m_currentWorld2Screen |
cairo_t * | m_currentContext |
Currently used Cairo context for drawing. | |
cairo_t * | m_context |
Cairo image. | |
cairo_surface_t * | m_surface |
Cairo surface. | |
std::vector< cairo_surface_t * > | m_imageSurfaces |
List of surfaces that were created by painting images, to be cleaned up later. | |
std::vector< cairo_matrix_t > | m_xformStack |
GAL_DISPLAY_OPTIONS & | m_options |
UTIL::LINK | m_observerLink |
std::stack< double > | m_depthStack |
Stored depth values. | |
VECTOR2I | m_screenSize |
Screen size in screen (wx logical) coordinates. | |
double | m_worldUnitLength |
The unit length of the world coordinates [inch]. | |
double | m_screenDPI |
The dots per inch of the screen. | |
VECTOR2D | m_lookAtPoint |
Point to be looked at in world space. | |
double | m_zoomFactor |
The zoom factor. | |
double | m_rotation |
Rotation transformation (radians) | |
MATRIX3x3D | m_worldScreenMatrix |
World transformation. | |
MATRIX3x3D | m_screenWorldMatrix |
Screen transformation. | |
double | m_worldScale |
The scale factor world->screen. | |
bool | m_globalFlipX |
Flag for X axis flipping. | |
bool | m_globalFlipY |
Flag for Y axis flipping. | |
float | m_lineWidth |
The line width. | |
float | m_minLineWidth |
Minimum line width in pixels. | |
bool | m_isFillEnabled |
Is filling of graphic objects enabled ? | |
bool | m_isStrokeEnabled |
Are the outlines stroked ? | |
COLOR4D | m_fillColor |
The fill color. | |
COLOR4D | m_strokeColor |
The color of the outlines. | |
COLOR4D | m_clearColor |
double | m_layerDepth |
The actual layer depth. | |
VECTOR2D | m_depthRange |
Range of the depth. | |
bool | m_gridVisibility |
Should the grid be shown. | |
GRID_STYLE | m_gridStyle |
Grid display style. | |
VECTOR2D | m_gridSize |
The grid size. | |
VECTOR2D | m_gridOrigin |
The grid origin. | |
VECTOR2D | m_gridOffset |
The grid offset to compensate cursor position. | |
COLOR4D | m_gridColor |
Color of the grid. | |
COLOR4D | m_axesColor |
Color of the axes. | |
bool | m_axesEnabled |
Should the axes be drawn. | |
int | m_gridTick |
Every tick line gets the double width. | |
float | m_gridLineWidth |
Line width of the grid. | |
int | m_gridMinSpacing |
Minimum screen size of the grid (pixels) below which the grid is not drawn. | |
bool | m_isCursorEnabled |
Is the cursor enabled? | |
bool | m_forceDisplayCursor |
Always show cursor. | |
COLOR4D | m_cursorColor |
Cursor color. | |
KIGFX::CROSS_HAIR_MODE | m_crossHairMode |
Crosshair drawing mode. | |
VECTOR2D | m_cursorPosition |
Current cursor position (world coordinates) | |
KICURSOR | m_currentNativeCursor |
Current cursor. | |
Static Protected Attributes | |
static const int | MAX_CAIRO_ARGUMENTS = 4 |
Maximum number of arguments for one command. | |
static constexpr cairo_format_t | GAL_FORMAT = CAIRO_FORMAT_ARGB32 |
Format used to store pixels. | |
static const int | MIN_DEPTH = -2*MAX_LAYERS_FOR_VIEW |
Possible depth range. | |
static const int | MAX_DEPTH = 2*MAX_LAYERS_FOR_VIEW - 1 |
static const int | GRID_DEPTH = MAX_DEPTH - 1 |
Depth level on which the grid is drawn. | |
Private Member Functions | |
double | getLayerDepth () const |
Private Attributes | |
TEXT_ATTRIBUTES | m_attributes |
Definition at line 58 of file cairo_gal.h.
|
protected |
A graphic group type definition.
Definition at line 352 of file cairo_gal.h.
|
protected |
Super class definition.
Definition at line 316 of file cairo_gal.h.
|
protected |
Definitions for the command recorder.
Definition at line 322 of file cairo_gal.h.
CAIRO_GAL_BASE::CAIRO_GAL_BASE | ( | GAL_DISPLAY_OPTIONS & | aDisplayOptions | ) |
Definition at line 51 of file cairo_gal.cpp.
References BLUE, KIGFX::GAL::GAL(), m_cairoWorldScreenMatrix, m_context, m_currentContext, m_currentGroup, m_currentWorld2Screen, m_currentXform, m_groupCounter, m_isElementAdded, m_isGrouping, KIGFX::GAL::m_lineWidth, m_lineWidthInPixels, m_lineWidthIsOdd, m_surface, KIGFX::GAL::SetAxesColor(), and KIGFX::GAL::SetGridColor().
Referenced by KIGFX::CAIRO_GAL::CAIRO_GAL(), and KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL().
CAIRO_GAL_BASE::~CAIRO_GAL_BASE | ( | ) |
Definition at line 79 of file cairo_gal.cpp.
References ClearCache(), m_context, m_imageSurfaces, and m_surface.
|
inlineinherited |
Change the current depth to deeper, so it is possible to draw objects right beneath other.
If you do this, you should consider using a GAL_SCOPED_ATTR to ensure the depth is reset to the original value.
Definition at line 439 of file graphics_abstraction_layer.h.
References m_layerDepth, and SetLayerDepth().
Referenced by KIGFX::VIEW_GROUP::ViewDraw().
|
protected |
Transform according to the rotation from m_currentWorld2Screen transform matrix.
aAngle | is the angle in radians to transform. |
Definition at line 129 of file cairo_gal.cpp.
References KIGFX::GAL::IsFlippedX(), m_currentWorld2Screen, and M_PI.
Referenced by arc_angles_xform_and_normalize().
|
protected |
Transform according to the rotation from m_currentWorld2Screen transform matrix for the start angle and the end angle of an arc.
aStartAngle | is the arc starting point in radians to transform |
aEndAngle | is the arc ending point in radians to transform |
Definition at line 143 of file cairo_gal.cpp.
References std::abs(), angle_xform(), KIGFX::GAL::IsFlippedX(), M_PI, and KIGFX::GAL::normalize().
Referenced by DrawArc(), and DrawArcSegment().
|
overridevirtual |
Start/end drawing functions, draw calls can be only made in between the calls to BeginDrawing()/EndDrawing().
Normally you should create a GAL_DRAWING_CONTEXT RAII object, but I'm leaving these functions public for more precise (i.e. timing/profiling) control of the drawing process - Tom Begin the drawing, needs to be called for every new frame. Use GAL_DRAWING_CONTEXT RAII object unless you know what you're doing.
Reimplemented from KIGFX::GAL.
Definition at line 94 of file cairo_gal.cpp.
References resetContext().
Referenced by KIGFX::CAIRO_GAL::BeginDrawing().
|
overridevirtual |
Begin a group.
A group is a collection of graphic items. Hierarchical groups are possible, attributes and transformations can be used.
Reimplemented from KIGFX::GAL.
Definition at line 814 of file cairo_gal.cpp.
References getNewGroupNumber(), group, m_currentGroup, m_groups, m_isGrouping, and storePath().
Referenced by KIGFX::CAIRO_GAL::BeginGroup().
|
inlineprotectedvirtualinherited |
Enable item update mode.
Private: use GAL_UPDATE_CONTEXT RAII object
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1036 of file graphics_abstraction_layer.h.
|
virtualinherited |
Draw a text using a bitmap font.
It should be faster than StrokeText(), but can be used only for non-Gerber elements.
aText | is the text to be drawn. |
aPosition | is the text position in world coordinates. |
aAngle | is the text rotation angle. |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 271 of file graphics_abstraction_layer.cpp.
References KIFONT::METRICS::Default(), KIFONT::FONT::Draw(), KIFONT::FONT::GetFont(), GetLineWidth(), TEXT_ATTRIBUTES::m_Angle, m_attributes, m_globalFlipX, TEXT_ATTRIBUTES::m_Mirrored, TEXT_ATTRIBUTES::m_Size, and TEXT_ATTRIBUTES::m_StrokeWidth.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::bitmapText(), KIGFX::PREVIEW::ANGLE_ITEM::drawPreviewShape(), and KIGFX::VIEW_OVERLAY::COMMAND_BITMAP_TEXT::Execute().
|
protected |
Blit cursor into the current screen.
Definition at line 1200 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, color, KIGFX::FULLSCREEN_CROSS, KIGFX::FULLSCREEN_DIAGONAL, KIGFX::COLOR4D::g, KIGFX::GAL::getCursorColor(), KIGFX::GAL::IsCursorEnabled(), KIGFX::GAL::m_crossHairMode, KIGFX::GAL::m_cursorPosition, KIGFX::GAL::m_screenSize, KIGFX::COLOR4D::r, KIGFX::GAL::ToScreen(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by KIGFX::CAIRO_GAL::EndDrawing().
|
overridevirtual |
Change the color used to draw the group.
aGroupNumber | is the group number. |
aNewColor | is the new color. |
Reimplemented from KIGFX::GAL.
Definition at line 930 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, CMD_SET_FILLCOLOR, CMD_SET_STROKECOLOR, KIGFX::COLOR4D::g, m_groups, KIGFX::COLOR4D::r, and storePath().
|
overridevirtual |
Change the depth (Z-axis position) of the group.
aGroupNumber | is the group number. |
aDepth | is the new depth. |
Reimplemented from KIGFX::GAL.
Definition at line 947 of file cairo_gal.cpp.
|
overridevirtual |
Delete all data created during caching of graphic items.
Reimplemented from KIGFX::GAL.
Definition at line 972 of file cairo_gal.cpp.
References DeleteGroup(), and m_groups.
Referenced by ~CAIRO_GAL_BASE().
|
overridevirtual |
Clear the screen.
aColor | is the color used for clearing. |
Reimplemented from KIGFX::GAL.
Definition at line 600 of file cairo_gal.cpp.
References KIGFX::GAL::m_clearColor, m_currentContext, and KIGFX::GAL::m_screenSize.
Referenced by resetContext().
|
inlinevirtualinherited |
Clear the target for rendering.
aTarget | is the target to be cleared. |
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 723 of file graphics_abstraction_layer.h.
|
protectedinherited |
Compute minimum grid spacing from the grid settings.
Definition at line 218 of file graphics_abstraction_layer.cpp.
References m_gridMinSpacing.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), and GetVisibleGridSize().
|
inlineprotectedinherited |
Compute the scaling factor for the world->screen matrix.
Definition at line 1044 of file graphics_abstraction_layer.h.
References PGM_BASE::GetCommonSettings(), COMMON_SETTINGS::m_Appearance, m_screenDPI, m_worldScale, m_worldUnitLength, m_zoomFactor, Pgm(), and COMMON_SETTINGS::APPEARANCE::zoom_correction_factor.
Referenced by ComputeWorldScreenMatrix(), KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), and GAL().
|
virtualinherited |
Compute the world <-> screen transformation matrix.
Reimplemented in KIGFX::CAIRO_PRINT_GAL, and KIGFX::OPENGL_GAL.
Definition at line 173 of file graphics_abstraction_layer.cpp.
References computeWorldScale(), m_globalFlipX, m_globalFlipY, m_lookAtPoint, m_rotation, m_screenSize, m_screenWorldMatrix, m_worldScale, m_worldScreenMatrix, scale, MATRIX3x3< T >::SetIdentity(), MATRIX3x3< T >::SetRotation(), MATRIX3x3< T >::SetScale(), and MATRIX3x3< T >::SetTranslation().
Referenced by KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), and KIGFX::CAIRO_GAL_BASE::resetContext().
|
overridevirtual |
Delete the group from the memory.
aGroupNumber | is the group number. |
Reimplemented from KIGFX::GAL.
Definition at line 954 of file cairo_gal.cpp.
References CMD_FILL_PATH, CMD_STROKE_PATH, end, m_groups, and storePath().
Referenced by ClearCache().
|
overridevirtual |
Draw an arc.
aCenterPoint | is the center point of the arc. |
aRadius | is the arc radius. |
aStartAngle | is the start angle of the arc. |
aAngle | is the angle of the arc. |
Reimplemented from KIGFX::GAL.
Definition at line 347 of file cairo_gal.cpp.
References arc_angles_xform_and_normalize(), EDA_ANGLE::AsRadians(), flushPath(), m_currentContext, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, m_lineWidthInPixels, RADIANS_T, RotatePoint(), roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawArcSegment().
|
overridevirtual |
Draw an arc segment.
This method differs from DrawArc() in what happens when fill/stroke are on or off. DrawArc() draws a "pie piece" when fill is turned on, and a thick stroke when fill is off. DrawArcSegment() with fill on behaves like DrawArc() with fill off. DrawArcSegment() with fill off draws the outline of what it would have drawn with fill on.
This has meaning only for back ends that can't draw a true arc, and use segments to approximate.
TODO: Unify Arc routines
aCenterPoint | is the center point of the arc. |
aRadius | is the arc radius. |
aStartAngle | is the start angle of the arc. |
aAngle | is the angle of the arc. |
aWidth | is the thickness of the arc (pen size). |
aMaxError | is the max allowed error to create segments to approximate a circle. Note: aMaxError is not used in Cairo, because Cairo can draw true arcs |
Reimplemented from KIGFX::GAL.
Definition at line 391 of file cairo_gal.cpp.
References arc_angles_xform_and_normalize(), EDA_ANGLE::AsRadians(), DrawArc(), flushPath(), m_currentContext, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_lineWidth, M_PI, KIGFX::GAL::m_strokeColor, RADIANS_T, RotatePoint(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
protected |
Definition at line 1054 of file cairo_gal.cpp.
References KIGFX::GAL::m_axesColor, m_currentContext, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGrid().
|
overridevirtual |
Draw a bitmap image.
Reimplemented from KIGFX::GAL.
Definition at line 508 of file cairo_gal.cpp.
References BITMAP_BASE::GetImageData(), BITMAP_BASE::GetPPI(), BITMAP_BASE::GetSizePixels(), image, m_currentContext, m_currentWorld2Screen, m_imageSurfaces, m_isElementAdded, KIGFX::GAL::m_worldUnitLength, scale, VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Draw a circle using world coordinates.
aCenterPoint | is the center point of the circle. |
aRadius | is the radius of the circle. |
Reimplemented from KIGFX::GAL.
Definition at line 331 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, m_lineWidthInPixels, M_PI, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawHoleWall().
|
overridevirtual |
Draw the cursor.
aCursorPosition | is the cursor position in screen coordinates. |
Reimplemented from KIGFX::GAL.
Definition at line 1011 of file cairo_gal.cpp.
References KIGFX::GAL::m_cursorPosition.
|
overridevirtual |
Draw a cubic bezier spline.
startPoint | is the start point of the spline. |
controlPointA | is the first control point. |
controlPointB | is the second control point. |
endPoint | is the end point of the spline. |
aFilterValue | is used by Bezier to segments approximation, if the Bezier curve is not supported and needs a curve to polyline conversion. aFilterValue = 0 means no filtering. |
Reimplemented from KIGFX::GAL.
Definition at line 486 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
overridevirtual |
Draw a polygon representing a font glyph.
Reimplemented from KIGFX::GAL.
Definition at line 1872 of file cairo_gal.cpp.
References drawPoly(), flushPath(), KIFONT::GLYPH::IsOutline(), KIFONT::GLYPH::IsStroke(), m_currentContext, m_isElementAdded, roundp(), SetIsFill(), SetIsStroke(), syncLineWidth(), KIFONT::OUTLINE_GLYPH::Triangulate(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGlyphs().
|
inlineoverridevirtual |
Draw polygons representing font glyphs.
Reimplemented from KIGFX::GAL.
Definition at line 131 of file cairo_gal.h.
References DrawGlyph().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1748 of file cairo_gal.cpp.
References KIGFX::GAL::computeMinGridSpacing(), KIGFX::DOTS, drawAxes(), drawGridCross(), drawGridLine(), drawGridPoint(), KiROUND(), KIGFX::LINES, KIGFX::GAL::m_axesEnabled, KIGFX::GAL::m_depthRange, KIGFX::GAL::m_gridLineWidth, KIGFX::GAL::m_gridOrigin, KIGFX::GAL::m_gridSize, KIGFX::GAL::m_gridStyle, KIGFX::GAL::m_gridTick, KIGFX::GAL::m_gridVisibility, KIGFX::GAL::m_isStrokeEnabled, m_lineWidthIsOdd, KIGFX::GAL::m_screenSize, KIGFX::GAL::m_screenWorldMatrix, KIGFX::GAL::m_worldScale, KIGFX::GAL::normalize(), SetLayerDepth(), SetLineWidth(), KIGFX::GAL::SetTarget(), KIGFX::SMALL_CROSS, KIGFX::TARGET_NONCACHED, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protected |
Definition at line 1086 of file cairo_gal.cpp.
References m_currentContext, KIGFX::GAL::m_gridColor, m_lineWidthInPixels, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGrid().
|
protected |
Draw a grid line (usually a simplified line function).
aStartPoint | is the start point of the line. |
aEndPoint | is the end point of the line. |
Definition at line 1072 of file cairo_gal.cpp.
References m_currentContext, KIGFX::GAL::m_gridColor, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGrid().
|
protected |
Definition at line 1107 of file cairo_gal.cpp.
References m_currentContext, KIGFX::GAL::m_gridColor, roundp(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGrid().
|
overridevirtual |
Draw the stored group.
aGroupNumber | is the group number. |
Reimplemented from KIGFX::GAL.
Definition at line 837 of file cairo_gal.cpp.
References CMD_CALL_GROUP, CMD_FILL_PATH, CMD_RESTORE, CMD_ROTATE, CMD_SAVE, CMD_SCALE, CMD_SET_FILL, CMD_SET_FILLCOLOR, CMD_SET_LINE_WIDTH, CMD_SET_STROKE, CMD_SET_STROKECOLOR, CMD_STROKE_PATH, CMD_TRANSLATE, DrawGroup(), m_currentContext, KIGFX::GAL::m_fillColor, m_groups, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_strokeColor, and storePath().
Referenced by DrawGroup().
|
overridevirtual |
Draw a hole wall ring.
aCenterPoint | is the center point of the hole. |
aHoleRadius | is the radius of the hole. |
aWallWidth | is the wall thickness. |
Reimplemented from KIGFX::GAL.
Definition at line 325 of file cairo_gal.cpp.
References DrawCircle().
|
overridevirtual |
Draw a line.
Start and end points are defined as 2D-Vectors.
aStartPoint | is the start point of the line. |
aEndPoint | is the end point of the line. |
Reimplemented from KIGFX::GAL.
Definition at line 200 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
protected |
Definition at line 1312 of file cairo_gal.cpp.
References SHAPE_LINE_CHAIN::CPoint(), flushPath(), SHAPE_LINE_CHAIN::IsClosed(), m_currentContext, m_isElementAdded, SHAPE_LINE_CHAIN::PointCount(), roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
protected |
Drawing polygons & polylines is the same in Cairo, so here is the common code.
Definition at line 1235 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGlyph(), DrawPolygon(), DrawPolygon(), DrawPolygon(), DrawPolygon(), DrawPolyline(), DrawPolyline(), DrawPolyline(), and DrawPolylines().
|
protected |
Definition at line 1261 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
protected |
Definition at line 1287 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
overridevirtual |
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 473 of file cairo_gal.cpp.
References SHAPE_POLY_SET::COutline(), drawPoly(), and SHAPE_POLY_SET::OutlineCount().
|
inlineoverridevirtual |
Draw a polygon.
aPointList | is the list of the polygon points. |
Reimplemented from KIGFX::GAL.
Definition at line 118 of file cairo_gal.h.
References drawPoly().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Draw a polyline.
aPointList | is a list of 2D-Vectors containing the polyline points. |
Reimplemented from KIGFX::GAL.
Definition at line 102 of file cairo_gal.h.
References drawPoly().
|
inlineoverridevirtual |
|
inlinevirtualinherited |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 128 of file graphics_abstraction_layer.h.
|
inlineoverridevirtual |
Draw multiple polylines.
aPointLists | are lists of 2D-Vectors containing the polyline points. |
Reimplemented from KIGFX::GAL.
Definition at line 111 of file cairo_gal.h.
References drawPoly().
|
overridevirtual |
Draw a rectangle.
aStartPoint | is the start point of the rectangle. |
aEndPoint | is the end point of the rectangle. |
Reimplemented from KIGFX::GAL.
Definition at line 451 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
inlineinherited |
Definition at line 200 of file graphics_abstraction_layer.h.
References DrawRectangle(), BOX2< Vec >::GetEnd(), and BOX2< Vec >::GetOrigin().
|
overridevirtual |
Draw a rounded segment.
Start and end points are defined as 2D-Vectors.
aStartPoint | is the start point of the segment. |
aEndPoint | is the end point of the segment. |
aWidth | is a width of the segment |
Reimplemented from KIGFX::GAL.
Definition at line 257 of file cairo_gal.cpp.
References flushPath(), m_currentContext, KIGFX::GAL::m_fillColor, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, M_PI, KIGFX::GAL::m_strokeColor, radius, roundp(), SetLineWidth(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawSegmentChain(), and DrawSegmentChain().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 245 of file cairo_gal.cpp.
References SHAPE_LINE_CHAIN::CPoint(), DrawSegment(), SHAPE_LINE_CHAIN::IsClosed(), and SHAPE_LINE_CHAIN::PointCount().
|
overridevirtual |
Draw a chain of rounded segments.
aPointList | is a list of 2D-Vectors containing the chain points. |
aWidth | is a width of the segments |
Reimplemented from KIGFX::GAL.
Definition at line 238 of file cairo_gal.cpp.
References DrawSegment().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1017 of file cairo_gal.cpp.
|
inlinevirtualinherited |
Ends rendering of a differential layer.
Objects drawn after the StartDiffLayer() will be drawn and composited with a differential blend mode, then drawing is returned to normal.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 762 of file graphics_abstraction_layer.h.
|
overridevirtual |
End the drawing, needs to be called for every new frame.
Use GAL_DRAWING_CONTEXT RAII object unless you know what you're doing.
Reimplemented from KIGFX::GAL.
Definition at line 100 of file cairo_gal.cpp.
References Flush().
Referenced by KIGFX::CAIRO_GAL::EndDrawing().
|
overridevirtual |
End the group.
Reimplemented from KIGFX::GAL.
Definition at line 830 of file cairo_gal.cpp.
References m_isGrouping, and storePath().
Referenced by KIGFX::CAIRO_GAL::EndGroup().
|
inlinevirtualinherited |
Ends rendering of a negatives layer and draws it to the main layer.
No-op in OpenGL.
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 778 of file graphics_abstraction_layer.h.
|
inlineprotectedvirtualinherited |
Disable item update mode.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1039 of file graphics_abstraction_layer.h.
|
overridevirtual |
Force all remaining objects to be drawn.
Reimplemented from KIGFX::GAL.
Definition at line 594 of file cairo_gal.cpp.
References storePath().
Referenced by EndDrawing().
|
protected |
Definition at line 1123 of file cairo_gal.cpp.
References m_currentContext, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, m_lineWidthInPixels, and KIGFX::GAL::m_strokeColor.
Referenced by DrawArc(), DrawArcSegment(), DrawCircle(), DrawCurve(), DrawGlyph(), DrawLine(), drawPoly(), drawPoly(), drawPoly(), drawPoly(), DrawRectangle(), and DrawSegment().
|
inlineinherited |
Definition at line 278 of file graphics_abstraction_layer.h.
References m_clearColor.
Referenced by EDIT_POINTS::ViewDraw().
|
protectedinherited |
Get the actual cursor color to draw.
Definition at line 258 of file graphics_abstraction_layer.cpp.
References color, m_cursorColor, and m_isCursorEnabled.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), and KIGFX::OPENGL_GAL::blitCursor().
|
inlineinherited |
Get the fill color.
Definition at line 349 of file graphics_abstraction_layer.h.
References m_fillColor.
Referenced by KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS().
|
inlineinherited |
Definition at line 468 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), and KIGFX::PREVIEW::ANGLE_ITEM::drawPreviewShape().
|
inlineinherited |
Get the grid line width.
Definition at line 920 of file graphics_abstraction_layer.h.
References m_gridLineWidth.
|
inlineinherited |
Definition at line 819 of file graphics_abstraction_layer.h.
References m_gridOrigin.
For a given point it returns the nearest point belonging to the grid in world coordinates.
aPoint | is the point for which the grid point is searched. |
Definition at line 226 of file graphics_abstraction_layer.cpp.
References KiROUND(), m_gridOffset, m_gridSize, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by KIGFX::WX_VIEW_CONTROLS::GetRawCursorPosition().
|
inlineinherited |
Return the grid size.
Definition at line 846 of file graphics_abstraction_layer.h.
References m_gridSize.
Referenced by COMMON_TOOLS::CursorControl(), GERBVIEW_FRAME::DisplayGridMsg(), EDA_DRAW_FRAME::GetNearestGridPosition(), EDA_DRAW_FRAME::GetNearestHalfGridPosition(), and COMMON_TOOLS::PanControl().
|
inlineinherited |
Definition at line 793 of file graphics_abstraction_layer.h.
References KIGFX::ALWAYS, m_gridVisibility, m_options, and KIGFX::WITH_GRID.
Referenced by KIGFX::WX_VIEW_CONTROLS::GetRawCursorPosition(), ROUTER_TOOL::InlineBreakTrack(), ROUTER_TOOL::InlineDrag(), PNS::TOOL_BASE::updateEndItem(), and PNS::TOOL_BASE::updateStartItem().
|
inlineinherited |
Definition at line 791 of file graphics_abstraction_layer.h.
References m_gridVisibility.
|
inlineinherited |
Definition at line 487 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::OPENGL_GAL::BitmapText().
|
inlineinherited |
Get the fill status.
Definition at line 309 of file graphics_abstraction_layer.h.
References m_isFillEnabled.
Referenced by KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS().
|
inlineinherited |
Get the stroke status.
Definition at line 329 of file graphics_abstraction_layer.h.
References m_isStrokeEnabled.
Referenced by KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS().
|
inlineprivateinherited |
Definition at line 1160 of file graphics_abstraction_layer.h.
References m_layerDepth.
Referenced by KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS().
|
inlineinherited |
Get the line width.
Definition at line 399 of file graphics_abstraction_layer.h.
References m_lineWidth.
Referenced by BitmapText(), CALLBACK_GAL::DrawGlyph(), KIGFX::OPENGL_GAL::DrawGrid(), ROUTER_PREVIEW_ITEM::drawLineChain(), and KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS().
|
inlineinherited |
Definition at line 655 of file graphics_abstraction_layer.h.
References m_lookAtPoint.
Referenced by GetVisibleWorldExtents().
|
inlineinherited |
Definition at line 676 of file graphics_abstraction_layer.h.
References m_depthRange.
|
inlineinherited |
Definition at line 675 of file graphics_abstraction_layer.h.
References m_depthRange.
Referenced by EDIT_POINTS::ViewDraw(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), and KIGFX::VIEW_OVERLAY::ViewDraw().
|
inlineinherited |
Get the minimum line width in pixels.
Definition at line 409 of file graphics_abstraction_layer.h.
References m_minLineWidth.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing().
|
protected |
Return a valid key that can be used as a new group number.
Definition at line 1340 of file cairo_gal.cpp.
References m_groupCounter, and m_groups.
Referenced by BeginGroup().
|
inlineinherited |
Definition at line 664 of file graphics_abstraction_layer.h.
References m_rotation.
|
inlineinherited |
Definition at line 647 of file graphics_abstraction_layer.h.
References m_screenDPI.
|
inlineinherited |
Return GAL canvas size in pixels.
Definition at line 262 of file graphics_abstraction_layer.h.
References m_screenSize.
Referenced by BOARD_PRINTOUT::DrawPage(), SCH_PRINTOUT::PrintPage(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
|
inlineinherited |
Get the screen <-> world transformation matrix.
Definition at line 609 of file graphics_abstraction_layer.h.
References m_screenWorldMatrix.
Referenced by GetVisibleWorldExtents(), KIGFX::OPENGL_GAL::getWorldPixelSize(), screenSpaceCircle(), screenSpaceLine(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and TUNING_STATUS_VIEW_ITEM::ViewDraw().
|
inlineinherited |
Get the stroke color.
Definition at line 369 of file graphics_abstraction_layer.h.
References m_strokeColor.
Referenced by KIGFX::PREVIEW::DrawTextNextToCursor(), KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
|
inlinevirtualinherited |
Return the swap interval. -1 for adaptive, 0 for disabled/unknown.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 268 of file graphics_abstraction_layer.h.
|
inlinevirtualinherited |
Get the currently used target for rendering.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 716 of file graphics_abstraction_layer.h.
References KIGFX::TARGET_CACHED.
|
inlineinherited |
Definition at line 494 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::OPENGL_GAL::BitmapText().
|
inlineinherited |
Return the visible grid size in x and y directions.
Definition at line 856 of file graphics_abstraction_layer.h.
References computeMinGridSpacing(), m_gridSize, m_gridStyle, m_gridTick, m_worldScale, KIGFX::SMALL_CROSS, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by KIGFX::OPENGL_GAL::DrawGrid().
|
inherited |
Definition at line 203 of file graphics_abstraction_layer.cpp.
References GetLookAtPoint(), MATRIX3x3< T >::GetScale(), GetScreenWorldMatrix(), m_screenSize, BOX2< Vec >::SetOrigin(), BOX2< Vec >::SetSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ROUTER_TOOL::handleCommonEvents(), and ROUTER_TOOL::InlineDrag().
|
inlineinherited |
Get the world scale.
Definition at line 683 of file graphics_abstraction_layer.h.
References m_worldScale.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::DrawDashedLine(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), KIGFX::PREVIEW::GetConstantGlyphHeight(), SCH_BASE_FRAME::RefreshZoomDependentItems(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), and RATSNEST_VIEW_ITEM::ViewDraw().
|
inlineinherited |
Get the world <-> screen transformation matrix.
Definition at line 599 of file graphics_abstraction_layer.h.
References m_worldScreenMatrix.
|
inlineinherited |
Definition at line 658 of file graphics_abstraction_layer.h.
References m_zoomFactor.
Referenced by COMMON_TOOLS::doZoomInOut(), and EDA_DRAW_FRAME::OnUpdateSelectZoom().
|
inlinevirtualinherited |
Return true if the target exists.
aTarget | is the target to be checked. |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 730 of file graphics_abstraction_layer.h.
|
inlineoverridevirtual |
Return true if the GAL engine is a Cairo based type.
Reimplemented from KIGFX::GAL.
Definition at line 65 of file cairo_gal.h.
|
inlinevirtualinherited |
Checks the state of the context lock.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1009 of file graphics_abstraction_layer.h.
|
inlineinherited |
Return information about cursor visibility.
Definition at line 981 of file graphics_abstraction_layer.h.
References m_forceDisplayCursor, and m_isCursorEnabled.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), and KIGFX::OPENGL_GAL::blitCursor().
|
inlineinherited |
Definition at line 697 of file graphics_abstraction_layer.h.
References m_globalFlipX.
Referenced by KIGFX::CAIRO_GAL_BASE::angle_xform(), KIGFX::CAIRO_GAL_BASE::arc_angles_xform_and_normalize(), KIGFX::PREVIEW::DrawTextNextToCursor(), DS_PROXY_VIEW_ITEM::ViewDraw(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and TUNING_STATUS_VIEW_ITEM::ViewDraw().
|
inlineinherited |
Definition at line 698 of file graphics_abstraction_layer.h.
References m_globalFlipY.
|
inlineinherited |
Definition at line 471 of file graphics_abstraction_layer.h.
References m_attributes.
|
inlineinherited |
Definition at line 474 of file graphics_abstraction_layer.h.
References m_attributes.
|
inlineinherited |
Definition at line 477 of file graphics_abstraction_layer.h.
References m_attributes.
|
inlinevirtualinherited |
Return the initialization status for the canvas.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 76 of file graphics_abstraction_layer.h.
|
inlinevirtualinherited |
Return true if the GAL engine is a OpenGL based type.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 85 of file graphics_abstraction_layer.h.
|
inlineinherited |
Definition at line 480 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::OPENGL_GAL::BitmapText().
|
inlinevirtualinherited |
Return true if the GAL canvas is visible on the screen.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 79 of file graphics_abstraction_layer.h.
|
inlinevirtualinherited |
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1016 of file graphics_abstraction_layer.h.
Ensure that the first element is smaller than the second.
Definition at line 1093 of file graphics_abstraction_layer.h.
References T.
Referenced by KIGFX::CAIRO_GAL_BASE::arc_angles_xform_and_normalize(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), and KIGFX::OPENGL_GAL::DrawGrid().
|
overrideprotectedvirtualinherited |
Handler for observer settings changes.
Implements KIGFX::GAL_DISPLAY_OPTIONS_OBSERVER.
Definition at line 103 of file graphics_abstraction_layer.cpp.
References updatedGalDisplayOptions().
|
protected |
Definition at line 1022 of file cairo_gal.cpp.
References ClearScreen(), KIGFX::GAL::ComputeWorldScreenMatrix(), m_cairoWorldScreenMatrix, m_context, m_currentXform, m_imageSurfaces, m_isElementAdded, KIGFX::GAL::m_lineWidth, KIGFX::GAL::m_worldScreenMatrix, and updateWorldScreenMatrix().
Referenced by BeginDrawing(), and KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL().
|
inherited |
Reset text attributes to default styling.
FONT TODO: do we need any of this in GAL anymore?
Normally, custom attributes will be set individually after this, otherwise you can use SetTextAttributes()
Definition at line 157 of file graphics_abstraction_layer.cpp.
References GR_TEXT_H_ALIGN_CENTER, GR_TEXT_V_ALIGN_CENTER, SetFontBold(), SetFontItalic(), SetFontUnderlined(), SetGlyphSize(), SetHorizontalJustify(), SetTextMirrored(), and SetVerticalJustify().
Referenced by GAL(), KIGFX::PREVIEW::ARC_ASSISTANT::ViewDraw(), KIGFX::PREVIEW::BEZIER_ASSISTANT::ViewDraw(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), and KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw().
|
overridevirtual |
Resizes the canvas.
Reimplemented from KIGFX::GAL.
Definition at line 588 of file cairo_gal.cpp.
References KIGFX::GAL::m_screenSize.
Referenced by KIGFX::CAIRO_GAL::ResizeScreen().
|
overridevirtual |
Restore the context.
Reimplemented from KIGFX::GAL.
Definition at line 792 of file cairo_gal.cpp.
References CMD_RESTORE, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_currentXform, m_isGrouping, m_xformStack, storePath(), and updateWorldScreenMatrix().
|
overridevirtual |
Rotate the context.
aAngle | is the rotation angle in radians. |
Reimplemented from KIGFX::GAL.
Definition at line 715 of file cairo_gal.cpp.
References CMD_ROTATE, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_currentXform, m_isGrouping, storePath(), and updateWorldScreenMatrix().
Definition at line 191 of file cairo_gal.cpp.
References m_lineWidthIsOdd, roundp(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawArc(), drawAxes(), DrawCircle(), DrawCurve(), DrawGlyph(), drawGridCross(), drawGridLine(), drawGridPoint(), DrawLine(), drawPoly(), drawPoly(), drawPoly(), drawPoly(), DrawRectangle(), DrawSegment(), and roundp().
|
overridevirtual |
Save the context.
Reimplemented from KIGFX::GAL.
Definition at line 774 of file cairo_gal.cpp.
References CMD_SAVE, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_currentXform, m_isGrouping, m_xformStack, storePath(), and updateWorldScreenMatrix().
|
overridevirtual |
Scale the context.
aScale | is the scale factor for the x- and y-axis. |
Reimplemented from KIGFX::GAL.
Definition at line 754 of file cairo_gal.cpp.
References CMD_SCALE, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_currentXform, m_isGrouping, storePath(), updateWorldScreenMatrix(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineinherited |
Set the axes color.
aAxesColor | is the color to draw the axes if enabled. |
Definition at line 892 of file graphics_abstraction_layer.h.
References m_axesColor.
Referenced by KIGFX::CAIRO_GAL_BASE::CAIRO_GAL_BASE(), SCH_BASE_FRAME::CommonSettingsChanged(), SYMBOL_VIEWER_FRAME::CommonSettingsChanged(), KIGFX::OPENGL_GAL::OPENGL_GAL(), and SYMBOL_EDIT_FRAME::SwitchCanvas().
|
inlineinherited |
Enable drawing the axes.
Definition at line 900 of file graphics_abstraction_layer.h.
References m_axesEnabled.
Referenced by FOOTPRINT_EDIT_FRAME::ActivateGalCanvas(), GAL(), DIALOG_PAD_PROPERTIES::prepareCanvas(), FP_TREE_SYNCHRONIZING_ADAPTER::ShowPreview(), FOOTPRINT_EDIT_FRAME::SwitchCanvas(), and SYMBOL_EDIT_FRAME::SwitchCanvas().
|
inlineinherited |
Definition at line 273 of file graphics_abstraction_layer.h.
References m_clearColor.
Referenced by BOARD_PRINTOUT::DrawPage(), and SCH_PRINTOUT::PrintPage().
|
inlineinherited |
Draw every tick line wider.
aInterval | increase the width of every aInterval line, if 0 do not use this feature. |
Definition at line 910 of file graphics_abstraction_layer.h.
References m_gridTick.
Referenced by GAL().
|
inlineinherited |
Set the cursor color.
aCursorColor | is the color of the cursor. |
Definition at line 991 of file graphics_abstraction_layer.h.
References m_cursorColor.
Referenced by GAL().
|
inlineinherited |
Enable/disable cursor.
aCursorEnabled | is true if the cursor should be drawn, else false. |
Definition at line 971 of file graphics_abstraction_layer.h.
References m_isCursorEnabled.
Referenced by GAL().
|
inlineinherited |
Set the range of the layer depth.
Usually required for the OpenGL implementation, any object outside this range is not drawn.
The MinDepth (x) is closest to the clipping plane (top) while the MaxDepth (y) is farthest from the clipping plane (bottom).
Definition at line 674 of file graphics_abstraction_layer.h.
References m_depthRange.
Referenced by GAL().
|
overridevirtual |
Set the fill color.
aColor | is the color for filling. |
Reimplemented from KIGFX::GAL.
Definition at line 656 of file cairo_gal.cpp.
References CMD_SET_FILLCOLOR, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, KIGFX::GAL::m_fillColor, m_isGrouping, and storePath().
|
inlineinherited |
Sets flipping of the screen.
xAxis | is the flip flag for the X axis. |
yAxis | is the flip flag for the Y axis. |
Definition at line 691 of file graphics_abstraction_layer.h.
References m_globalFlipX, and m_globalFlipY.
Referenced by GAL(), and BOARD_PRINTOUT::setupGal().
|
inlineinherited |
Definition at line 470 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by ResetTextAttributes().
|
inlineinherited |
Definition at line 473 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by ResetTextAttributes().
|
inlineinherited |
Definition at line 476 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by ResetTextAttributes().
|
inlineinherited |
Definition at line 467 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::bitmapText(), KIGFX::PREVIEW::ANGLE_ITEM::drawPreviewShape(), KIGFX::VIEW_OVERLAY::COMMAND_GLYPH_SIZE::Execute(), and ResetTextAttributes().
|
inlineinherited |
Set the grid color.
aGridColor | is the grid color, it should have a low alpha value for the best effect. |
Definition at line 882 of file graphics_abstraction_layer.h.
References m_gridColor.
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), KIGFX::CAIRO_GAL_BASE::CAIRO_GAL_BASE(), KIGFX::OPENGL_GAL::OPENGL_GAL(), GERBVIEW_FRAME::SetGridColor(), and PCB_EDIT_FRAME::SetGridColor().
|
inlineinherited |
Set the origin point for the grid.
aGridOrigin | is a vector containing the grid origin point, in world coordinates. |
Definition at line 804 of file graphics_abstraction_layer.h.
References m_gridOffset, m_gridOrigin, and m_gridSize.
Referenced by PCB_CONTROL::DoSetGridOrigin(), PCB_EDIT_FRAME::RebuildAndRefresh(), and PCB_BASE_EDIT_FRAME::SetBoard().
|
inlineinherited |
Set the grid size.
aGridSize | is a vector containing the grid size in x and y direction. |
Definition at line 829 of file graphics_abstraction_layer.h.
References m_gridOffset, m_gridOrigin, and m_gridSize.
Referenced by FOOTPRINT_PREVIEW_PANEL::New(), COMMON_TOOLS::OnGridChanged(), and DIALOG_PAD_PROPERTIES::prepareCanvas().
|
inlineinherited |
Set the visibility setting of the grid.
aVisibility | is the new visibility setting of the grid. |
Definition at line 789 of file graphics_abstraction_layer.h.
References m_gridVisibility.
Referenced by GAL(), FOOTPRINT_PREVIEW_PANEL::New(), COMMON_TOOLS::OnGridChanged(), DIALOG_PAD_PROPERTIES::prepareCanvas(), and EDA_DRAW_FRAME::SetGridVisibility().
|
inlineinherited |
Definition at line 482 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::bitmapText(), and ResetTextAttributes().
|
overridevirtual |
Enable/disable fill.
aIsFillEnabled | is true, when the graphics objects should be filled, else false. |
Reimplemented from KIGFX::GAL.
Definition at line 608 of file cairo_gal.cpp.
References KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::BoolArg, CMD_SET_FILL, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, KIGFX::GAL::m_isFillEnabled, m_isGrouping, and storePath().
Referenced by DrawGlyph().
|
overridevirtual |
Enable/disable stroked outlines.
aIsStrokeEnabled | is true, if the outline of an object should be stroked. |
Reimplemented from KIGFX::GAL.
Definition at line 623 of file cairo_gal.cpp.
References KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::BoolArg, CMD_SET_STROKE, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_isGrouping, KIGFX::GAL::m_isStrokeEnabled, and storePath().
Referenced by DrawGlyph().
|
overridevirtual |
Set the depth of the layer (position on the z-axis)
If you do this, you should consider using a GAL_SCOPED_ATTR to ensure the depth is reset to the original value.
aLayerDepth | the layer depth for the objects. Smaller is closer to the viewer. |
Reimplemented from KIGFX::GAL.
Definition at line 693 of file cairo_gal.cpp.
References KIGFX::GAL::SetLayerDepth(), and storePath().
Referenced by DrawGrid().
|
overridevirtual |
Set the line width.
aLineWidth | is the line width. |
Reimplemented from KIGFX::GAL.
Definition at line 674 of file cairo_gal.cpp.
References CMD_SET_LINE_WIDTH, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_isGrouping, KIGFX::GAL::m_lineWidth, KIGFX::GAL::SetLineWidth(), and storePath().
Referenced by DrawGrid(), and DrawSegment().
|
inlineinherited |
Get/set the Point in world space to look at.
This point corresponds with the center of the actual drawing area.
Definition at line 654 of file graphics_abstraction_layer.h.
References m_lookAtPoint.
Referenced by BOARD_PRINTOUT::DrawPage(), GAL(), and SCH_PRINTOUT::PrintPage().
|
inlinevirtualinherited |
Set the minimum line width in pixels.
aLineWidth | is the minimum line width. |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 389 of file graphics_abstraction_layer.h.
References m_minLineWidth.
Referenced by GAL(), and KIGFX::OPENGL_GAL::SetMinLineWidth().
|
virtualinherited |
Set the cursor in the native panel.
aCursor | is the cursor to use in the native panel |
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 291 of file graphics_abstraction_layer.cpp.
References m_currentNativeCursor.
Referenced by GAL(), KIGFX::CAIRO_GAL::SetNativeCursorStyle(), and KIGFX::OPENGL_GAL::SetNativeCursorStyle().
|
overridevirtual |
Set negative draw mode in the renderer.
When negative mode is enabled, drawn items will subtract from previously drawn items. This is mainly needed for Gerber negative item support in Cairo, since unlike in OpenGL, objects drawn with zero opacity on top of other objects would not normally mask objects in Cairo. This method is a no-op in OpenGL.
aSetting | is true if negative mode should be enabled |
Reimplemented from KIGFX::GAL.
Definition at line 979 of file cairo_gal.cpp.
References m_currentContext.
|
inlineinherited |
Get/set the rotation angle (in radians).
Definition at line 663 of file graphics_abstraction_layer.h.
References m_rotation.
Referenced by GAL().
|
inlineinherited |
Set the dots per inch of the screen.
This value depends on the user screen, it should be configurable by the application. For instance a typical notebook with HD+ resolution (1600x900) has 106 DPI.
Definition at line 646 of file graphics_abstraction_layer.h.
References m_screenDPI.
Referenced by KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), and GAL().
|
inlineinherited |
Definition at line 638 of file graphics_abstraction_layer.h.
References m_screenSize.
Referenced by KIGFX::CAIRO_PRINT_GAL::SetSheetSize().
|
overridevirtual |
Set the stroke color.
aColor | is the color for stroking the outline. |
Reimplemented from KIGFX::GAL.
Definition at line 638 of file cairo_gal.cpp.
References CMD_SET_STROKECOLOR, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_isGrouping, KIGFX::GAL::m_strokeColor, and storePath().
|
inlinevirtualinherited |
Set the target for rendering.
aTarget | is the new target for rendering. |
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 709 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), and MY_DRAWING::ViewDraw().
|
inlineinherited |
Definition at line 479 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by ResetTextAttributes(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
|
inlineinherited |
Definition at line 489 of file graphics_abstraction_layer.h.
References m_attributes.
Referenced by KIGFX::bitmapText(), and ResetTextAttributes().
|
inlineinherited |
Set the world <-> screen transformation matrix.
aMatrix | is the 3x3 world <-> screen transformation matrix. |
Definition at line 619 of file graphics_abstraction_layer.h.
References m_worldScreenMatrix.
|
inlineinherited |
Set the unit length.
This defines the length [inch] per one integer. For instance a value 0.001 means that the coordinate [1000, 1000] corresponds with a point at (1 inch, 1 inch) or 1 mil resolution per integer.
Definition at line 636 of file graphics_abstraction_layer.h.
References m_worldUnitLength.
Referenced by GAL(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_PRINTOUT::PrintPage(), GERBVIEW_PRINTOUT::setupGal(), PCBNEW_PRINTOUT::setupGal(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), and PL_DRAW_PANEL_GAL::SwitchBackend().
|
inlineinherited |
Definition at line 657 of file graphics_abstraction_layer.h.
References m_zoomFactor.
Referenced by BOARD_PRINTOUT::DrawPage(), GAL(), and SCH_PRINTOUT::PrintPage().
|
inlinevirtualinherited |
Show/hide the GAL canvas.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 259 of file graphics_abstraction_layer.h.
|
inlinevirtualinherited |
Begins rendering of a differential layer.
Used by gerbview's differential mode.
Differential layers have their drawn objects blended onto the lower layers differently so we need to end drawing of current objects and start a new set to be completed with a different blend mode.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 755 of file graphics_abstraction_layer.h.
|
inlinevirtualinherited |
Begins rendering in a new layer that will be copied to the main layer in EndNegativesLayer().
For Cairo, layers with negative items need a new layer so when negative layers _CLEAR sections it doesn't delete drawings on layers below them. No-op in OpenGL
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 772 of file graphics_abstraction_layer.h.
|
protected |
Store the actual path.
Definition at line 1151 of file cairo_gal.cpp.
References CMD_FILL_PATH, CMD_STROKE_PATH, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_CairoPath, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentContext, m_currentGroup, KIGFX::GAL::m_fillColor, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, m_isGrouping, KIGFX::GAL::m_isStrokeEnabled, and KIGFX::GAL::m_strokeColor.
Referenced by BeginGroup(), ChangeGroupColor(), DeleteGroup(), DrawGroup(), EndGroup(), Flush(), Restore(), Rotate(), Save(), Scale(), SetFillColor(), SetIsFill(), SetIsStroke(), SetLayerDepth(), SetLineWidth(), SetStrokeColor(), KIGFX::CAIRO_GAL::SetTarget(), and Translate().
|
protected |
Definition at line 214 of file cairo_gal.cpp.
References m_currentContext, KIGFX::GAL::m_lineWidth, m_lineWidthInPixels, m_lineWidthIsOdd, and xform().
Referenced by DrawArc(), DrawArcSegment(), drawAxes(), DrawCircle(), DrawCurve(), DrawGlyph(), drawGridCross(), drawGridLine(), DrawLine(), drawPoly(), drawPoly(), drawPoly(), drawPoly(), DrawRectangle(), and DrawSegment().
Compute the point position in screen coordinates from given world coordinates.
aPoint | the point position in world coordinates. |
Definition at line 953 of file graphics_abstraction_layer.h.
References m_worldScreenMatrix.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
Compute the point position in world coordinates from given screen coordinates.
aPoint | the point position in screen coordinates. |
Definition at line 942 of file graphics_abstraction_layer.h.
References m_screenWorldMatrix.
|
overridevirtual |
Transform the context.
aTransformation | is the transformation matrix. |
Reimplemented from KIGFX::GAL.
Definition at line 700 of file cairo_gal.cpp.
References m_currentXform, MATRIX3x3< T >::m_data, and updateWorldScreenMatrix().
|
overridevirtual |
Translate the context.
aTranslation | is the translation vector. |
Reimplemented from KIGFX::GAL.
Definition at line 734 of file cairo_gal.cpp.
References CMD_TRANSLATE, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_currentXform, m_isGrouping, storePath(), updateWorldScreenMatrix(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlinevirtualinherited |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1018 of file graphics_abstraction_layer.h.
|
protectedvirtualinherited |
Handle updating display options.
Derived classes should call up to this to set base-class methods.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 112 of file graphics_abstraction_layer.cpp.
References m_axesEnabled, m_crossHairMode, m_forceDisplayCursor, m_gridLineWidth, m_gridMinSpacing, m_gridStyle, m_options, and refresh.
Referenced by OnGalDisplayOptionsChanged(), KIGFX::CAIRO_GAL::updatedGalDisplayOptions(), and KIGFX::OPENGL_GAL::updatedGalDisplayOptions().
|
protected |
Definition at line 107 of file cairo_gal.cpp.
References m_cairoWorldScreenMatrix, m_currentWorld2Screen, and m_currentXform.
Referenced by resetContext(), Restore(), Rotate(), Save(), Scale(), Transform(), and Translate().
Definition at line 123 of file cairo_gal.cpp.
References VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
protected |
Definition at line 177 of file cairo_gal.cpp.
References m_currentWorld2Screen.
Referenced by DrawArc(), DrawArcSegment(), drawAxes(), DrawCircle(), DrawCurve(), DrawGlyph(), drawGridCross(), drawGridLine(), drawGridPoint(), DrawLine(), drawPoly(), drawPoly(), drawPoly(), drawPoly(), DrawRectangle(), DrawSegment(), syncLineWidth(), and xform().
|
protected |
Definition at line 113 of file cairo_gal.cpp.
References m_currentWorld2Screen, VECTOR2< T >::x, and VECTOR2< T >::y.
|
staticconstexprprotected |
Format used to store pixels.
Definition at line 376 of file cairo_gal.h.
Referenced by KIGFX::CAIRO_GAL::allocateBitmaps(), and KIGFX::CAIRO_GAL::initSurface().
|
staticprotectedinherited |
Depth level on which the grid is drawn.
Definition at line 1064 of file graphics_abstraction_layer.h.
|
privateinherited |
Definition at line 1165 of file graphics_abstraction_layer.h.
Referenced by BitmapText(), GetGlyphSize(), GetHorizontalJustify(), GetVerticalJustify(), IsFontBold(), IsFontItalic(), IsFontUnderlined(), IsTextMirrored(), SetFontBold(), SetFontItalic(), SetFontUnderlined(), SetGlyphSize(), SetHorizontalJustify(), SetTextMirrored(), and SetVerticalJustify().
|
protectedinherited |
Color of the axes.
Definition at line 1142 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::drawAxes(), KIGFX::OPENGL_GAL::DrawGrid(), and SetAxesColor().
|
protectedinherited |
Should the axes be drawn.
Definition at line 1143 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), SetAxesEnabled(), and updatedGalDisplayOptions().
|
protected |
Cairo world to screen transform matrix.
Definition at line 364 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), resetContext(), and updateWorldScreenMatrix().
|
protectedinherited |
Definition at line 1130 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), KIGFX::OPENGL_GAL::ClearTarget(), GetClearColor(), and SetClearColor().
|
protected |
Cairo image.
Definition at line 368 of file cairo_gal.h.
Referenced by KIGFX::CAIRO_GAL::BeginDrawing(), CAIRO_GAL_BASE(), KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), KIGFX::CAIRO_GAL::deinitSurface(), KIGFX::CAIRO_GAL::initSurface(), resetContext(), and ~CAIRO_GAL_BASE().
|
protectedinherited |
Crosshair drawing mode.
Definition at line 1153 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), GAL(), and updatedGalDisplayOptions().
|
protected |
Currently used Cairo context for drawing.
Definition at line 367 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), ClearScreen(), DrawArc(), DrawArcSegment(), drawAxes(), DrawBitmap(), DrawCircle(), DrawCurve(), DrawGlyph(), drawGridCross(), drawGridLine(), drawGridPoint(), DrawGroup(), DrawLine(), drawPoly(), drawPoly(), drawPoly(), drawPoly(), DrawRectangle(), DrawSegment(), flushPath(), KIGFX::CAIRO_GAL::initSurface(), KIGFX::CAIRO_GAL::setCompositor(), SetNegativeDrawMode(), storePath(), and syncLineWidth().
|
protected |
Currently used group.
Definition at line 359 of file cairo_gal.h.
Referenced by BeginGroup(), CAIRO_GAL_BASE(), Restore(), Rotate(), Save(), Scale(), SetFillColor(), SetIsFill(), SetIsStroke(), SetLineWidth(), SetStrokeColor(), storePath(), and Translate().
|
protectedinherited |
Current cursor.
Definition at line 1156 of file graphics_abstraction_layer.h.
Referenced by GAL(), KIGFX::CAIRO_GAL::SetNativeCursorStyle(), SetNativeCursorStyle(), and KIGFX::OPENGL_GAL::SetNativeCursorStyle().
|
protected |
Definition at line 366 of file cairo_gal.h.
Referenced by angle_xform(), CAIRO_GAL_BASE(), DrawBitmap(), updateWorldScreenMatrix(), xform(), and xform().
|
protected |
Definition at line 365 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), resetContext(), Restore(), Rotate(), Save(), Scale(), Transform(), Translate(), and updateWorldScreenMatrix().
|
protectedinherited |
Cursor color.
Definition at line 1152 of file graphics_abstraction_layer.h.
Referenced by getCursorColor(), and SetCursorColor().
|
protectedinherited |
Current cursor position (world coordinates)
Definition at line 1154 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_GAL_BASE::DrawCursor(), and KIGFX::OPENGL_GAL::DrawCursor().
|
protectedinherited |
Range of the depth.
Definition at line 1133 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), GetMaxDepth(), GetMinDepth(), SetDepthRange(), and SetLayerDepth().
|
protectedinherited |
Stored depth values.
Definition at line 1106 of file graphics_abstraction_layer.h.
|
protectedinherited |
The fill color.
Definition at line 1128 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawCircle(), KIGFX::OPENGL_GAL::DrawGlyph(), KIGFX::OPENGL_GAL::DrawGlyphs(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawHoleWall(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::drawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), KIGFX::CAIRO_GAL_BASE::flushPath(), GetFillColor(), KIGFX::CAIRO_GAL_BASE::SetFillColor(), SetFillColor(), and KIGFX::CAIRO_GAL_BASE::storePath().
|
protectedinherited |
Always show cursor.
Definition at line 1151 of file graphics_abstraction_layer.h.
Referenced by GAL(), IsCursorEnabled(), and updatedGalDisplayOptions().
|
protectedinherited |
Flag for X axis flipping.
Definition at line 1119 of file graphics_abstraction_layer.h.
Referenced by BitmapText(), KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), ComputeWorldScreenMatrix(), IsFlippedX(), and SetFlip().
|
protectedinherited |
Flag for Y axis flipping.
Definition at line 1120 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), ComputeWorldScreenMatrix(), IsFlippedY(), and SetFlip().
|
protectedinherited |
Color of the grid.
Definition at line 1141 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridLine(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), and SetGridColor().
|
protectedinherited |
Line width of the grid.
Definition at line 1145 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GAL(), GetGridLineWidth(), and updatedGalDisplayOptions().
|
protectedinherited |
Minimum screen size of the grid (pixels) below which the grid is not drawn.
Definition at line 1146 of file graphics_abstraction_layer.h.
Referenced by computeMinGridSpacing(), GAL(), and updatedGalDisplayOptions().
|
protectedinherited |
The grid offset to compensate cursor position.
Definition at line 1140 of file graphics_abstraction_layer.h.
Referenced by GetGridPoint(), SetGridOrigin(), and SetGridSize().
|
protectedinherited |
The grid origin.
Definition at line 1139 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GetGridOrigin(), SetGridOrigin(), and SetGridSize().
|
protectedinherited |
The grid size.
Definition at line 1138 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GetGridPoint(), GetGridSize(), GetVisibleGridSize(), SetGridOrigin(), and SetGridSize().
|
protectedinherited |
Grid display style.
Definition at line 1137 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GAL(), GetVisibleGridSize(), and updatedGalDisplayOptions().
|
protectedinherited |
Every tick line gets the double width.
Definition at line 1144 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GetVisibleGridSize(), and SetCoarseGrid().
|
protectedinherited |
Should the grid be shown.
Definition at line 1136 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GetGridSnapping(), GetGridVisibility(), and SetGridVisibility().
|
protected |
Counter used for generating group keys.
Definition at line 358 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), and getNewGroupNumber().
|
protected |
List of graphic groups.
Definition at line 357 of file cairo_gal.h.
Referenced by BeginGroup(), ChangeGroupColor(), ClearCache(), DeleteGroup(), DrawGroup(), and getNewGroupNumber().
|
protected |
List of surfaces that were created by painting images, to be cleaned up later.
Definition at line 372 of file cairo_gal.h.
Referenced by DrawBitmap(), resetContext(), and ~CAIRO_GAL_BASE().
|
protectedinherited |
Is the cursor enabled?
Definition at line 1150 of file graphics_abstraction_layer.h.
Referenced by getCursorColor(), IsCursorEnabled(), and SetCursorEnabled().
|
protected |
Was an graphic element added ?
Definition at line 356 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), DrawArc(), DrawArcSegment(), DrawBitmap(), DrawCircle(), DrawCurve(), DrawGlyph(), DrawLine(), drawPoly(), drawPoly(), drawPoly(), drawPoly(), DrawRectangle(), DrawSegment(), resetContext(), and storePath().
|
protectedinherited |
Is filling of graphic objects enabled ?
Definition at line 1125 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::DrawArc(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawCircle(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawHoleWall(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::drawSegment(), KIGFX::OPENGL_GAL::drawSegmentChain(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), KIGFX::CAIRO_GAL_BASE::flushPath(), GetIsFill(), KIGFX::CAIRO_GAL_BASE::SetIsFill(), SetIsFill(), and KIGFX::CAIRO_GAL_BASE::storePath().
|
protected |
Is grouping enabled ?
Definition at line 355 of file cairo_gal.h.
Referenced by BeginGroup(), CAIRO_GAL_BASE(), EndGroup(), Restore(), Rotate(), Save(), Scale(), SetFillColor(), SetIsFill(), SetIsStroke(), SetLineWidth(), SetStrokeColor(), storePath(), and Translate().
|
protectedinherited |
Are the outlines stroked ?
Definition at line 1126 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawCircle(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), KIGFX::CAIRO_GAL_BASE::flushPath(), GetIsStroke(), KIGFX::CAIRO_GAL_BASE::SetIsStroke(), SetIsStroke(), and KIGFX::CAIRO_GAL_BASE::storePath().
|
protectedinherited |
The actual layer depth.
Definition at line 1132 of file graphics_abstraction_layer.h.
Referenced by AdvanceDepth(), KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawBitmap(), KIGFX::OPENGL_GAL::drawCircle(), KIGFX::OPENGL_GAL::drawFilledSemiCircle(), KIGFX::OPENGL_GAL::DrawGlyph(), KIGFX::OPENGL_GAL::DrawGlyphs(), KIGFX::OPENGL_GAL::DrawHoleWall(), KIGFX::OPENGL_GAL::drawLineQuad(), KIGFX::OPENGL_GAL::DrawPolygon(), KIGFX::OPENGL_GAL::DrawPolygon(), KIGFX::OPENGL_GAL::DrawPolygon(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::OPENGL_GAL::drawStrokedSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), getLayerDepth(), and SetLayerDepth().
|
protectedinherited |
The line width.
Definition at line 1122 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL_BASE::CAIRO_GAL_BASE(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::drawCircle(), KIGFX::OPENGL_GAL::drawLineQuad(), KIGFX::OPENGL_GAL::drawStrokedSemiCircle(), GetLineWidth(), KIGFX::CAIRO_GAL_BASE::resetContext(), KIGFX::CAIRO_GAL_BASE::SetLineWidth(), SetLineWidth(), and KIGFX::CAIRO_GAL_BASE::syncLineWidth().
|
protected |
Definition at line 361 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), DrawArc(), DrawCircle(), drawGridCross(), flushPath(), and syncLineWidth().
|
protected |
Definition at line 362 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), DrawGrid(), roundp(), and syncLineWidth().
|
protectedinherited |
Point to be looked at in world space.
Definition at line 1111 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), ComputeWorldScreenMatrix(), KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), GetLookAtPoint(), and SetLookAtPoint().
|
protectedinherited |
Minimum line width in pixels.
Definition at line 1123 of file graphics_abstraction_layer.h.
Referenced by GetMinLineWidth(), and SetMinLineWidth().
|
protectedinherited |
Definition at line 1104 of file graphics_abstraction_layer.h.
Referenced by GAL().
|
protectedinherited |
Definition at line 1103 of file graphics_abstraction_layer.h.
Referenced by GAL(), GetGridSnapping(), KIGFX::OPENGL_GAL::OPENGL_GAL(), KIGFX::CAIRO_GAL::setCompositor(), KIGFX::CAIRO_GAL::updatedGalDisplayOptions(), updatedGalDisplayOptions(), and KIGFX::OPENGL_GAL::updatedGalDisplayOptions().
|
protectedinherited |
Rotation transformation (radians)
Definition at line 1114 of file graphics_abstraction_layer.h.
Referenced by ComputeWorldScreenMatrix(), GetRotation(), and SetRotation().
|
protectedinherited |
The dots per inch of the screen.
Definition at line 1110 of file graphics_abstraction_layer.h.
Referenced by computeWorldScale(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), GetScreenDPI(), SetScreenDPI(), and KIGFX::CAIRO_PRINT_GAL::SetSheetSize().
|
protectedinherited |
Screen size in screen (wx logical) coordinates.
Definition at line 1107 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_GAL::allocateBitmaps(), KIGFX::OPENGL_GAL::BeginDrawing(), KIGFX::CAIRO_GAL_BASE::blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_GAL::CAIRO_GAL(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), ComputeWorldScreenMatrix(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL::EndDrawing(), GetScreenPixelSize(), KIGFX::OPENGL_GAL::getScreenPixelSize(), GetVisibleWorldExtents(), KIGFX::CAIRO_GAL::initSurface(), KIGFX::OPENGL_GAL::OPENGL_GAL(), KIGFX::CAIRO_GAL_BASE::ResizeScreen(), KIGFX::OPENGL_GAL::ResizeScreen(), KIGFX::CAIRO_GAL::setCompositor(), and SetScreenSize().
|
protectedinherited |
Screen transformation.
Definition at line 1116 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::blitCursor(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), ComputeWorldScreenMatrix(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::OPENGL_GAL::DrawGrid(), GetScreenWorldMatrix(), and ToWorld().
|
protectedinherited |
The color of the outlines.
Definition at line 1129 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing(), KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::drawBitmapOverbar(), KIGFX::OPENGL_GAL::drawCircle(), KIGFX::CAIRO_GAL_BASE::DrawGroup(), KIGFX::OPENGL_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawPolyline(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), KIGFX::OPENGL_GAL::drawSegment(), KIGFX::OPENGL_GAL::drawSegmentChain(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::CAIRO_GAL_BASE::flushPath(), GetStrokeColor(), KIGFX::CAIRO_GAL_BASE::SetStrokeColor(), SetStrokeColor(), and KIGFX::CAIRO_GAL_BASE::storePath().
|
protected |
Cairo surface.
Definition at line 369 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), KIGFX::CAIRO_GAL::deinitSurface(), KIGFX::CAIRO_GAL::initSurface(), and ~CAIRO_GAL_BASE().
|
protectedinherited |
The scale factor world->screen.
Definition at line 1117 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::blitCursor(), computeWorldScale(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), ComputeWorldScreenMatrix(), KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), GetVisibleGridSize(), and GetWorldScale().
|
protectedinherited |
World transformation.
Definition at line 1115 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), ComputeWorldScreenMatrix(), GetWorldScreenMatrix(), KIGFX::CAIRO_GAL_BASE::resetContext(), SetWorldScreenMatrix(), and ToScreen().
|
protectedinherited |
The unit length of the world coordinates [inch].
Definition at line 1109 of file graphics_abstraction_layer.h.
Referenced by computeWorldScale(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), KIGFX::CAIRO_GAL_BASE::DrawBitmap(), KIGFX::OPENGL_GAL::DrawBitmap(), and SetWorldUnitLength().
|
protected |
Definition at line 374 of file cairo_gal.h.
|
protectedinherited |
The zoom factor.
Definition at line 1113 of file graphics_abstraction_layer.h.
Referenced by computeWorldScale(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), GetZoomFactor(), and SetZoomFactor().
|
staticprotected |
Maximum number of arguments for one command.
Definition at line 319 of file cairo_gal.h.
|
staticprotectedinherited |
Definition at line 1061 of file graphics_abstraction_layer.h.
Referenced by GAL().
|
staticprotectedinherited |
Possible depth range.
Definition at line 1060 of file graphics_abstraction_layer.h.
Referenced by GAL().