![]() |
KiCad PCB EDA Suite
|
OpenGL implementation of the Graphics Abstraction Layer. More...
#include <opengl_gal.h>
Classes | |
struct | TessParams |
Public Member Functions | |
OPENGL_GAL (GAL_DISPLAY_OPTIONS &aDisplayOptions, wxWindow *aParent, wxEvtHandler *aMouseListener=nullptr, wxEvtHandler *aPaintListener=nullptr, const wxString &aName=wxT("GLCanvas")) | |
~OPENGL_GAL () | |
bool | IsOpenGlEngine () override |
Return true if the GAL engine is a OpenGL based type. More... | |
bool | IsInitialized () const override |
Return the initialization status for the canvas. More... | |
bool | IsVisible () const override |
Return true if the GAL canvas is visible on the screen. 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 | BitmapText (const wxString &aText, const VECTOR2D &aPosition, double aRotationAngle) override |
Draw a text using a bitmap font. More... | |
void | DrawGrid () override |
void | ResizeScreen (int aWidth, int aHeight) override |
Resizes the canvas. More... | |
bool | Show (bool aShow) override |
Shows/hides the GAL canvas. More... | |
void | Flush () override |
Force all remaining objects to be drawn. More... | |
void | ClearScreen () override |
Clear the screen. 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 | SetTarget (RENDER_TARGET aTarget) override |
Set the target for rendering. More... | |
RENDER_TARGET | GetTarget () const override |
Get the currently used target for rendering. More... | |
void | ClearTarget (RENDER_TARGET aTarget) override |
Clear the target for rendering. More... | |
virtual bool | HasTarget (RENDER_TARGET aTarget) override |
Return true if the target exists. More... | |
void | SetNegativeDrawMode (bool aSetting) override |
Set negative draw mode in the renderer. More... | |
void | StartDiffLayer () override |
Begins rendering of a differential layer. More... | |
void | EndDiffLayer () override |
Ends rendering of a differential layer. More... | |
void | ComputeWorldScreenMatrix () override |
Compute the world <-> screen transformation matrix. More... | |
bool | SetNativeCursorStyle (KICURSOR aCursor) override |
Set the cursor in the native panel. More... | |
void | DrawCursor (const VECTOR2D &aCursorPosition) override |
Draw the cursor. More... | |
void | PostPaint (wxPaintEvent &aEvent) |
Function PostPaint posts an event to m_paint_listener. More... | |
void | SetMouseListener (wxEvtHandler *aMouseListener) |
void | SetPaintListener (wxEvtHandler *aPaintListener) |
void | EnableDepthTest (bool aEnabled=false) override |
bool | IsContextLocked () override |
Checks the state of the context lock. More... | |
void | LockContext (int aClientCookie) override |
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing. More... | |
void | UnlockContext (int aClientCookie) 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 | IsCairoEngine () |
Return true if the GAL engine is a Cairo based type. More... | |
const VECTOR2I & | GetScreenPixelSize () const |
Return GAL canvas size in pixels. More... | |
void | SetClearColor (const COLOR4D &aColor) |
const COLOR4D & | GetClearColor () const |
virtual void | SetIsFill (bool aIsFillEnabled) |
Enable/disable fill. More... | |
virtual void | SetIsStroke (bool aIsStrokeEnabled) |
Enable/disable stroked outlines. More... | |
virtual void | SetFillColor (const COLOR4D &aColor) |
Set the fill color. More... | |
const COLOR4D & | GetFillColor () const |
Get the fill color. More... | |
virtual void | SetStrokeColor (const COLOR4D &aColor) |
Set the stroke color. More... | |
const COLOR4D & | GetStrokeColor () const |
Get the stroke color. More... | |
virtual void | SetLineWidth (float aLineWidth) |
Set the line width. More... | |
float | GetLineWidth () const |
Get the line width. More... | |
virtual void | SetLayerDepth (double aLayerDepth) |
Set the depth of the layer (position on the z-axis) 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... | |
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... | |
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 | 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... | |
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 wxSize | GetNativePixelSize () const |
wxPoint | GetNativePosition (const wxPoint &aPoint) const |
Convert the given point from client coordinates to native pixel coordinates. More... | |
void | SetScaleFactor (double aFactor) |
Set the canvas scale factor, probably for a hi-DPI display. More... | |
double | GetScaleFactor () const |
Get the current scale factor. More... | |
Static Public Member Functions | |
static wxString | CheckFeatures (GAL_DISPLAY_OPTIONS &aOptions) |
Checks OpenGL features. More... | |
Protected Member Functions | |
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... | |
Protected Attributes | |
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 | 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... | |
Private Types | |
typedef GAL | super |
Super class definition. More... | |
typedef std::unordered_map< unsigned int, std::shared_ptr< VERTEX_ITEM > > | GROUPS_MAP |
Private Member Functions | |
void | beginUpdate () override |
void | endUpdate () override |
bool | updatedGalDisplayOptions (const GAL_DISPLAY_OPTIONS &aOptions) override |
Handle updating display options. More... | |
void | drawLineQuad (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) |
Draw a quad for the line. More... | |
void | drawSemiCircle (const VECTOR2D &aCenterPoint, double aRadius, double aAngle) |
Draw a semicircle. More... | |
void | drawFilledSemiCircle (const VECTOR2D &aCenterPoint, double aRadius, double aAngle) |
Draw a filled semicircle. More... | |
void | drawStrokedSemiCircle (const VECTOR2D &aCenterPoint, double aRadius, double aAngle) |
Draw a stroked semicircle. More... | |
void | drawPolyline (const std::function< VECTOR2D(int)> &aPointGetter, int aPointCount) |
Generic way of drawing a polyline stored in different containers. More... | |
void | drawPolygon (GLdouble *aPoints, int aPointCount) |
Draw a filled polygon. More... | |
void | drawTriangulatedPolyset (const SHAPE_POLY_SET &aPoly, bool aStrokeTriangulation) |
Draw a set of polygons with a cached triangulation. More... | |
int | drawBitmapChar (unsigned long aChar) |
Draw a single character using bitmap font. More... | |
void | drawBitmapOverbar (double aLength, double aHeight) |
Draw an overbar over the currently drawn text. More... | |
std::pair< VECTOR2D, float > | computeBitmapTextSize (const UTF8 &aText) const |
Compute a size of text drawn using bitmap font with current text setting applied. More... | |
void | onPaint (wxPaintEvent &aEvent) |
This is the OnPaint event handler. More... | |
void | skipMouseEvent (wxMouseEvent &aEvent) |
Skip the mouse event to the parent. More... | |
void | onSetNativeCursor (wxSetCursorEvent &aEvent) |
Give the correct cursor image when the native widget asks for it. More... | |
void | blitCursor () |
Blit cursor into the current screen. More... | |
unsigned int | getNewGroupNumber () |
Return a valid key that can be used as a new group number. More... | |
double | calcAngleStep (double aRadius) const |
Compute the angle step when drawing arcs/circles approximated with lines. More... | |
double | getWorldPixelSize () const |
VECTOR2D | getScreenPixelSize () const |
void | init () |
Basic OpenGL initialization and feature checks. More... | |
Private Attributes | |
wxGLContext * | m_glPrivContext |
Canvas-specific OpenGL context. More... | |
wxEvtHandler * | m_mouseListener |
wxEvtHandler * | m_paintListener |
GROUPS_MAP | m_groups |
Stores information about VBO objects (groups) More... | |
unsigned int | m_groupCounter |
Counter used for generating keys for groups. More... | |
VERTEX_MANAGER * | m_currentManager |
Currently used VERTEX_MANAGER (for storing VERTEX_ITEMs). More... | |
VERTEX_MANAGER * | m_cachedManager |
Container for storing cached VERTEX_ITEMs. More... | |
VERTEX_MANAGER * | m_nonCachedManager |
Container for storing non-cached VERTEX_ITEMs. More... | |
VERTEX_MANAGER * | m_overlayManager |
Container for storing overlaid VERTEX_ITEMs. More... | |
VERTEX_MANAGER * | m_tempManager |
Container for storing temp (diff mode) VERTEX_ITEMs. More... | |
OPENGL_COMPOSITOR * | m_compositor |
Handles multiple rendering targets. More... | |
unsigned int | m_mainBuffer |
Main rendering target. More... | |
unsigned int | m_overlayBuffer |
Auxiliary rendering target (for menus etc.) More... | |
unsigned int | m_tempBuffer |
Temporary rendering target (for diffing etc.) More... | |
RENDER_TARGET | m_currentTarget |
Current rendering target. More... | |
SHADER * | m_shader |
There is only one shader used for different objects. More... | |
bool | m_isFramebufferInitialized |
Are the framebuffers initialized? More... | |
bool | m_isBitmapFontInitialized |
Is the shader set to use bitmap fonts? More... | |
bool | m_isInitialized |
Basic initialization flag, has to be done when the window is visible. More... | |
bool | m_isGrouping |
Was a group started? More... | |
bool | m_isContextLocked |
Used for assertion checking. More... | |
int | m_lockClientCookie |
GLint | ufm_worldPixelSize |
GLint | ufm_screenPixelSize |
GLint | ufm_pixelSizeMultiplier |
GLint | ufm_antialiasingOffset |
wxCursor | m_currentwxCursor |
wxCursor showing the current native cursor More... | |
std::unique_ptr< GL_BITMAP_CACHE > | m_bitmapCache |
GLUtesselator * | m_tesselator |
std::deque< boost::shared_array< GLdouble > > | m_tessIntersects |
Static Private Attributes | |
static wxGLContext * | m_glMainContext = nullptr |
Parent OpenGL context. More... | |
static int | m_instanceCounter = 0 |
GL GAL instance counter. More... | |
static GLuint | g_fontTexture = 0 |
Bitmap font texture handle (shared) More... | |
static bool | m_isBitmapFontLoaded = false |
Is the bitmap font texture loaded? More... | |
OpenGL implementation of the Graphics Abstraction Layer.
This is a direct OpenGL-implementation and uses low-level graphics primitives like triangles and quads. The purpose is to provide a fast graphics interface, that takes advantage of modern graphics card GPUs. All methods here benefit thus from the hardware acceleration.
Definition at line 70 of file opengl_gal.h.
|
private |
Definition at line 325 of file opengl_gal.h.
|
private |
Super class definition.
Definition at line 314 of file opengl_gal.h.
OPENGL_GAL::OPENGL_GAL | ( | GAL_DISPLAY_OPTIONS & | aDisplayOptions, |
wxWindow * | aParent, | ||
wxEvtHandler * | aMouseListener = nullptr , |
||
wxEvtHandler * | aPaintListener = nullptr , |
||
const wxString & | aName = wxT( "GLCanvas" ) |
||
) |
aParent | is the wxWidgets immediate wxWindow parent of this object. |
aMouseListener | is the wxEvtHandler that should receive the mouse events, this can be can be any wxWindow, but is often a wxFrame container. |
aPaintListener | is the wxEvtHandler that should receive the paint event. This can be any wxWindow, but is often a derived instance of this class or a containing wxFrame. The "paint event" here is a wxCommandEvent holding EVT_GAL_REDRAW, as sent by PostPaint(). |
aName | is the name of this window for use by wxWindow::FindWindowByName() |
Definition at line 195 of file opengl_gal.cpp.
References BLUE, GL_CONTEXT_MANAGER::CreateCtx(), GL_CONTEXT_MANAGER::Get(), HIDPI_GL_CANVAS::GetNativePixelSize(), KIGFX::GAL_DISPLAY_OPTIONS::gl_antialiasing_mode, InitTesselatorCallbacks(), m_bitmapCache, m_compositor, m_glMainContext, m_glPrivContext, m_groupCounter, m_instanceCounter, m_isBitmapFontInitialized, m_isFramebufferInitialized, m_isGrouping, m_isInitialized, KIGFX::GAL::m_options, KIGFX::GAL::m_screenSize, m_shader, m_tesselator, onPaint(), onSetNativeCursor(), KIGFX::OPENGL_COMPOSITOR::SetAntialiasingMode(), KIGFX::GAL::SetAxesColor(), KIGFX::GAL::SetGridColor(), SetTarget(), skipMouseEvent(), KIGFX::TARGET_NONCACHED, ufm_antialiasingOffset, ufm_pixelSizeMultiplier, ufm_screenPixelSize, and ufm_worldPixelSize.
OPENGL_GAL::~OPENGL_GAL | ( | ) |
Definition at line 289 of file opengl_gal.cpp.
References ClearCache(), GL_CONTEXT_MANAGER::DestroyCtx(), g_fontTexture, GL_CONTEXT_MANAGER::Get(), GL_CONTEXT_MANAGER::LockCtx(), m_cachedManager, m_compositor, m_glMainContext, m_glPrivContext, m_instanceCounter, m_isBitmapFontLoaded, m_isInitialized, m_nonCachedManager, m_overlayManager, m_shader, m_tempManager, m_tesselator, and GL_CONTEXT_MANAGER::UnlockCtx().
|
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().
|
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 419 of file opengl_gal.cpp.
References KIGFX::SHADER::AddParameter(), KIGFX::OPENGL_COMPOSITOR::Begin(), KIGFX::VERTEX_MANAGER::BeginDrawing(), checkGlError(), KIGFX::VERTEX_MANAGER::Clear(), ComputeWorldScreenMatrix(), KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), KIGFX::SHADER::Deactivate(), KIGFX::OPENGL_COMPOSITOR::DIRECT_RENDERING, KIGFX::BUILTIN_FONT::font_image, g_fontTexture, KIGFX::OPENGL_COMPOSITOR::GetAntialiasRenderingOffset(), KIGFX::OPENGL_COMPOSITOR::GetAntialiasSupersamplingFactor(), HIDPI_GL_CANVAS::GetScaleFactor(), getScreenPixelSize(), getWorldPixelSize(), KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::height, init(), KIGFX::OPENGL_COMPOSITOR::Initialize(), IsVisible(), m_cachedManager, m_compositor, MATRIX3x3< T >::m_data, KIGFX::GAL::m_depthRange, KIGFX::GAL::m_fillColor, m_isBitmapFontInitialized, m_isBitmapFontLoaded, m_isContextLocked, m_isFramebufferInitialized, m_isInitialized, m_mainBuffer, m_nonCachedManager, m_overlayBuffer, m_overlayManager, KIGFX::GAL::m_screenSize, m_shader, KIGFX::GAL::m_strokeColor, m_tempBuffer, m_tempManager, KIGFX::GAL::m_worldScreenMatrix, KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::pixels, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), KIGFX::GAL::SetFillColor(), KIGFX::SHADER::SetParameter(), KIGFX::GAL::SetStrokeColor(), traceGalProfile, ufm_antialiasingOffset, ufm_pixelSizeMultiplier, ufm_screenPixelSize, ufm_worldPixelSize, KIGFX::SHADER::Use(), KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::width, VECTOR2< T >::x, and VECTOR2< T >::y.
|
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 1642 of file opengl_gal.cpp.
References getNewGroupNumber(), m_cachedManager, m_groups, and m_isGrouping.
|
overrideprivatevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 662 of file opengl_gal.cpp.
References init(), IsVisible(), m_cachedManager, m_isContextLocked, m_isInitialized, and KIGFX::VERTEX_MANAGER::Map().
|
overridevirtual |
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 from KIGFX::GAL.
Definition at line 1278 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::GAL::BitmapText(), KIGFX::VERTEX_MANAGER::Color(), computeBitmapTextSize(), drawBitmapChar(), drawBitmapOverbar(), KIGFX::COLOR4D::g, KIGFX::GAL::GetGlyphSize(), KIGFX::GAL::GetHorizontalJustify(), KIGFX::GAL::GetVerticalJustify(), GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_TOP, KIGFX::GAL::IsTextMirrored(), m_currentManager, KIGFX::GAL::m_globalFlipX, KIGFX::GAL::m_globalFlipY, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, Restore(), KIGFX::VERTEX_MANAGER::Rotate(), Save(), KIGFX::VERTEX_MANAGER::Scale(), text, Translate(), KIGFX::VERTEX_MANAGER::Translate(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Blit cursor into the current screen.
Definition at line 2188 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, color, KIGFX::OPENGL_COMPOSITOR::DIRECT_RENDERING, KIGFX::COLOR4D::g, KIGFX::GAL::getCursorColor(), KIGFX::GAL::IsCursorEnabled(), m_compositor, KIGFX::GAL::m_cursorPosition, KIGFX::GAL::m_fullscreenCursor, KIGFX::GAL::m_worldScale, KIGFX::COLOR4D::r, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by EndDrawing().
|
inlineprivate |
Compute the angle step when drawing arcs/circles approximated with lines.
Definition at line 513 of file opengl_gal.h.
References SEG_PER_CIRCLE_COUNT.
Referenced by DrawArc().
|
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 1670 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::ChangeItemColor(), group, m_cachedManager, and m_groups.
|
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 1679 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::ChangeItemDepth(), group, m_cachedManager, and m_groups.
|
static |
Checks OpenGL features.
aOptions |
Definition at line 335 of file opengl_gal.cpp.
References init().
Referenced by EDA_DRAW_PANEL_GAL::SwitchBackend().
|
overridevirtual |
Delete all data created during caching of graphic items.
Reimplemented from KIGFX::GAL.
Definition at line 1695 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::Clear(), m_bitmapCache, m_cachedManager, m_groups, and m_isInitialized.
Referenced by ~OPENGL_GAL().
|
overridevirtual |
Clear the screen.
aColor | is the color used for clearing. |
Reimplemented from KIGFX::GAL.
Definition at line 1583 of file opengl_gal.cpp.
References KIGFX::OPENGL_COMPOSITOR::DIRECT_RENDERING, m_compositor, and KIGFX::OPENGL_COMPOSITOR::SetBuffer().
|
overridevirtual |
Clear the target for rendering.
aTarget | is the target to be cleared. |
Reimplemented from KIGFX::GAL.
Definition at line 1727 of file opengl_gal.cpp.
References KIGFX::COLOR4D::BLACK, KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), KIGFX::OPENGL_COMPOSITOR::GetBuffer(), KIGFX::GAL::m_clearColor, m_compositor, m_mainBuffer, m_overlayBuffer, m_tempBuffer, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), KIGFX::TARGET_CACHED, KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, and KIGFX::TARGET_TEMP.
Referenced by StartDiffLayer().
Compute a size of text drawn using bitmap font with current text setting applied.
aText | is the text to be drawn. |
Definition at line 2114 of file opengl_gal.cpp.
References KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::advance, KIGFX::BUILTIN_FONT::font_information, KIGFX::BUILTIN_FONT::LookupGlyph(), KIGFX::BUILTIN_FONT::FONT_INFO_TYPE::max_y, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::maxy, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::miny, UTF8::ubegin(), UTF8::uend(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BitmapText().
|
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 DrawGrid(), and KIGFX::CAIRO_GAL_BASE::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 ComputeWorldScreenMatrix(), KIGFX::GAL::ComputeWorldScreenMatrix(), and KIGFX::GAL::GAL().
|
overridevirtual |
Compute the world <-> screen transformation matrix.
Reimplemented from KIGFX::GAL.
Definition at line 2389 of file opengl_gal.cpp.
References KIGFX::GAL::computeWorldScale(), KIGFX::GAL::ComputeWorldScreenMatrix(), KIGFX::GAL::m_lookAtPoint, KIGFX::GAL::m_worldScale, round_to_half_pixel(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BeginDrawing().
|
overridevirtual |
Delete the group from the memory.
aGroupNumber | is the group number. |
Reimplemented from KIGFX::GAL.
Definition at line 1688 of file opengl_gal.cpp.
References m_groups.
|
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 806 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, calcAngleStep(), KIGFX::VERTEX_MANAGER::Color(), DrawLine(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, KIGFX::VERTEX_MANAGER::Reserve(), Restore(), Save(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_NONE, SWAP, KIGFX::VERTEX_MANAGER::Translate(), KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
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. |
Reimplemented from KIGFX::GAL.
Definition at line 875 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), DrawCircle(), DrawLine(), drawStrokedSemiCircle(), KIGFX::COLOR4D::g, GetArcToSegmentCount(), KiROUND(), m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, Restore(), Save(), SEG_PER_CIRCLE_COUNT, KIGFX::GAL::SetLineWidth(), SWAP, KIGFX::VERTEX_MANAGER::Translate(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Draw a bitmap image.
Reimplemented from KIGFX::GAL.
Definition at line 1223 of file opengl_gal.cpp.
References BITMAP_BASE::GetPPI(), BITMAP_BASE::GetSizePixels(), GetTarget(), KIGFX::VERTEX_MANAGER::GetTransformation(), m_bitmapCache, m_currentManager, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_worldUnitLength, scale, SetTarget(), and KIGFX::TARGET_NONCACHED.
|
private |
Draw a single character using bitmap font.
Its main purpose is to be used in BitmapText() function.
aChar | is the character to be drawn. |
Definition at line 2008 of file opengl_gal.cpp.
References KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::advance, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::atlas_h, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::atlas_w, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::atlas_x, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::atlas_y, KIGFX::BUILTIN_FONT::font_image, KIGFX::BUILTIN_FONT::font_information, H, KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::height, KIGFX::BUILTIN_FONT::LookupGlyph(), m_currentManager, KIGFX::BUILTIN_FONT::FONT_INFO_TYPE::max_y, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::maxy, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::minx, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::miny, KIGFX::VERTEX_MANAGER::Reserve(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_FONT, KIGFX::BUILTIN_FONT::FONT_INFO_TYPE::smooth_pixels, Translate(), KIGFX::VERTEX_MANAGER::Vertex(), and KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::width.
Referenced by BitmapText().
|
private |
Draw an overbar over the currently drawn text.
Its main purpose is to be used in BitmapText() function. This method requires appropriate scaling to be applied (as is done in BitmapText() function). The current X coordinate will be the overbar ending.
aLength | is the width of the overbar. |
aHeight | is the height for the overbar. |
Definition at line 2085 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), KIGFX::COLOR4D::g, H, KIGFX::BUILTIN_FONT::LookupGlyph(), m_currentManager, KIGFX::GAL::m_strokeColor, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::maxy, KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE::miny, KIGFX::COLOR4D::r, KIGFX::VERTEX_MANAGER::Reserve(), Restore(), Save(), KIGFX::VERTEX_MANAGER::Shader(), Translate(), and KIGFX::VERTEX_MANAGER::Vertex().
Referenced by BitmapText().
|
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 749 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_lineWidth, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, KIGFX::VERTEX_MANAGER::Reserve(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_FILLED_CIRCLE, KIGFX::SHADER_STROKED_CIRCLE, KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawArcSegment(), and DrawSegment().
|
overridevirtual |
Draw the cursor.
aCursorPosition | is the cursor position in screen coordinates. |
Reimplemented from KIGFX::GAL.
Definition at line 1813 of file opengl_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 1204 of file opengl_gal.cpp.
References DrawPolyline(), and BEZIER_POLY::GetPoly().
|
private |
Draw a filled semicircle.
aCenterPoint | is the center point. |
aRadius | is the radius of the semicircle. |
aAngle | is the angle of the semicircle. |
Definition at line 1887 of file opengl_gal.cpp.
References m_currentManager, KIGFX::GAL::m_layerDepth, KIGFX::VERTEX_MANAGER::Reserve(), Restore(), KIGFX::VERTEX_MANAGER::Rotate(), Save(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_FILLED_CIRCLE, KIGFX::VERTEX_MANAGER::Translate(), KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by drawSemiCircle().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1394 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::GAL::computeMinGridSpacing(), KIGFX::DOTS, DrawLine(), KIGFX::VERTEX_MANAGER::EnableDepthTest(), KIGFX::VERTEX_MANAGER::EndDrawing(), KIGFX::COLOR4D::g, KIGFX::GAL::GetLineWidth(), HIDPI_GL_CANVAS::GetScaleFactor(), getWorldPixelSize(), KiROUND(), KIGFX::GAL::m_axesColor, KIGFX::GAL::m_axesEnabled, m_compositor, KIGFX::GAL::m_gridColor, KIGFX::GAL::m_gridLineWidth, KIGFX::GAL::m_gridOrigin, KIGFX::GAL::m_gridSize, KIGFX::GAL::m_gridStyle, KIGFX::GAL::m_gridTick, KIGFX::GAL::m_gridVisibility, m_mainBuffer, m_nonCachedManager, KIGFX::GAL::m_screenSize, KIGFX::GAL::m_screenWorldMatrix, KIGFX::GAL::m_worldScale, KIGFX::COLOR4D::r, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), KIGFX::GAL::SetLineWidth(), KIGFX::GAL::SetStrokeColor(), SetTarget(), KIGFX::SMALL_CROSS, SWAP, KIGFX::TARGET_NONCACHED, VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Draw the stored group.
aGroupNumber | is the group number. |
Reimplemented from KIGFX::GAL.
Definition at line 1661 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::DrawItem(), group, m_cachedManager, and m_groups.
|
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 687 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), drawLineQuad(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_strokeColor, and KIGFX::COLOR4D::r.
Referenced by DrawArc(), DrawArcSegment(), DrawGrid(), and drawTriangulatedPolyset().
Draw a quad for the line.
aStartPoint | is the start point of the line. |
aEndPoint | is the end point of the line. |
Definition at line 1823 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::GetTransformation(), m_currentManager, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_lineWidth, KIGFX::VERTEX_MANAGER::Reserve(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_LINE_A, KIGFX::SHADER_LINE_B, KIGFX::SHADER_LINE_C, KIGFX::SHADER_LINE_D, KIGFX::SHADER_LINE_E, KIGFX::SHADER_LINE_F, v2, KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawLine(), drawPolyline(), and DrawSegment().
|
overridevirtual |
Draw a polygon.
aPointList | is the list of the polygon points. |
Reimplemented from KIGFX::GAL.
Definition at line 1063 of file opengl_gal.cpp.
References drawPolygon(), and KIGFX::GAL::m_layerDepth.
Referenced by DrawPolygon().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1080 of file opengl_gal.cpp.
References drawPolygon(), KIGFX::GAL::m_layerDepth, VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1168 of file opengl_gal.cpp.
References SHAPE_POLY_SET::COutline(), DrawPolygon(), drawTriangulatedPolyset(), SHAPE_POLY_SET::IsTriangulationUpToDate(), and SHAPE_POLY_SET::OutlineCount().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1184 of file opengl_gal.cpp.
References SHAPE_LINE_CHAIN::CPoint(), drawPolygon(), KIGFX::GAL::m_layerDepth, SHAPE_LINE_CHAIN::PointCount(), SHAPE_LINE_CHAIN::SegmentCount(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Draw a filled polygon.
It does not need the last point to have the same coordinates as the first one.
aPoints | is the vertices data (3 coordinates: x, y, z). |
aPointCount | is the number of points. |
Definition at line 1951 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), drawPolyline(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, m_tesselator, m_tessIntersects, KIGFX::COLOR4D::r, KIGFX::VERTEX_MANAGER::Shader(), and KIGFX::SHADER_NONE.
Referenced by DrawPolygon().
|
overridevirtual |
Draw a polyline.
aPointList | is a list of 2D-Vectors containing the polyline points. |
Reimplemented from KIGFX::GAL.
Definition at line 1025 of file opengl_gal.cpp.
References drawPolyline().
Referenced by DrawCurve(), DrawRectangle(), and drawTriangulatedPolyset().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1036 of file opengl_gal.cpp.
References drawPolyline().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 1047 of file opengl_gal.cpp.
References SHAPE_LINE_CHAIN::CPoint(), drawPolyline(), SHAPE_LINE_CHAIN::IsClosed(), and SHAPE_LINE_CHAIN::PointCount().
|
private |
Generic way of drawing a polyline stored in different containers.
aPointGetter | is a function to obtain coordinates of n-th vertex. |
aPointCount | is the number of points to be drawn. |
Definition at line 1991 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), drawLineQuad(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_strokeColor, and KIGFX::COLOR4D::r.
Referenced by drawPolygon(), and DrawPolyline().
|
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 986 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), DrawPolyline(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, KIGFX::VERTEX_MANAGER::Reserve(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_NONE, KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, 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 695 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, VECTOR2< T >::Angle(), KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), DrawCircle(), drawLineQuad(), drawStrokedSemiCircle(), VECTOR2< T >::EuclideanNorm(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_strokeColor, KIGFX::COLOR4D::r, Restore(), KIGFX::VERTEX_MANAGER::Rotate(), Save(), KIGFX::GAL::SetLineWidth(), and KIGFX::VERTEX_MANAGER::Translate().
|
private |
Draw a semicircle.
Depending on settings (m_isStrokeEnabled & isFilledEnabled) it runs the proper function (drawStrokedSemiCircle or drawFilledSemiCircle).
aCenterPoint | is the center point. |
aRadius | is the radius of the semicircle. |
aAngle | is the angle of the semicircle. |
Definition at line 1870 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), drawFilledSemiCircle(), drawStrokedSemiCircle(), KIGFX::COLOR4D::g, m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_strokeColor, and KIGFX::COLOR4D::r.
|
private |
Draw a stroked semicircle.
aCenterPoint | is the center point. |
aRadius | is the radius of the semicircle. |
aAngle | is the angle of the semicircle. |
Definition at line 1917 of file opengl_gal.cpp.
References m_currentManager, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_lineWidth, KIGFX::VERTEX_MANAGER::Reserve(), Restore(), KIGFX::VERTEX_MANAGER::Rotate(), Save(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_STROKED_CIRCLE, KIGFX::VERTEX_MANAGER::Translate(), KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawArcSegment(), DrawSegment(), and drawSemiCircle().
|
private |
Draw a set of polygons with a cached triangulation.
Way faster than drawPolygon.
aStrokeTriangulation | indicates the triangulation should be stroked rather than filled. Used for debugging. |
Definition at line 1099 of file opengl_gal.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, KIGFX::VERTEX_MANAGER::Color(), DrawLine(), DrawPolyline(), KIGFX::COLOR4D::g, ADVANCED_CFG::GetCfg(), m_currentManager, KIGFX::GAL::m_fillColor, KIGFX::GAL::m_isFillEnabled, KIGFX::GAL::m_isStrokeEnabled, KIGFX::GAL::m_layerDepth, KIGFX::GAL::m_strokeColor, SHAPE_POLY_SET::OutlineCount(), SHAPE_POLY_SET::Polygon(), KIGFX::COLOR4D::r, KIGFX::GAL::SetLayerDepth(), KIGFX::GAL::SetStrokeColor(), KIGFX::VERTEX_MANAGER::Shader(), KIGFX::SHADER_NONE, SHAPE_POLY_SET::TriangulatedPolyCount(), SHAPE_POLY_SET::TriangulatedPolygon(), KIGFX::VERTEX_MANAGER::Vertex(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawPolygon().
|
overridevirtual |
Reimplemented from KIGFX::GAL.
Definition at line 2375 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::EnableDepthTest(), m_cachedManager, m_nonCachedManager, and m_overlayManager.
|
overridevirtual |
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 from KIGFX::GAL.
Definition at line 1782 of file opengl_gal.cpp.
References KIGFX::OPENGL_COMPOSITOR::DrawBuffer(), KIGFX::VERTEX_MANAGER::EndDrawing(), m_compositor, m_currentManager, m_mainBuffer, and m_tempBuffer.
|
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. Parameters passed to the GLU tesselator
Reimplemented from KIGFX::GAL.
Definition at line 580 of file opengl_gal.cpp.
References blitCursor(), KIGFX::OPENGL_COMPOSITOR::DrawBuffer(), KIGFX::VERTEX_MANAGER::EndDrawing(), KI_TRACE, m_cachedManager, m_compositor, m_isContextLocked, m_mainBuffer, m_nonCachedManager, m_overlayBuffer, m_overlayManager, KIGFX::OPENGL_COMPOSITOR::Present(), KIGFX::OPENGL_COMPOSITOR::SetBuffer(), PROF_TIMER::Start(), PROF_TIMER::Stop(), PROF_TIMER::to_string(), and traceGalProfile.
|
overridevirtual |
End the group.
Reimplemented from KIGFX::GAL.
Definition at line 1654 of file opengl_gal.cpp.
References KIGFX::VERTEX_MANAGER::FinishItem(), m_cachedManager, and m_isGrouping.
|
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().
|
overrideprivatevirtual |
Update handler for OpenGL settings
Reimplemented from KIGFX::GAL.
Definition at line 678 of file opengl_gal.cpp.
References m_cachedManager, m_isInitialized, and KIGFX::VERTEX_MANAGER::Unmap().
|
overridevirtual |
Force all remaining objects to be drawn.
Reimplemented from KIGFX::GAL.
Definition at line 1577 of file opengl_gal.cpp.
|
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 KIGFX::CAIRO_GAL_BASE::blitCursor(), and 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 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 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(), 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().
|
virtualinherited |
Definition at line 41 of file hidpi_gl_canvas.cpp.
References HIDPI_GL_CANVAS::GetScaleFactor().
Referenced by EDA_3D_CANVAS::DoRePaint(), EDA_3D_MODEL_VIEWER::OnMouseMove(), EDA_3D_CANVAS::OnMouseMove(), EDA_3D_MODEL_VIEWER::OnPaint(), and OPENGL_GAL().
|
inherited |
Convert the given point from client coordinates to native pixel coordinates.
Definition at line 53 of file hidpi_gl_canvas.cpp.
References HIDPI_GL_CANVAS::GetScaleFactor().
Referenced by EDA_3D_MODEL_VIEWER::OnMouseMove(), EDA_3D_CANVAS::OnMouseMove(), and EDA_3D_CANVAS::OnMouseWheel().
|
private |
Return a valid key that can be used as a new group number.
Definition at line 2219 of file opengl_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.
|
inherited |
Get the current scale factor.
Definition at line 71 of file hidpi_gl_canvas.cpp.
References HIDPI_GL_CANVAS::m_scale_factor.
Referenced by BeginDrawing(), DrawGrid(), HIDPI_GL_CANVAS::GetNativePixelSize(), HIDPI_GL_CANVAS::GetNativePosition(), getScreenPixelSize(), ResizeScreen(), KIGFX::PREVIEW::SetConstantGlyphHeight(), and updatedGalDisplayOptions().
|
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().
|
private |
Definition at line 411 of file opengl_gal.cpp.
References HIDPI_GL_CANVAS::GetScaleFactor(), KIGFX::GAL::m_screenSize, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BeginDrawing().
|
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(), 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().
|
overridevirtual |
Get the currently used target for rendering.
Reimplemented from KIGFX::GAL.
Definition at line 1721 of file opengl_gal.cpp.
References m_currentTarget.
Referenced by DrawBitmap().
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 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().
|
private |
Definition at line 404 of file opengl_gal.cpp.
References MATRIX3x3< T >::GetScale(), KIGFX::GAL::GetScreenWorldMatrix(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BeginDrawing(), and DrawGrid().
|
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().
|
overridevirtual |
Return true if the target exists.
aTarget | is the target to be checked. |
Reimplemented from KIGFX::GAL.
Definition at line 1761 of file opengl_gal.cpp.
References m_overlayBuffer, KIGFX::TARGET_CACHED, KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, and KIGFX::TARGET_TEMP.
|
private |
Basic OpenGL initialization and feature checks.
std::runtime_error | if any of the OpenGL feature checks failed |
Definition at line 2231 of file opengl_gal.cpp.
References enableGlDebug(), KIGFX::BUILTIN_FONT::font_image, KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::height, KIGFX::SHADER::IsLinked(), KIGFX::BUILTIN_SHADERS::kicad_fragment_shader, KIGFX::BUILTIN_SHADERS::kicad_vertex_shader, KIGFX::SHADER::Link(), KIGFX::SHADER::LoadShaderFromStrings(), m_cachedManager, m_glMainContext, m_glPrivContext, m_isContextLocked, m_isInitialized, m_nonCachedManager, m_overlayManager, m_shader, m_tempManager, m_tesselator, KIGFX::VERTEX_MANAGER::SetShader(), GL_UTILS::SetSwapInterval(), KIGFX::SHADER_TYPE_FRAGMENT, KIGFX::SHADER_TYPE_VERTEX, and KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE::width.
Referenced by BeginDrawing(), beginUpdate(), and CheckFeatures().
|
inlinevirtualinherited |
Return true if the GAL engine is a Cairo based type.
Reimplemented in KIGFX::CAIRO_GAL_BASE.
Definition at line 80 of file graphics_abstraction_layer.h.
Referenced by getShadowLayer().
|
inlineoverridevirtual |
Checks the state of the context lock.
Reimplemented from KIGFX::GAL.
Definition at line 287 of file opengl_gal.h.
References m_isContextLocked.
|
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 KIGFX::CAIRO_GAL_BASE::blitCursor(), and 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 KIGFX::CAIRO_GAL_BASE::angle_xform(), KIGFX::CAIRO_GAL_BASE::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().