![]() |
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. More... | |
void | DrawLine (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) override |
Draw a line. More... | |
void | DrawSegment (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint, double aWidth) override |
Draw a rounded segment. More... | |
void | DrawCircle (const VECTOR2D &aCenterPoint, double aRadius) override |
Draw a circle using world coordinates. More... | |
void | DrawArc (const VECTOR2D &aCenterPoint, double aRadius, double aStartAngle, double aEndAngle) override |
Draw an arc. More... | |
void | DrawArcSegment (const VECTOR2D &aCenterPoint, double aRadius, double aStartAngle, double aEndAngle, double aWidth, double aMaxError) override |
Draw an arc segment. More... | |
void | DrawRectangle (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) override |
Draw a rectangle. More... | |
void | DrawPolyline (const std::deque< VECTOR2D > &aPointList) override |
Draw a polyline. More... | |
void | DrawPolyline (const VECTOR2D aPointList[], int aListSize) override |
void | DrawPolyline (const SHAPE_LINE_CHAIN &aLineChain) override |
void | DrawPolygon (const std::deque< VECTOR2D > &aPointList) override |
Draw a polygon. More... | |
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 | DrawCurve (const VECTOR2D &startPoint, const VECTOR2D &controlPointA, const VECTOR2D &controlPointB, const VECTOR2D &endPoint, double aFilterValue=0.0) override |
Draw a cubic bezier spline. More... | |
void | DrawBitmap (const BITMAP_BASE &aBitmap) override |
Draw a bitmap image. More... | |
void | ResizeScreen (int aWidth, int aHeight) override |
Resizes the canvas. More... | |
void | Flush () override |
Force all remaining objects to be drawn. More... | |
void | ClearScreen () override |
Clear the screen. More... | |
void | SetIsFill (bool aIsFillEnabled) override |
Enable/disable fill. More... | |
void | SetIsStroke (bool aIsStrokeEnabled) override |
Enable/disable stroked outlines. More... | |
void | SetStrokeColor (const COLOR4D &aColor) override |
Set the stroke color. More... | |
void | SetFillColor (const COLOR4D &aColor) override |
Set the fill color. More... | |
void | SetLineWidth (float aLineWidth) override |
Set the line width. More... | |
void | SetLayerDepth (double aLayerDepth) override |
Set the depth of the layer (position on the z-axis) More... | |
void | Transform (const MATRIX3x3D &aTransformation) override |
Transform the context. More... | |
void | Rotate (double aAngle) override |
Rotate the context. More... | |
void | Translate (const VECTOR2D &aTranslation) override |
Translate the context. More... | |
void | Scale (const VECTOR2D &aScale) override |
Scale the context. More... | |
void | Save () override |
Save the context. More... | |
void | Restore () override |
Restore the context. More... | |
int | BeginGroup () override |
Begin a group. More... | |
void | EndGroup () override |
End the group. More... | |
void | DrawGroup (int aGroupNumber) override |
Draw the stored group. More... | |
void | ChangeGroupColor (int aGroupNumber, const COLOR4D &aNewColor) override |
Change the color used to draw the group. More... | |
void | ChangeGroupDepth (int aGroupNumber, int aDepth) override |
Change the depth (Z-axis position) of the group. More... | |
void | DeleteGroup (int aGroupNumber) override |
Delete the group from the memory. More... | |
void | ClearCache () override |
Delete all data created during caching of graphic items. More... | |
void | SetNegativeDrawMode (bool aSetting) override |
Set negative draw mode in the renderer. More... | |
void | DrawCursor (const VECTOR2D &aCursorPosition) override |
Draw the cursor. More... | |
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(). More... | |
void | EndDrawing () override |
End the drawing, needs to be called for every new frame. More... | |
virtual bool | IsInitialized () const |
Return the initialization status for the canvas. More... | |
virtual bool | IsVisible () const |
Return true if the GAL canvas is visible on the screen. More... | |
virtual bool | IsOpenGlEngine () |
Return true if the GAL engine is a OpenGL based type. More... | |
virtual bool | Show (bool aShow) |
Show/hide the GAL canvas. More... | |
const VECTOR2I & | GetScreenPixelSize () const |
Return GAL canvas size in pixels. More... | |
void | SetClearColor (const COLOR4D &aColor) |
const COLOR4D & | GetClearColor () const |
const COLOR4D & | GetFillColor () const |
Get the fill color. More... | |
const COLOR4D & | GetStrokeColor () const |
Get the stroke color. More... | |
float | GetLineWidth () const |
Get the line width. More... | |
const STROKE_FONT & | GetStrokeFont () const |
virtual void | StrokeText (const wxString &aText, const VECTOR2D &aPosition, double aRotationAngle) |
Draw a vector type text using preloaded Newstroke font. More... | |
virtual void | BitmapText (const wxString &aText, const VECTOR2D &aPosition, double aRotationAngle) |
Draw a text using a bitmap font. More... | |
VECTOR2D | GetTextLineSize (const UTF8 &aText) const |
Compute the X and Y size of a given text. More... | |
virtual void | SetTextAttributes (const EDA_TEXT *aText) |
Loads attributes of the given text (bold/italic/underline/mirrored and so on). More... | |
void | ResetTextAttributes () |
Reset text attributes to default styling. More... | |
void | SetGlyphSize (const VECTOR2D &aSize) |
Set the font glyph size. More... | |
const VECTOR2D & | GetGlyphSize () const |
void | SetFontBold (bool aBold) |
Set bold property of current font. More... | |
bool | IsFontBold () const |
void | SetFontItalic (bool aItalic) |
Set italic property of current font. More... | |
bool | IsFontItalic () const |
void | SetFontUnderlined (bool aUnderlined) |
bool | IsFontUnderlined () const |
void | SetTextMirrored (bool aMirrored) |
Set a mirrored property of text. More... | |
bool | IsTextMirrored () const |
void | SetHorizontalJustify (const EDA_TEXT_HJUSTIFY_T aHorizontalJustify) |
Set the horizontal justify for text drawing. More... | |
EDA_TEXT_HJUSTIFY_T | GetHorizontalJustify () const |
Return current text horizontal justification setting. More... | |
void | SetVerticalJustify (const EDA_TEXT_VJUSTIFY_T aVerticalJustify) |
Set the vertical justify for text drawing. More... | |
EDA_TEXT_VJUSTIFY_T | GetVerticalJustify () const |
Returns current text vertical justification setting. More... | |
virtual void | ComputeWorldScreenMatrix () |
Compute the world <-> screen transformation matrix. More... | |
const MATRIX3x3D & | GetWorldScreenMatrix () const |
Get the world <-> screen transformation matrix. More... | |
const MATRIX3x3D & | GetScreenWorldMatrix () const |
Get the screen <-> world transformation matrix. More... | |
void | SetWorldScreenMatrix (const MATRIX3x3D &aMatrix) |
Set the world <-> screen transformation matrix. More... | |
BOX2D | GetVisibleWorldExtents () const |
void | SetWorldUnitLength (double aWorldUnitLength) |
Set the unit length. More... | |
void | SetScreenSize (const VECTOR2I &aSize) |
void | SetScreenDPI (double aScreenDPI) |
Set the dots per inch of the screen. More... | |
void | SetLookAtPoint (const VECTOR2D &aPoint) |
Set the Point in world space to look at. More... | |
const VECTOR2D & | GetLookAtPoint () const |
Get the look at point. More... | |
void | SetZoomFactor (double aZoomFactor) |
Set the zoom factor of the scene. More... | |
double | GetZoomFactor () const |
Get the zoom factor. More... | |
void | SetRotation (double aRotation) |
Set the rotation angle. More... | |
double | GetRotation () const |
Get the rotation angle. More... | |
void | SetDepthRange (const VECTOR2D &aDepthRange) |
Set the range of the layer depth. More... | |
double | GetMinDepth () const |
Return the minimum depth in the currently used range (the top). More... | |
double | GetMaxDepth () const |
Return the maximum depth in the currently used range (the bottom). More... | |
double | GetWorldScale () const |
Get the world scale. More... | |
void | SetFlip (bool xAxis, bool yAxis) |
Sets flipping of the screen. More... | |
bool | IsFlippedX () const |
Return true if flip flag for the X axis is set. More... | |
bool | IsFlippedY () const |
Return true if flip flag for the Y axis is set. More... | |
virtual void | SetTarget (RENDER_TARGET aTarget) |
Set the target for rendering. More... | |
virtual RENDER_TARGET | GetTarget () const |
Get the currently used target for rendering. More... | |
virtual void | ClearTarget (RENDER_TARGET aTarget) |
Clear the target for rendering. More... | |
virtual bool | HasTarget (RENDER_TARGET aTarget) |
Return true if the target exists. More... | |
virtual void | StartDiffLayer () |
Begins rendering of a differential layer. More... | |
virtual void | EndDiffLayer () |
Ends rendering of a differential layer. More... | |
virtual void | StartNegativesLayer () |
Begins rendering in a new layer that will be copied to the main layer in EndNegativesLayer(). More... | |
virtual void | EndNegativesLayer () |
Ends rendering of a negatives layer and draws it to the main layer. More... | |
void | SetGridVisibility (bool aVisibility) |
Set the visibility setting of the grid. More... | |
bool | GetGridVisibility () const |
bool | GetGridSnapping () const |
void | SetGridOrigin (const VECTOR2D &aGridOrigin) |
Set the origin point for the grid. More... | |
const VECTOR2D & | GetGridOrigin () const |
void | SetGridSize (const VECTOR2D &aGridSize) |
Set the grid size. More... | |
const VECTOR2D & | GetGridSize () const |
Return the grid size. More... | |
void | SetGridColor (const COLOR4D &aGridColor) |
Set the grid color. More... | |
void | SetAxesColor (const COLOR4D &aAxesColor) |
Set the axes color. More... | |
void | SetAxesEnabled (bool aAxesEnabled) |
Enable drawing the axes. More... | |
void | SetCoarseGrid (int aInterval) |
Draw every tick line wider. More... | |
float | GetGridLineWidth () const |
Get the grid line width. More... | |
VECTOR2D | GetGridPoint (const VECTOR2D &aPoint) const |
For a given point it returns the nearest point belonging to the grid in world coordinates. More... | |
VECTOR2D | ToWorld (const VECTOR2D &aPoint) const |
Compute the point position in world coordinates from given screen coordinates. More... | |
VECTOR2D | ToScreen (const VECTOR2D &aPoint) const |
Compute the point position in screen coordinates from given world coordinates. More... | |
virtual bool | SetNativeCursorStyle (KICURSOR aCursor) |
Set the cursor in the native panel. More... | |
void | SetCursorEnabled (bool aCursorEnabled) |
Enable/disable cursor. More... | |
bool | IsCursorEnabled () const |
Return information about cursor visibility. More... | |
void | SetCursorColor (const COLOR4D &aCursorColor) |
Set the cursor color. More... | |
void | AdvanceDepth () |
Change the current depth to deeper, so it is possible to draw objects right beneath other. More... | |
void | PushDepth () |
Store current drawing depth on the depth stack. More... | |
void | PopDepth () |
Restore previously stored drawing depth for the depth stack. More... | |
virtual bool | IsContextLocked () |
Checks the state of the context lock. More... | |
virtual void | LockContext (int aClientCookie) |
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing. More... | |
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. More... | |
typedef std::deque< GROUP_ELEMENT > | GROUP |
A graphic group type definition. More... | |
Protected Member Functions | |
const double | xform (double x) |
const VECTOR2D | xform (double x, double y) |
const VECTOR2D | xform (const VECTOR2D &aP) |
const double | angle_xform (const double aAngle) |
Transform according to the rotation from m_currentWorld2Screen transform matrix. More... | |
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. More... | |
void | resetContext () |
void | drawGridLine (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) |
Draw a grid line (usually a simplified line function). More... | |
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. More... | |
void | blitCursor (wxMemoryDC &clientDC) |
Blit cursor into the current screen. More... | |
void | drawPoly (const std::deque< VECTOR2D > &aPointList) |
Drawing polygons & polylines is the same in Cairo, so here is the common code. More... | |
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. More... | |
void | syncLineWidth (bool aForceWidth=false, double aWidth=0.0) |
void | updateWorldScreenMatrix () |
const VECTOR2D | roundp (const VECTOR2D &v) |
virtual void | beginUpdate () |
Enable item update mode. More... | |
virtual void | endUpdate () |
Disable item update mode. More... | |
void | computeWorldScale () |
Compute the scaling factor for the world->screen matrix. More... | |
double | computeMinGridSpacing () const |
compute minimum grid spacing from the grid settings More... | |
COLOR4D | getCursorColor () const |
Get the actual cursor color to draw. More... | |
void | OnGalDisplayOptionsChanged (const GAL_DISPLAY_OPTIONS &aOptions) override |
Handler for observer settings changes. More... | |
virtual bool | updatedGalDisplayOptions (const GAL_DISPLAY_OPTIONS &aOptions) |
Handle updating display options. More... | |
Protected Attributes | |
bool | m_isGrouping |
Is grouping enabled ? More... | |
bool | m_isElementAdded |
Was an graphic element added ? More... | |
std::map< int, GROUP > | m_groups |
List of graphic groups. More... | |
unsigned int | m_groupCounter |
Counter used for generating group keys. More... | |
GROUP * | m_currentGroup |
Currently used group. More... | |
double | m_lineWidthInPixels |
bool | m_lineWidthIsOdd |
cairo_matrix_t | m_cairoWorldScreenMatrix |
Cairo world to screen transform matrix. More... | |
cairo_matrix_t | m_currentXform |
cairo_matrix_t | m_currentWorld2Screen |
cairo_t * | m_currentContext |
Currently used Cairo context for drawing. More... | |
cairo_t * | m_context |
Cairo image. More... | |
cairo_surface_t * | m_surface |
Cairo surface. More... | |
std::vector< cairo_surface_t * > | m_imageSurfaces |
List of surfaces that were created by painting images, to be cleaned up later. More... | |
std::vector< cairo_matrix_t > | m_xformStack |
GAL_DISPLAY_OPTIONS & | m_options |
UTIL::LINK | m_observerLink |
std::stack< double > | m_depthStack |
Stored depth values. More... | |
VECTOR2I | m_screenSize |
Screen size in screen coordinates. More... | |
double | m_worldUnitLength |
The unit length of the world coordinates [inch]. More... | |
double | m_screenDPI |
The dots per inch of the screen. More... | |
VECTOR2D | m_lookAtPoint |
Point to be looked at in world space. More... | |
double | m_zoomFactor |
The zoom factor. More... | |
double | m_rotation |
Rotation transformation (radians) More... | |
MATRIX3x3D | m_worldScreenMatrix |
World transformation. More... | |
MATRIX3x3D | m_screenWorldMatrix |
Screen transformation. More... | |
double | m_worldScale |
The scale factor world->screen. More... | |
bool | m_globalFlipX |
Flag for X axis flipping. More... | |
bool | m_globalFlipY |
Flag for Y axis flipping. More... | |
float | m_lineWidth |
The line width. More... | |
bool | m_isFillEnabled |
Is filling of graphic objects enabled ? More... | |
bool | m_isStrokeEnabled |
Are the outlines stroked ? More... | |
COLOR4D | m_fillColor |
The fill color. More... | |
COLOR4D | m_strokeColor |
The color of the outlines. More... | |
COLOR4D | m_clearColor |
double | m_layerDepth |
The actual layer depth. More... | |
VECTOR2D | m_depthRange |
Range of the depth. More... | |
bool | m_gridVisibility |
Should the grid be shown. More... | |
GRID_STYLE | m_gridStyle |
Grid display style. More... | |
VECTOR2D | m_gridSize |
The grid size. More... | |
VECTOR2D | m_gridOrigin |
The grid origin. More... | |
VECTOR2D | m_gridOffset |
The grid offset to compensate cursor position. More... | |
COLOR4D | m_gridColor |
Color of the grid. More... | |
COLOR4D | m_axesColor |
Color of the axes. More... | |
bool | m_axesEnabled |
Should the axes be drawn. More... | |
int | m_gridTick |
Every tick line gets the double width. More... | |
float | m_gridLineWidth |
Line width of the grid. More... | |
int | m_gridMinSpacing |
Minimum screen size of the grid (pixels) below which the grid is not drawn. More... | |
bool | m_isCursorEnabled |
Is the cursor enabled? More... | |
bool | m_forceDisplayCursor |
Always show cursor. More... | |
COLOR4D | m_cursorColor |
Cursor color. More... | |
bool | m_fullscreenCursor |
Shape of the cursor (fullscreen or small cross) More... | |
VECTOR2D | m_cursorPosition |
Current cursor position (world coordinates) More... | |
STROKE_FONT | m_strokeFont |
Instance of object that stores information about how to draw texts. More... | |
KICURSOR | m_currentNativeCursor |
Current cursor. More... | |
Static Protected Attributes | |
static const int | MAX_CAIRO_ARGUMENTS = 4 |
Maximum number of arguments for one command. More... | |
static constexpr cairo_format_t | GAL_FORMAT = CAIRO_FORMAT_ARGB32 |
Format used to store pixels. More... | |
static const int | MIN_DEPTH = -1024 |
Possible depth range. More... | |
static const int | MAX_DEPTH = 1023 |
static const int | GRID_DEPTH = MAX_DEPTH - 1 |
Depth level on which the grid is drawn. More... | |
Definition at line 57 of file cairo_gal.h.
|
protected |
A graphic group type definition.
Definition at line 326 of file cairo_gal.h.
|
protected |
Super class definition.
Definition at line 290 of file cairo_gal.h.
|
protected |
Definitions for the command recorder.
Definition at line 296 of file cairo_gal.h.
CAIRO_GAL_BASE::CAIRO_GAL_BASE | ( | GAL_DISPLAY_OPTIONS & | aDisplayOptions | ) |
Definition at line 49 of file cairo_gal.cpp.
References BLUE, 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().
CAIRO_GAL_BASE::~CAIRO_GAL_BASE | ( | ) |
Definition at line 77 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.
Definition at line 1056 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_layerDepth.
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 127 of file cairo_gal.cpp.
References KIGFX::GAL::IsFlippedX(), and m_currentWorld2Screen.
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 141 of file cairo_gal.cpp.
References angle_xform(), KIGFX::GAL::IsFlippedX(), and SWAP.
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.
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 92 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.
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 769 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 1111 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL_UPDATE_CONTEXT::GAL_UPDATE_CONTEXT().
|
inlinevirtualinherited |
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. |
aRotationAngle | is the text rotation angle. |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 361 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_globalFlipX, KIGFX::GAL::TEXT_PROPERTIES::m_glyphSize, KIGFX::GAL::m_lineWidth, KIGFX::GAL::TEXT_PROPERTIES::m_mirrored, KIGFX::GAL::StrokeText(), and KIGFX::GAL::textProperties.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), and KIGFX::VIEW_OVERLAY::COMMAND_BITMAP_TEXT::Execute().
|
protected |
Blit cursor into the current screen.
Definition at line 1155 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, color, KIGFX::COLOR4D::g, KIGFX::GAL::getCursorColor(), KIGFX::GAL::IsCursorEnabled(), KIGFX::GAL::m_cursorPosition, KIGFX::GAL::m_fullscreenCursor, 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 885 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 902 of file cairo_gal.cpp.
|
overridevirtual |
Delete all data created during caching of graphic items.
Reimplemented from KIGFX::GAL.
Definition at line 927 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 555 of file cairo_gal.cpp.
References KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, KIGFX::GAL::m_clearColor, m_currentContext, KIGFX::GAL::m_screenSize, KIGFX::COLOR4D::r, VECTOR2< T >::x, and VECTOR2< T >::y.
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 798 of file graphics_abstraction_layer.h.
Referenced by KIGFX::VIEW::ClearTargets().
|
protectedinherited |
compute minimum grid spacing from the grid settings
Definition at line 237 of file graphics_abstraction_layer.cpp.
References KIGFX::GAL::m_gridMinSpacing.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), and DrawGrid().
|
inlineprotectedinherited |
Compute the scaling factor for the world->screen matrix.
Definition at line 1119 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_screenDPI, KIGFX::GAL::m_worldScale, KIGFX::GAL::m_worldUnitLength, and KIGFX::GAL::m_zoomFactor.
Referenced by KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), KIGFX::GAL::ComputeWorldScreenMatrix(), and KIGFX::GAL::GAL().
|
virtualinherited |
Compute the world <-> screen transformation matrix.
Reimplemented in KIGFX::OPENGL_GAL, and KIGFX::CAIRO_PRINT_GAL.
Definition at line 192 of file graphics_abstraction_layer.cpp.
References KIGFX::GAL::computeWorldScale(), MATRIX3x3< T >::Inverse(), KIGFX::GAL::m_globalFlipX, KIGFX::GAL::m_globalFlipY, KIGFX::GAL::m_lookAtPoint, KIGFX::GAL::m_rotation, KIGFX::GAL::m_screenSize, KIGFX::GAL::m_screenWorldMatrix, KIGFX::GAL::m_worldScale, KIGFX::GAL::m_worldScreenMatrix, scale, MATRIX3x3< T >::SetIdentity(), MATRIX3x3< T >::SetRotation(), MATRIX3x3< T >::SetScale(), MATRIX3x3< T >::SetTranslation(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), resetContext(), KIGFX::VIEW::SetCenter(), and KIGFX::VIEW::SetScale().
|
overridevirtual |
Delete the group from the memory.
aGroupNumber | is the group number. |
Reimplemented from KIGFX::GAL.
Definition at line 909 of file cairo_gal.cpp.
References CMD_FILL_PATH, CMD_STROKE_PATH, 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. |
aEndAngle | is the end angle of the arc. |
Reimplemented from KIGFX::GAL.
Definition at line 318 of file cairo_gal.cpp.
References arc_angles_xform_and_normalize(), flushPath(), m_currentContext, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, m_lineWidthInPixels, m_lineWidthIsOdd, r, roundp(), syncLineWidth(), and xform().
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.
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. |
aEndAngle | is the end 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. It has meaning only for back ends that can't draw a true arc, and use segments to approximate. Note: aMaxError is not used in Cairo, because Cairo can draw true arcs |
Reimplemented from KIGFX::GAL.
Definition at line 354 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, arc_angles_xform_and_normalize(), KIGFX::COLOR4D::b, DrawArc(), flushPath(), KIGFX::COLOR4D::g, m_currentContext, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_lineWidth, m_lineWidthIsOdd, KIGFX::GAL::m_strokeColor, r, KIGFX::COLOR4D::r, VECTOR2< T >::Rotate(), roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
protected |
Definition at line 1009 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, KIGFX::GAL::m_axesColor, m_currentContext, KIGFX::COLOR4D::r, 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 475 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, and scale.
|
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 302 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, m_lineWidthInPixels, r, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
overridevirtual |
Draw the cursor.
aCursorPosition | is the cursor position in screen coordinates. |
Reimplemented from KIGFX::GAL.
Definition at line 966 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 453 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1613 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, SetLayerDepth(), SetLineWidth(), KIGFX::GAL::SetTarget(), KIGFX::SMALL_CROSS, SWAP, KIGFX::TARGET_NONCACHED, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protected |
Definition at line 1041 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, m_currentContext, KIGFX::GAL::m_gridColor, m_lineWidthInPixels, KIGFX::COLOR4D::r, 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 1027 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, m_currentContext, KIGFX::GAL::m_gridColor, KIGFX::COLOR4D::r, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawGrid().
|
protected |
Definition at line 1062 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, m_currentContext, KIGFX::GAL::m_gridColor, KIGFX::COLOR4D::r, 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 792 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, 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, KIGFX::COLOR4D::g, m_currentContext, KIGFX::GAL::m_fillColor, m_groups, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, and storePath().
|
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 198 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, 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 1172 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
Referenced by DrawPolygon(), and DrawPolyline().
|
protected |
Definition at line 1197 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 1221 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.
|
inlineoverridevirtual |
Draw a polygon.
aPointList | is the list of the polygon points. |
Reimplemented from KIGFX::GAL.
Definition at line 103 of file cairo_gal.h.
References drawPoly().
|
inlineoverridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 104 of file cairo_gal.h.
References drawPoly().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 440 of file cairo_gal.cpp.
References SHAPE_POLY_SET::COutline(), drawPoly(), and SHAPE_POLY_SET::OutlineCount().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 447 of file cairo_gal.cpp.
References drawPoly().
|
inlineoverridevirtual |
Draw a polyline.
aPointList | is a list of 2D-Vectors containing the polyline points. |
Reimplemented from KIGFX::GAL.
Definition at line 94 of file cairo_gal.h.
References drawPoly().
|
inlineoverridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 95 of file cairo_gal.h.
References drawPoly().
|
inlineoverridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 100 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 418 of file cairo_gal.cpp.
References flushPath(), m_currentContext, m_isElementAdded, roundp(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
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 236 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, EuclideanNorm(), flushPath(), KIGFX::COLOR4D::g, m_currentContext, KIGFX::GAL::m_fillColor, m_isElementAdded, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, roundp(), SetLineWidth(), syncLineWidth(), VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
overridevirtual |
|
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 837 of file graphics_abstraction_layer.h.
Referenced by KIGFX::VIEW::redrawRect().
|
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.
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 98 of file cairo_gal.cpp.
References Flush().
Referenced by KIGFX::CAIRO_GAL::EndDrawing().
|
overridevirtual |
End the group.
Reimplemented from KIGFX::GAL.
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 785 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 853 of file graphics_abstraction_layer.h.
Referenced by KIGFX::VIEW::redrawRect().
|
inlineprotectedvirtualinherited |
Disable item update mode.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1114 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL_UPDATE_CONTEXT::~GAL_UPDATE_CONTEXT().
|
overridevirtual |
Force all remaining objects to be drawn.
Reimplemented from KIGFX::GAL.
Definition at line 549 of file cairo_gal.cpp.
References storePath().
Referenced by EndDrawing().
|
protected |
Definition at line 1078 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, m_currentContext, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, m_lineWidthInPixels, KIGFX::GAL::m_strokeColor, and KIGFX::COLOR4D::r.
Referenced by DrawArc(), DrawArcSegment(), DrawCircle(), DrawCurve(), DrawLine(), drawPoly(), DrawRectangle(), and DrawSegment().
|
inlineinherited |
Definition at line 222 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_clearColor.
Referenced by EDIT_POINTS::ViewDraw().
|
protectedinherited |
Get the actual cursor color to draw.
Definition at line 267 of file graphics_abstraction_layer.cpp.
References color, KIGFX::GAL::m_cursorColor, and KIGFX::GAL::m_isCursorEnabled.
Referenced by blitCursor(), and KIGFX::OPENGL_GAL::blitCursor().
|
inlineinherited |
Get the fill color.
Definition at line 273 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_fillColor.
|
inlineinherited |
Definition at line 416 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_glyphSize, and KIGFX::GAL::textProperties.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::SCH_PAINTER::boxText(), KIGFX::STROKE_FONT::computeOverbarVerticalPosition(), KIGFX::STROKE_FONT::computeTextLineSize(), KIGFX::STROKE_FONT::computeUnderlineVerticalPosition(), KIGFX::STROKE_FONT::Draw(), KIGFX::STROKE_FONT::drawSingleLineText(), and KIGFX::PREVIEW::SetConstantGlyphHeight().
|
inlineinherited |
Get the grid line width.
Definition at line 969 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridLineWidth.
|
inlineinherited |
Definition at line 894 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridOrigin.
Referenced by GRID_HELPER::GetOrigin().
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 245 of file graphics_abstraction_layer.cpp.
References KiROUND(), KIGFX::GAL::m_gridOffset, KIGFX::GAL::m_gridSize, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by KIGFX::WX_VIEW_CONTROLS::GetRawCursorPosition().
|
inlineinherited |
Return the grid size.
Definition at line 921 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridSize.
Referenced by COMMON_TOOLS::CursorControl(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), GERBVIEW_FRAME::DisplayGridMsg(), PCB_BASE_FRAME::DisplayGridMsg(), GRID_HELPER::GetGrid(), EDA_DRAW_FRAME::GetNearestGridPosition(), EDA_DRAW_FRAME::GetNearestHalfGridPosition(), COMMON_TOOLS::PanControl(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
|
inlineinherited |
Definition at line 868 of file graphics_abstraction_layer.h.
References KIGFX::ALWAYS, KIGFX::GAL_DISPLAY_OPTIONS::m_gridSnapping, KIGFX::GAL::m_gridVisibility, KIGFX::GAL::m_options, and KIGFX::WITH_GRID.
Referenced by GRID_HELPER::canUseGrid(), KIGFX::WX_VIEW_CONTROLS::GetRawCursorPosition(), ROUTER_TOOL::InlineBreakTrack(), ROUTER_TOOL::InlineDrag(), PCB_VIEWER_TOOLS::MeasureTool(), PNS::TOOL_BASE::updateEndItem(), and PNS::TOOL_BASE::updateStartItem().
|
inlineinherited |
Definition at line 866 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridVisibility.
Referenced by EDA_DRAW_PANEL_GAL::SwitchBackend().
|
inlineinherited |
Return current text horizontal justification setting.
Definition at line 458 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_horizontalJustify, and KIGFX::GAL::textProperties.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::SCH_PAINTER::boxText(), and KIGFX::STROKE_FONT::drawSingleLineText().
|
inlineinherited |
Get the line width.
Definition at line 313 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_lineWidth.
Referenced by KIGFX::SCH_PAINTER::boxText(), KIGFX::STROKE_FONT::computeTextLineSize(), KIGFX::STROKE_FONT::Draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::STROKE_FONT::drawSingleLineText(), and KIGFX::PREVIEW::DrawTextNextToCursor().
|
inlineinherited |
Get the look at point.
Definition at line 663 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_lookAtPoint.
Referenced by KIGFX::GAL::GetVisibleWorldExtents().
|
inlineinherited |
Return the maximum depth in the currently used range (the bottom).
Definition at line 732 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_depthRange, and VECTOR2< T >::y.
|
inlineinherited |
Return the minimum depth in the currently used range (the top).
Definition at line 724 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_depthRange, and VECTOR2< T >::x.
Referenced by KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), and EDIT_POINTS::ViewDraw().
|
protected |
Return a valid key that can be used as a new group number.
Definition at line 1248 of file cairo_gal.cpp.
References m_groupCounter, and m_groups.
Referenced by BeginGroup().
|
inlineinherited |
Get the rotation angle.
Definition at line 703 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_rotation.
|
inlineinherited |
Return GAL canvas size in pixels.
Definition at line 209 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_screenSize.
Referenced by KIGFX::WX_VIEW_CONTROLS::CenterOnCursor(), KIGFX::VIEW::GetScreenPixelSize(), KIGFX::VIEW::GetViewport(), EDA_DRAW_PANEL_GAL::onSize(), KIGFX::VIEW::Redraw(), KIGFX::VIEW::SetCenter(), KIGFX::WX_VIEW_CONTROLS::SetCrossHairCursorPosition(), KIGFX::VIEW::SetViewport(), and KIGFX::WX_VIEW_CONTROLS::WarpCursor().
|
inlineinherited |
Get the screen <-> world transformation matrix.
Definition at line 594 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_screenWorldMatrix.
Referenced by KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::getShadowWidth(), KIGFX::GAL::GetVisibleWorldExtents(), KIGFX::OPENGL_GAL::getWorldPixelSize(), screenSpaceCircle(), screenSpaceLine(), and KIGFX::VIEW::ToWorld().
|
inlineinherited |
Get the stroke color.
Definition at line 293 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_strokeColor.
Referenced by KIGFX::PREVIEW::DrawTextNextToCursor(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
|
inlineinherited |
Definition at line 335 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_strokeFont.
Referenced by KIGFX::SCH_PAINTER::boxText(), and EDA_TEXT::GetTextBox().
|
inlinevirtualinherited |
Get the currently used target for rendering.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 791 of file graphics_abstraction_layer.h.
References KIGFX::TARGET_CACHED.
Compute the X and Y size of a given text.
The text is expected to be a only one line text.
aText | is the text string (one line). |
Definition at line 183 of file graphics_abstraction_layer.cpp.
References KIGFX::STROKE_FONT::computeTextLineSize(), and KIGFX::GAL::m_strokeFont.
Referenced by LABEL_MANAGER::Add(), GraphicTextWidth(), and EDA_TEXT::LenSize().
|
inlineinherited |
Returns current text vertical justification setting.
Definition at line 476 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_verticalJustify, and KIGFX::GAL::textProperties.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::SCH_PAINTER::boxText(), and KIGFX::STROKE_FONT::Draw().
|
inherited |
Definition at line 222 of file graphics_abstraction_layer.cpp.
References KIGFX::GAL::GetLookAtPoint(), MATRIX3x3< T >::GetScale(), KIGFX::GAL::GetScreenWorldMatrix(), KIGFX::GAL::m_screenSize, BOX2< Vec >::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ROUTER_TOOL::handleCommonEvents(), and ROUTER_TOOL::InlineDrag().
|
inlineinherited |
Get the world scale.
Definition at line 742 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_worldScale.
Referenced by PCB_GRID_HELPER::BestDragOrigin(), EE_GRID_HELPER::BestDragOrigin(), PCB_GRID_HELPER::BestSnapAnchor(), KIGFX::PCB_PAINTER::draw(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), KIGFX::PREVIEW::SetConstantGlyphHeight(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
|
inlineinherited |
Get the world <-> screen transformation matrix.
Definition at line 584 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_worldScreenMatrix.
Referenced by KIGFX::VIEW::ToScreen().
|
inlineinherited |
Get the zoom factor.
Definition at line 683 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_zoomFactor.
Referenced by COMMON_TOOLS::doZoomInOut(), KIGFX::PCB_PAINTER::draw(), EDA_DRAW_FRAME::GetZoomLevelIndicator(), ZOOM_MENU::update(), and EDA_DRAW_FRAME::UpdateZoomSelectBox().
|
inlinevirtualinherited |
Return true if the target exists.
aTarget | is the target to be checked. |
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 805 of file graphics_abstraction_layer.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint().
|
inlineoverridevirtual |
Return true if the GAL engine is a Cairo based type.
Reimplemented from KIGFX::GAL.
Definition at line 64 of file cairo_gal.h.
|
inlinevirtualinherited |
Checks the state of the context lock.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1084 of file graphics_abstraction_layer.h.
Referenced by EDA_DRAW_PANEL_GAL::onSize().
|
inlineinherited |
Return information about cursor visibility.
Definition at line 1030 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_forceDisplayCursor, and KIGFX::GAL::m_isCursorEnabled.
Referenced by blitCursor(), and KIGFX::OPENGL_GAL::blitCursor().
|
inlineinherited |
Return true if flip flag for the X axis is set.
Definition at line 762 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_globalFlipX.
Referenced by angle_xform(), arc_angles_xform_and_normalize(), KIGFX::PCB_PAINTER::draw(), KIGFX::PREVIEW::DrawTextNextToCursor(), and DS_PROXY_VIEW_ITEM::ViewDraw().
|
inlineinherited |
Return true if flip flag for the Y axis is set.
Definition at line 770 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_globalFlipY.
|
inlineinherited |
Definition at line 424 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_bold, and KIGFX::GAL::textProperties.
Referenced by KIGFX::STROKE_FONT::Draw().
|
inlineinherited |
Definition at line 432 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_italic, and KIGFX::GAL::textProperties.
Referenced by KIGFX::STROKE_FONT::ComputeStringBoundaryLimits(), and KIGFX::STROKE_FONT::drawSingleLineText().
|
inlineinherited |
Definition at line 435 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_underlined, and KIGFX::GAL::textProperties.
Referenced by KIGFX::STROKE_FONT::drawSingleLineText().
|
inlinevirtualinherited |
Return the initialization status for the canvas.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 74 of file graphics_abstraction_layer.h.
Referenced by SCH_DRAW_PANEL::onPaint(), and EDA_DRAW_PANEL_GAL::onRefreshTimer().
|
inlinevirtualinherited |
Return true if the GAL engine is a OpenGL based type.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 83 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GERBVIEW_PAINTER::draw(), and KIGFX::PCB_PAINTER::draw().
|
inlineinherited |
Definition at line 443 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_mirrored, and KIGFX::GAL::textProperties.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), and KIGFX::STROKE_FONT::drawSingleLineText().
|
inlinevirtualinherited |
Return true if the GAL canvas is visible on the screen.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 77 of file graphics_abstraction_layer.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), SCH_DRAW_PANEL::onPaint(), EDA_DRAW_PANEL_GAL::onShowTimer(), KIGFX::VIEW::UpdateAllLayersColor(), KIGFX::VIEW::UpdateAllLayersOrder(), KIGFX::VIEW::UpdateItems(), and KIGFX::VIEW::UpdateLayerColor().
|
inlinevirtualinherited |
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing.
Reimplemented in KIGFX::OPENGL_GAL.
Definition at line 1091 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL_CONTEXT_LOCKER::GAL_CONTEXT_LOCKER().
|
overrideprotectedvirtualinherited |
Handler for observer settings changes.
Implements KIGFX::GAL_DISPLAY_OPTIONS_OBSERVER.
Definition at line 101 of file graphics_abstraction_layer.cpp.
References KIGFX::GAL::updatedGalDisplayOptions().
|
inlineinherited |
Restore previously stored drawing depth for the depth stack.
Definition at line 1072 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_depthStack, and KIGFX::GAL::m_layerDepth.
Referenced by KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), KIGFX::VIEW_GROUP::ViewDraw(), and EDIT_POINTS::ViewDraw().
|
inlineinherited |
Store current drawing depth on the depth stack.
Definition at line 1064 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_depthStack, and KIGFX::GAL::m_layerDepth.
Referenced by KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), KIGFX::VIEW_GROUP::ViewDraw(), and EDIT_POINTS::ViewDraw().
|
protected |
Definition at line 977 of file cairo_gal.cpp.
References ClearScreen(), KIGFX::GAL::ComputeWorldScreenMatrix(), m_cairoWorldScreenMatrix, m_context, m_currentXform, MATRIX3x3< T >::m_data, 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.
Normally, custom attributes will be set individually after this, otherwise you can use SetTextAttributes()
Definition at line 167 of file graphics_abstraction_layer.cpp.
References GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER, KIGFX::GAL::SetFontBold(), KIGFX::GAL::SetFontItalic(), KIGFX::GAL::SetFontUnderlined(), KIGFX::GAL::SetGlyphSize(), KIGFX::GAL::SetHorizontalJustify(), KIGFX::GAL::SetTextMirrored(), and KIGFX::GAL::SetVerticalJustify().
Referenced by KIGFX::PCB_PAINTER::draw(), KIGFX::GAL::GAL(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), KIGFX::PREVIEW::ARC_ASSISTANT::ViewDraw(), and KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw().
|
overridevirtual |
Resizes the canvas.
Reimplemented from KIGFX::GAL.
Reimplemented in KIGFX::CAIRO_GAL.
Definition at line 543 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 747 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 670 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 189 of file cairo_gal.cpp.
References KIGFX::GAL::m_isStrokeEnabled, m_lineWidthIsOdd, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawArc(), DrawArcSegment(), drawAxes(), DrawCircle(), DrawCurve(), drawGridCross(), drawGridLine(), drawGridPoint(), DrawLine(), drawPoly(), DrawRectangle(), and DrawSegment().
|
overridevirtual |
Save the context.
Reimplemented from KIGFX::GAL.
Definition at line 729 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 709 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 941 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_axesColor.
Referenced by CAIRO_GAL_BASE(), SYMBOL_VIEWER_FRAME::CommonSettingsChanged(), SYMBOL_EDIT_FRAME::CommonSettingsChanged(), KIGFX::OPENGL_GAL::OPENGL_GAL(), SYMBOL_EDIT_FRAME::SwitchCanvas(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), and PCB_DRAW_PANEL_GAL::UpdateColors().
|
inlineinherited |
Enable drawing the axes.
Definition at line 949 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_axesEnabled.
Referenced by FOOTPRINT_EDIT_FRAME::ActivateGalCanvas(), FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME(), KIGFX::GAL::GAL(), PANEL_EESCHEMA_COLOR_SETTINGS::PANEL_EESCHEMA_COLOR_SETTINGS(), PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS(), SYMBOL_EDIT_FRAME::SwitchCanvas(), FOOTPRINT_EDIT_FRAME::SwitchCanvas(), and SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET().
|
inlineinherited |
Definition at line 217 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_clearColor.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), BOARD_PRINTOUT::DrawPage(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET(), PANEL_PCBNEW_COLOR_SETTINGS::updatePreview(), and PANEL_EESCHEMA_COLOR_SETTINGS::updatePreview().
|
inlineinherited |
Draw every tick line wider.
aInterval | increase the width of every aInterval line, if 0 do not use this feature. |
Definition at line 959 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridTick.
Referenced by KIGFX::GAL::GAL().
|
inlineinherited |
Set the cursor color.
aCursorColor | is the color of the cursor. |
Definition at line 1040 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_cursorColor.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), KIGFX::GAL::GAL(), and PCB_DRAW_PANEL_GAL::UpdateColors().
|
inlineinherited |
Enable/disable cursor.
aCursorEnabled | is true if the cursor should be drawn, else false. |
Definition at line 1020 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_isCursorEnabled.
Referenced by KIGFX::GAL::GAL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), and KIGFX::VIEW_CONTROLS::ShowCursor().
|
inlineinherited |
Set the range of the layer depth.
Usually required for the OpenGL implementation, any object outside this range is not drawn.
aDepthRange | is the depth range where component x is the near clipping plane and y is the far clipping plane. |
Definition at line 716 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_depthRange.
Referenced by KIGFX::GAL::GAL().
|
overridevirtual |
Set the fill color.
aColor | is the color for filling. |
Reimplemented from KIGFX::GAL.
Definition at line 611 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, CMD_SET_FILLCOLOR, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::COLOR4D::g, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, KIGFX::GAL::m_fillColor, m_isGrouping, KIGFX::COLOR4D::r, 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 753 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_globalFlipX, and KIGFX::GAL::m_globalFlipY.
Referenced by KIGFX::GAL::GAL(), KIGFX::VIEW::SetMirror(), and BOARD_PRINTOUT::setupGal().
|
inlineinherited |
Set bold property of current font.
aBold | tells if the font should be bold or not. |
Definition at line 423 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_bold, and KIGFX::GAL::textProperties.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), GraphicTextWidth(), EDA_TEXT::LenSize(), KIGFX::GAL::ResetTextAttributes(), and KIGFX::GAL::SetTextAttributes().
|
inlineinherited |
Set italic property of current font.
aItalic | tells if the font should be italic or not. |
Definition at line 431 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_italic, and KIGFX::GAL::textProperties.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), GraphicTextWidth(), EDA_TEXT::LenSize(), KIGFX::GAL::ResetTextAttributes(), and KIGFX::GAL::SetTextAttributes().
|
inlineinherited |
Definition at line 434 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_underlined, and KIGFX::GAL::textProperties.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), EDA_TEXT::LenSize(), KIGFX::GAL::ResetTextAttributes(), and KIGFX::GAL::SetTextAttributes().
|
inlineinherited |
Set the font glyph size.
aGlyphSize | is the new font glyph size. |
Definition at line 415 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_glyphSize, and KIGFX::GAL::textProperties.
Referenced by LABEL_MANAGER::Add(), KIGFX::SCH_PAINTER::Draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::VIEW_OVERLAY::COMMAND_GLYPH_SIZE::Execute(), GraphicTextWidth(), EDA_TEXT::LenSize(), KIGFX::GAL::ResetTextAttributes(), KIGFX::PREVIEW::SetConstantGlyphHeight(), and KIGFX::GAL::SetTextAttributes().
|
inlineinherited |
Set the grid color.
aGridColor | is the grid color, it should have a low alpha value for the best effect. |
Definition at line 931 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridColor.
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), CAIRO_GAL_BASE(), EDA_DRAW_PANEL_GAL::DoRePaint(), KIGFX::OPENGL_GAL::OPENGL_GAL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), GERBVIEW_FRAME::SetGridColor(), and PCB_DRAW_PANEL_GAL::UpdateColors().
|
inlineinherited |
Set the origin point for the grid.
aGridOrigin | is a vector containing the grid origin point, in world coordinates. |
Definition at line 879 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridOffset, KIGFX::GAL::m_gridOrigin, KIGFX::GAL::m_gridSize, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PCB_CONTROL::DoSetGridOrigin(), Refresh(), 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 904 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridOffset, KIGFX::GAL::m_gridOrigin, KIGFX::GAL::m_gridSize, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by COMMON_TOOLS::OnGridChanged(), DIALOG_PAD_PROPERTIES::prepareCanvas(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
|
inlineinherited |
Set the visibility setting of the grid.
aVisibility | is the new visibility setting of the grid. |
Definition at line 864 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_gridVisibility.
Referenced by KIGFX::GAL::GAL(), COMMON_TOOLS::OnGridChanged(), GERBER_LAYER_WIDGET::OnRenderEnable(), DIALOG_PAD_PROPERTIES::prepareCanvas(), EDA_DRAW_FRAME::SetGridVisibility(), EDA_DRAW_PANEL_GAL::SwitchBackend(), and SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET().
|
inlineinherited |
Set the horizontal justify for text drawing.
aHorizontalJustify | is the horizontal justify value. |
Definition at line 450 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_horizontalJustify, and KIGFX::GAL::textProperties.
Referenced by KIGFX::SCH_PAINTER::Draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), KIGFX::GAL::ResetTextAttributes(), and KIGFX::GAL::SetTextAttributes().
|
overridevirtual |
Enable/disable fill.
aIsFillEnabled | is true, when the graphics objects should be filled, else false. |
Reimplemented from KIGFX::GAL.
Definition at line 563 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().
|
overridevirtual |
Enable/disable stroked outlines.
aIsStrokeEnabled | is true, if the outline of an object should be stroked. |
Reimplemented from KIGFX::GAL.
Definition at line 578 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().
|
overridevirtual |
Set the depth of the layer (position on the z-axis)
aLayerDepth | the layer depth for the objects. |
Reimplemented from KIGFX::GAL.
Definition at line 648 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 629 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 |
Set the Point in world space to look at.
This point corresponds with the center of the actual drawing area.
aPoint | is the look at point (center of the actual drawing area). |
Definition at line 653 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_lookAtPoint.
Referenced by BOARD_PRINTOUT::DrawPage(), KIGFX::GAL::GAL(), and KIGFX::VIEW::SetCenter().
|
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 280 of file graphics_abstraction_layer.cpp.
References KIGFX::GAL::m_currentNativeCursor.
Referenced by KIGFX::GAL::GAL(), EDA_DRAW_PANEL_GAL::SetCurrentCursor(), KIGFX::OPENGL_GAL::SetNativeCursorStyle(), and KIGFX::CAIRO_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 934 of file cairo_gal.cpp.
References m_currentContext.
|
inlineinherited |
Set the rotation angle.
aRotation | is the new rotation angle (radians). |
Definition at line 693 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_rotation.
Referenced by KIGFX::GAL::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.
aScreenDPI | are the screen DPI. |
Definition at line 641 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_screenDPI.
Referenced by KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), and KIGFX::GAL::GAL().
|
inlineinherited |
Definition at line 628 of file graphics_abstraction_layer.h.
References KIGFX::GAL::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 593 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, CMD_SET_STROKECOLOR, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::DblArg, KIGFX::COLOR4D::g, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Argument, KIGFX::CAIRO_GAL_BASE::GROUP_ELEMENT::m_Command, m_currentGroup, m_isGrouping, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, 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 784 of file graphics_abstraction_layer.h.
Referenced by DrawGrid(), KIGFX::VIEW::redrawRect(), KIGFX::VIEW::updateItemGeometry(), and MY_DRAWING::ViewDraw().
|
virtualinherited |
Loads attributes of the given text (bold/italic/underline/mirrored and so on).
aText | is the text item. |
Definition at line 155 of file graphics_abstraction_layer.cpp.
References EDA_TEXT::GetHorizJustify(), EDA_TEXT::GetTextSize(), EDA_TEXT::GetVertJustify(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), KIGFX::GAL::SetFontBold(), KIGFX::GAL::SetFontItalic(), KIGFX::GAL::SetFontUnderlined(), KIGFX::GAL::SetGlyphSize(), KIGFX::GAL::SetHorizontalJustify(), KIGFX::GAL::SetTextMirrored(), and KIGFX::GAL::SetVerticalJustify().
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), and GRText().
|
inlineinherited |
Set a mirrored property of text.
aMirrored | tells if the text should be mirrored or not. |
Definition at line 442 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_mirrored, and KIGFX::GAL::textProperties.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PREVIEW::DrawTextNextToCursor(), KIGFX::GAL::ResetTextAttributes(), KIGFX::GAL::SetTextAttributes(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
|
inlineinherited |
Set the vertical justify for text drawing.
aVerticalJustify | is the vertical justify value. |
Definition at line 468 of file graphics_abstraction_layer.h.
References KIGFX::GAL::TEXT_PROPERTIES::m_verticalJustify, and KIGFX::GAL::textProperties.
Referenced by KIGFX::SCH_PAINTER::Draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::GAL::ResetTextAttributes(), and KIGFX::GAL::SetTextAttributes().
|
inlineinherited |
Set the world <-> screen transformation matrix.
aMatrix | is the 3x3 world <-> screen transformation matrix. |
Definition at line 604 of file graphics_abstraction_layer.h.
References KIGFX::GAL::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.
aWorldUnitLength | is the world Unit length. |
Definition at line 623 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_worldUnitLength.
Referenced by KIGFX::GAL::GAL(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), GERBVIEW_PRINTOUT::setupGal(), PCBNEW_PRINTOUT::setupGal(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), PL_DRAW_PANEL_GAL::SwitchBackend(), SCH_DRAW_PANEL::SwitchBackend(), and PCB_DRAW_PANEL_GAL::SwitchBackend().
|
inlineinherited |
Set the zoom factor of the scene.
aZoomFactor | is the zoom factor. |
Definition at line 673 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_zoomFactor.
Referenced by BOARD_PRINTOUT::DrawPage(), KIGFX::GAL::GAL(), and KIGFX::VIEW::SetScale().
|
inlinevirtualinherited |
Show/hide the GAL canvas.
Reimplemented in KIGFX::CAIRO_GAL, and KIGFX::OPENGL_GAL.
Definition at line 206 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 830 of file graphics_abstraction_layer.h.
Referenced by KIGFX::VIEW::redrawRect().
|
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 847 of file graphics_abstraction_layer.h.
Referenced by KIGFX::VIEW::redrawRect().
|
protected |
Store the actual path.
Definition at line 1106 of file cairo_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, CMD_FILL_PATH, CMD_STROKE_PATH, KIGFX::COLOR4D::g, 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, KIGFX::GAL::m_strokeColor, and KIGFX::COLOR4D::r.
Referenced by BeginGroup(), ChangeGroupColor(), DeleteGroup(), DrawGroup(), EndGroup(), Flush(), Restore(), Rotate(), Save(), Scale(), SetFillColor(), SetIsFill(), SetIsStroke(), SetLayerDepth(), SetLineWidth(), SetStrokeColor(), KIGFX::CAIRO_GAL::SetTarget(), and Translate().
|
inlinevirtualinherited |
Draw a vector type text using preloaded Newstroke font.
aText | is the text to be drawn. |
aPosition | is the text position in world coordinates. |
aRotationAngle | is the text rotation angle. |
Definition at line 347 of file graphics_abstraction_layer.h.
References KIGFX::STROKE_FONT::Draw(), and KIGFX::GAL::m_strokeFont.
Referenced by KIGFX::GAL::BitmapText(), KIGFX::SCH_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), GRText(), and KIGFX::SCH_PAINTER::strokeText().
|
protected |
Definition at line 212 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(), drawGridCross(), drawGridLine(), DrawLine(), 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 1002 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_worldScreenMatrix.
Referenced by blitCursor().
Compute the point position in world coordinates from given screen coordinates.
aPoint | the point position in screen coordinates. |
Definition at line 991 of file graphics_abstraction_layer.h.
References KIGFX::GAL::m_screenWorldMatrix.
|
overridevirtual |
Transform the context.
aTransformation | is the transformation matrix. |
Reimplemented from KIGFX::GAL.
Definition at line 655 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 689 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 1093 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL_CONTEXT_LOCKER::~GAL_CONTEXT_LOCKER().
|
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 110 of file graphics_abstraction_layer.cpp.
References KIGFX::GAL_DISPLAY_OPTIONS::m_axesEnabled, KIGFX::GAL::m_axesEnabled, KIGFX::GAL_DISPLAY_OPTIONS::m_forceDisplayCursor, KIGFX::GAL::m_forceDisplayCursor, KIGFX::GAL_DISPLAY_OPTIONS::m_fullscreenCursor, KIGFX::GAL::m_fullscreenCursor, KIGFX::GAL_DISPLAY_OPTIONS::m_gridLineWidth, KIGFX::GAL::m_gridLineWidth, KIGFX::GAL_DISPLAY_OPTIONS::m_gridMinSpacing, KIGFX::GAL::m_gridMinSpacing, KIGFX::GAL_DISPLAY_OPTIONS::m_gridStyle, KIGFX::GAL::m_gridStyle, KIGFX::GAL::m_options, and refresh.
Referenced by KIGFX::GAL::OnGalDisplayOptionsChanged(), KIGFX::OPENGL_GAL::updatedGalDisplayOptions(), and KIGFX::CAIRO_GAL::updatedGalDisplayOptions().
|
protected |
Definition at line 105 of file cairo_gal.cpp.
References m_cairoWorldScreenMatrix, m_currentWorld2Screen, and m_currentXform.
Referenced by resetContext(), Restore(), Rotate(), Save(), Scale(), Transform(), and Translate().
|
protected |
Definition at line 175 of file cairo_gal.cpp.
References m_currentWorld2Screen.
Referenced by DrawArc(), DrawArcSegment(), drawAxes(), DrawCircle(), DrawCurve(), drawGridCross(), drawGridLine(), drawGridPoint(), DrawLine(), drawPoly(), DrawRectangle(), DrawSegment(), syncLineWidth(), and xform().
|
protected |
Definition at line 111 of file cairo_gal.cpp.
References m_currentWorld2Screen, VECTOR2< T >::x, and VECTOR2< T >::y.
Definition at line 121 of file cairo_gal.cpp.
References VECTOR2< T >::x, xform(), and VECTOR2< T >::y.
|
staticprotected |
Format used to store pixels.
Definition at line 350 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 1136 of file graphics_abstraction_layer.h.
|
protectedinherited |
Color of the axes.
Definition at line 1199 of file graphics_abstraction_layer.h.
Referenced by drawAxes(), KIGFX::OPENGL_GAL::DrawGrid(), and KIGFX::GAL::SetAxesColor().
|
protectedinherited |
Should the axes be drawn.
Definition at line 1200 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), DrawGrid(), KIGFX::GAL::SetAxesEnabled(), and KIGFX::GAL::updatedGalDisplayOptions().
|
protected |
Cairo world to screen transform matrix.
Definition at line 338 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), resetContext(), and updateWorldScreenMatrix().
|
protectedinherited |
Definition at line 1187 of file graphics_abstraction_layer.h.
Referenced by KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), ClearScreen(), KIGFX::OPENGL_GAL::ClearTarget(), KIGFX::GAL::GetClearColor(), and KIGFX::GAL::SetClearColor().
|
protected |
Cairo image.
Definition at line 342 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().
|
protected |
Currently used Cairo context for drawing.
Definition at line 341 of file cairo_gal.h.
Referenced by CAIRO_GAL_BASE(), KIGFX::CAIRO_PRINT_GAL::CAIRO_PRINT_GAL(), ClearScreen(), DrawArc(), DrawArcSegment(), drawAxes(), DrawBitmap(), DrawCircle(), DrawCurve(), drawGridCross(), drawGridLine(), drawGridPoint(), DrawGroup(), DrawLine(), drawPoly(), DrawRectangle(), DrawSegment(), flushPath(), KIGFX::CAIRO_GAL::initSurface(), KIGFX::CAIRO_GAL::setCompositor(), SetNegativeDrawMode(), storePath(), and syncLineWidth().
|
protected |
Currently used group.
Definition at line 333 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 1216 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::SetNativeCursorStyle(), KIGFX::CAIRO_GAL::SetNativeCursorStyle(), and KIGFX::GAL::SetNativeCursorStyle().
|
protected |
Definition at line 340 of file cairo_gal.h.
Referenced by angle_xform(), CAIRO_GAL_BASE(), DrawBitmap(), updateWorldScreenMatrix(), and xform().
|
protected |
Definition at line 339 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 1209 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL::getCursorColor(), and KIGFX::GAL::SetCursorColor().
|
protectedinherited |
Current cursor position (world coordinates)
Definition at line 1211 of file graphics_abstraction_layer.h.
Referenced by blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), DrawCursor(), and KIGFX::OPENGL_GAL::DrawCursor().
|
protectedinherited |
Range of the depth.
Definition at line 1190 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing(), DrawGrid(), KIGFX::GAL::GetMaxDepth(), KIGFX::GAL::GetMinDepth(), KIGFX::GAL::SetDepthRange(), and KIGFX::GAL::SetLayerDepth().
|
protectedinherited |
Stored depth values.
Definition at line 1164 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL::PopDepth(), and KIGFX::GAL::PushDepth().
|
protectedinherited |
The fill color.
Definition at line 1185 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BeginDrawing(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawCircle(), DrawGroup(), KIGFX::OPENGL_GAL::drawPolygon(), KIGFX::OPENGL_GAL::DrawRectangle(), DrawSegment(), KIGFX::OPENGL_GAL::DrawSegment(), KIGFX::OPENGL_GAL::drawSemiCircle(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), flushPath(), KIGFX::GAL::GetFillColor(), SetFillColor(), KIGFX::GAL::SetFillColor(), and storePath().
|
protectedinherited |
Always show cursor.
Definition at line 1208 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL::GAL(), KIGFX::GAL::IsCursorEnabled(), and KIGFX::GAL::updatedGalDisplayOptions().
|
protectedinherited |
Shape of the cursor (fullscreen or small cross)
Definition at line 1210 of file graphics_abstraction_layer.h.
Referenced by blitCursor(), KIGFX::OPENGL_GAL::blitCursor(), KIGFX::GAL::GAL(), and KIGFX::GAL::updatedGalDisplayOptions().
|
protectedinherited |
Flag for X axis flipping.
Definition at line 1177 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::GAL::BitmapText(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), KIGFX::GAL::ComputeWorldScreenMatrix(), KIGFX::GAL::IsFlippedX(), and KIGFX::GAL::SetFlip().
|
protectedinherited |
Flag for Y axis flipping.
Definition at line 1178 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::BitmapText(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), KIGFX::GAL::ComputeWorldScreenMatrix(), KIGFX::GAL::IsFlippedY(), and KIGFX::GAL::SetFlip().
|
protectedinherited |
Color of the grid.
Definition at line 1198 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), drawGridCross(), drawGridLine(), drawGridPoint(), and KIGFX::GAL::SetGridColor().
|
protectedinherited |
Line width of the grid.
Definition at line 1202 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), DrawGrid(), KIGFX::GAL::GAL(), KIGFX::GAL::GetGridLineWidth(), and KIGFX::GAL::updatedGalDisplayOptions().
|
protectedinherited |
Minimum screen size of the grid (pixels) below which the grid is not drawn.
Definition at line 1203 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL::computeMinGridSpacing(), KIGFX::GAL::GAL(), and KIGFX::GAL::updatedGalDisplayOptions().
|
protectedinherited |
The grid offset to compensate cursor position.
Definition at line 1197 of file graphics_abstraction_layer.h.
Referenced by KIGFX::GAL::GetGridPoint(), KIGFX::GAL::SetGridOrigin(), and KIGFX::GAL::SetGridSize().
|
protectedinherited |
The grid origin.
Definition at line 1196 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), DrawGrid(), KIGFX::GAL::GetGridOrigin(), KIGFX::GAL::SetGridOrigin(), and KIGFX::GAL::SetGridSize().
|
protectedinherited |
The grid size.
Definition at line 1195 of file graphics_abstraction_layer.h.
Referenced by KIGFX::OPENGL_GAL::DrawGrid(), DrawGrid(), KIGFX::GAL::GetGridPoint(), KIGFX::GAL::GetGridSize(), KIGFX::GAL::SetGridOrigin(), and