23#ifndef GRAPHICSABSTRACTIONLAYER_H_
24#define GRAPHICSABSTRACTIONLAYER_H_
84 const unsigned mult = ( aTick > 1 ) ? aTick : 2u;
86 while( aPitch > 0.0 && aPitch <= aThreshold )
293 double aWidth,
const COLOR4D& aColor );
301 double aCornerRadius,
float aShapeType,
double aRotation,
318 virtual void DrawPolyline(
const std::deque<VECTOR2D>& aPointList ) {};
319 virtual void DrawPolyline(
const std::vector<VECTOR2D>& aPointList ) {};
328 virtual void DrawPolylines(
const std::vector<std::vector<VECTOR2D>>& aPointLists ){};
346 double aWallWidth ) {};
381 double aWidth,
double aMaxError ){};
391 virtual void DrawEllipse(
const VECTOR2D& aCenterPoint,
double aMajorRadius,
double aMinorRadius,
404 virtual void DrawEllipseArc(
const VECTOR2D& aCenterPoint,
double aMajorRadius,
double aMinorRadius,
428 virtual void DrawGlyphs(
const std::vector<std::unique_ptr<KIFONT::GLYPH>>& aGlyphs )
433 for(
size_t i = 0; i < aGlyphs.size(); i++ )
435 if( aGlyphs[i]->IsHover() )
441 DrawGlyph( *aGlyphs[i], i, aGlyphs.size() );
443 if( aGlyphs[i]->IsHover() )
457 virtual void DrawPolygon(
const std::deque<VECTOR2D>& aPointList ) {};
460 bool aStrokeTriangulation =
false ) {};
476 double aFilterValue = 0.0 ) {};
491 virtual bool Show(
bool aShow ) {
return true; };
669 wxT(
"SetLayerDepth: below minimum" ) );
671 wxT(
"SetLayerDepth: above maximum" ) );
700 virtual void BitmapText(
const wxString& aText,
const VECTOR2I& aPosition,
709 void ResetTextAttributes();
846 virtual void ComputeWorldScreenMatrix();
887 BOX2D GetVisibleWorldExtents()
const;
1201 gridScreenSize.
x = std::max( 100.0, gridScreenSize.
x );
1202 gridScreenSize.
y = std::max( 100.0, gridScreenSize.
y );
1207 gridThreshold *= 2.0;
1211 const double minSize = std::min( gridScreenSize.
x, gridScreenSize.
y );
1215 gridScreenSize *= sparsed /
minSize;
1217 return gridScreenSize;
1275 void SetGridSources( std::vector<GRID_SOURCE> aSources );
1323 virtual bool SetNativeCursorStyle(
KICURSOR aCursor,
bool aHiDPI );
1451 double computeMinGridSpacing()
const;
1462 return std::fmax( 1.0f,
m_gridLineWidth ) * aWorldPixelSize / aScaleFactor;
1488 bool IsMajor(
int aIndex )
const {
return tick > 0 && aIndex %
static_cast<int>(
tick ) == 0; }
1495 GRID_LATTICE gridLattice(
const GRID_SOURCE& aSrc )
const;
1504 void drawGridCoverageShape(
const GRID_SOURCE& aSrc );
1539 template <
typename T>
1653 m_gal->beginUpdate();
1681 m_gal->BeginDrawing();
1687 m_gal->EndDrawing();
This class handle bitmap images in KiCad.
constexpr const Vec GetEnd() const
constexpr const Vec & GetOrigin() const
GAL(GAL_DISPLAY_OPTIONS &aOptions)
A color representation with 4 components: red, green, blue, alpha.
GAL_CONTEXT_LOCKER(GAL *aGal)
GAL_DRAWING_CONTEXT(GAL *aGal)
~GAL_DRAWING_CONTEXT() noexcept(false)
GAL_SCOPED_ATTRS & operator=(const GAL_SCOPED_ATTRS &)=delete
GAL_SCOPED_ATTRS(const GAL_SCOPED_ATTRS &)=delete
GAL_SCOPED_ATTRS(KIGFX::GAL &aGal, int aFlags)
Instantiate a GAL_SCOPED_ATTRS object, saving the current attributes of the GAL.
GAL_UPDATE_CONTEXT(GAL *aGal)
Abstract interface for drawing on a 2D-surface.
const VECTOR2D & GetGridOrigin() const
virtual void ResizeScreen(int aWidth, int aHeight)
Resize the canvas.
virtual void DrawPolygon(const std::deque< VECTOR2D > &aPointList)
Draw a polygon.
virtual void ChangeGroupUndimmed(int aGroupNumber, bool aUndimmed)
Exempt the group from its layer's dim, see SetSceneLayerDim().
bool IsTextMirrored() const
void SetGridColor(const COLOR4D &aGridColor)
Set the grid color.
float GetGridLineWidth() const
Get the grid line width.
virtual bool Show(bool aShow)
Show/hide the GAL canvas.
virtual bool SupportsStrokeLevelOfDetail() const
Tell whether strokes can carry a level of detail, see SetStrokeLevelOfDetail().
virtual void SetLayerDepth(double aLayerDepth)
Set the depth of the layer (position on the z-axis)
double GetScreenDPI() const
const MATRIX3x3D & GetWorldScreenMatrix() const
Get the world <-> screen transformation matrix.
bool IsCursorEnabled() const
Return information about cursor visibility.
virtual void SetIsFill(bool aIsFillEnabled)
Enable/disable fill.
friend class GAL_DRAWING_CONTEXT
COLOR4D m_hoverColor
Color for hovered (active) links.
friend class GAL_CONTEXT_LOCKER
virtual void EndDrawing()
End the drawing, needs to be called for every new frame.
virtual void StartDiffLayer()
Begins rendering of a differential layer.
bool m_isCursorEnabled
Is the cursor enabled?
virtual void DrawGlyph(const KIFONT::GLYPH &aGlyph, int aNth=0, int aTotal=1)
Draw a polygon representing a font glyph.
virtual void EndDiffLayer()
Ends rendering of a differential layer.
virtual void Rotate(double aAngle)
Rotate the context.
virtual void DrawRectangle(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint)
Draw a rectangle.
MATRIX3x3D m_worldScreenMatrix
World transformation.
VECTOR2D GetVisibleGridSize() const
Return the visible grid size in x and y directions.
double m_layerDepth
The actual layer depth.
void SetVerticalJustify(const GR_TEXT_V_ALIGN_T aVerticalJustify)
bool GetIsFill() const
Get the fill status.
void AdvanceDepth()
Change the current depth to deeper, so it is possible to draw objects right beneath other.
const COLOR4D & GetFillColor() const
Get the fill color.
void SetFontBold(const bool aBold)
MATRIX3x3D m_screenWorldMatrix
Screen transformation.
void SetFontUnderlined(bool aUnderlined)
virtual VECTOR2I GetLayoutPixelSize() const
Return the size the view is centred in and panned by.
friend class GAL_SCOPED_ATTRS
virtual void BeginSceneLayer(int aLayer)
Open a cached layer of the retained scene during a rebuild.
void SetHorizontalJustify(const GR_TEXT_H_ALIGN_T aHorizontalJustify)
virtual bool SupportsTypedPads() const
Return true if DrawPad() renders every standard pad shape.
virtual RENDER_TARGET GetTarget() const
Get the currently used target for rendering.
double GetMaxDepth() const
bool m_axesEnabled
Should the axes be drawn.
virtual bool IsContextValid() const
Check whether the locked context is actually the current one.
const std::vector< GRID_SOURCE > & GetGridSources() const
void SetRotation(double aRotation)
Get/set the rotation angle (in radians).
float m_gridLineWidth
Line width of the grid.
virtual void SetSceneLayerDim(int aLayer, const COLOR4D &aToward, double aKeep)
Fade a cached layer towards a colour in the shader, so dimming it recolours none of its groups.
void SetFlip(bool xAxis, bool yAxis)
Sets flipping of the screen.
virtual void MarkStaticDirty()
Make a backend that keeps a static geometry pool rebuild it on the next frame.
virtual void SetSceneLayerState(int aLayer, int aOrder, bool aVisible, bool aHasNegatives)
Describe a cached layer to the retained scene.
VECTOR2I m_screenSize
Screen size in screen (wx logical) coordinates.
virtual void Flush()
Force all remaining objects to be drawn.
virtual int GetSwapInterval() const
Return the swap interval. -1 for adaptive, 0 for disabled/unknown.
virtual void DeleteGroup(int aGroupNumber)
Delete the group from the memory.
std::stack< double > m_depthStack
Stored depth values.
GR_TEXT_H_ALIGN_T GetHorizontalJustify() const
virtual void SetScreenSpaceMode(bool aEnabled)
Store sizes of what is drawn next in pixels rather than world units, so it keeps its pixel size throu...
bool TakeWorldScaleRead() const
Tell whether GetWorldScale() or a transformation matrix was read since the last call.
void normalize(T &a, T &b)
Ensure that the first element is smaller than the second.
VECTOR2D m_depthRange
Range of the depth.
double GetZoomFactor() const
virtual void SetFillColor(const COLOR4D &aColor)
Set the fill color.
void OnGalDisplayOptionsChanged(const GAL_DISPLAY_OPTIONS &aOptions) override
Handler for observer settings changes.
double m_zoomFactor
The zoom factor.
virtual void Translate(const VECTOR2D &aTranslation)
Translate the context.
VECTOR2D ToScreen(const VECTOR2D &aPoint) const
Compute the point position in screen coordinates from given world coordinates.
void SetCursorEnabled(bool aCursorEnabled)
Enable/disable cursor.
void SetAxesEnabled(bool aAxesEnabled)
Enable drawing the axes.
virtual void DrawPolylines(const std::vector< std::vector< VECTOR2D > > &aPointLists)
Draw multiple polylines.
virtual bool HasTarget(RENDER_TARGET aTarget)
Return true if the target exists.
GRID_STYLE m_gridStyle
Grid display style.
void SetCursorColor(const COLOR4D &aCursorColor)
Set the cursor color.
COLOR4D m_cursorColor
Cursor color.
COLOR4D m_axesColor
Color of the axes.
virtual void DrawPad(const VECTOR2D &aCenter, double aHalfWidth, double aHalfHeight, double aCornerRadius, float aShapeType, double aRotation, const COLOR4D &aColor)
Draw a filled pad as one primitive in aColor.
int m_gridMinSpacing
Minimum screen size of the grid (pixels) below which the grid is not drawn.
void SetGridSize(const VECTOR2D &aGridSize)
Set the grid size.
virtual void SetGroupPlacement(int aGroup, int aLayer, double aLodScale, bool aShown, const RETAINED_GROUP_ORDER &aOrder)
Declare where a cached group belongs in the retained scene.
virtual GAL_CONTEXT_LOSS GetContextLoss() const
Check whether a GPU reset destroyed this canvas' rendering context.
bool m_worldScaleRead
see TakeWorldScaleRead()
virtual void SetSceneDrawOrdered(bool aOrdered)
Tell the retained scene whether cached groups are placed in an order that matters.
double GetWorldScaleForScreenSpace() const
Get the world scale to size something drawn in screen space mode.
const VECTOR2D & GetLookAtPoint() const
double GetRotation() const
const MATRIX3x3D & GetScreenWorldMatrix() const
Get the screen <-> world transformation matrix.
bool IsFontUnderlined() const
virtual bool UsesPolygonTriangulationCache() const
Return true if filled polygons are drawn from the SHAPE_POLY_SET triangulation cache,...
virtual bool HasRetainedScene() const
Return true if the backend keeps cached groups in a persistent scene that it patches in place,...
virtual bool SupportsStrokePixelPad() const
Tell whether strokes can carry part of their width in pixels, see SetStrokePixelPad().
virtual void DrawCircle(const VECTOR2D &aCenterPoint, double aRadius)
Draw a circle using world coordinates.
virtual void Restore()
Restore the context.
float m_lineWidth
The line width.
virtual void DrawHoleWall(const VECTOR2D &aCenterPoint, double aHoleRadius, double aWallWidth)
Draw a hole wall ring.
const COLOR4D & GetStrokeColor() const
Get the stroke color.
virtual void ClearTarget(RENDER_TARGET aTarget)
Clear the target for rendering.
virtual void SetSceneScale(double aScale)
Set the view scale that group placements are tested against.
void SetZoomFactor(double aZoomFactor)
virtual void BeginDrawing()
Start/end drawing functions, draw calls can be only made in between the calls to BeginDrawing()/EndDr...
void computeWorldScale()
Compute the scaling factor for the world->screen matrix.
virtual bool IsOpenGlEngine()
Return true if the GAL engine is a OpenGL based type.
virtual bool IsDrawingMode() const
Return true if the GAL is inside a BeginDrawing/EndDrawing pair.
virtual std::array< uint64_t, 2 > GroupContentFingerprint(int aGroupNumber) const
virtual int BeginGroup()
Begin a group.
TEXT_ATTRIBUTES m_attributes
static const int MIN_DEPTH
Possible depth range.
const VECTOR2D & GetGridSize() const
Return the grid size.
virtual void DrawPolygon(const VECTOR2D aPointList[], int aListSize)
virtual void SetLineWidth(float aLineWidth)
Set the line width.
double m_rotation
Rotation transformation (radians)
VECTOR2D m_gridSize
The grid size.
virtual bool IsResetSettled()
Check whether the driver has finished the reset that destroyed this canvas' context.
virtual void DrawGrid()
Draw the grid.
virtual void DrawPolygon(const SHAPE_POLY_SET &aPolySet, bool aStrokeTriangulation=false)
virtual void SetStrokeLevelOfDetail(double aLod)
Show every stroke drawn from now on only while the view scale is above aLod, as VIEW::IsShownAtScale(...
COLOR4D getCursorColor() const
Get the actual cursor color to draw.
virtual void SetStrokeLengthPad(double aPixels)
Extend every stroke drawn from now on by aPixels at each end.
virtual void ChangeGroupDepth(int aGroupNumber, int aDepth)
Change the depth (Z-axis position) of the group.
virtual void SetHoverColor(const COLOR4D &aColor)
COLOR4D m_fillColor
The fill color.
virtual void EndNegativesLayer()
Ends rendering of a negatives layer and draws it to the main layer.
bool IsFontItalic() const
void DrawRectangle(const BOX2I &aRect)
double m_worldUnitLength
The unit length of the world coordinates [inch].
virtual void StartNegativesLayer()
Begins rendering in a new layer that will be copied to the main layer in EndNegativesLayer().
void SetTextMirrored(const bool aMirrored)
double m_scaleLimitBelow
see TakeWorldScaleLimits()
GRID_STYLE GetGridStyle() const
virtual void DrawPolyline(const std::deque< VECTOR2D > &aPointList)
Draw a polyline.
void SetCoarseGrid(int aInterval)
Draw every tick line wider.
virtual bool updatedGalDisplayOptions(const GAL_DISPLAY_OPTIONS &aOptions)
Handle updating display options.
void SetAxesColor(const COLOR4D &aAxesColor)
Set the axes color.
virtual void SetStrokeColor(const COLOR4D &aColor)
Set the stroke color.
virtual void ChangeGroupColor(int aGroupNumber, const COLOR4D &aNewColor)
Change the color used to draw the group.
virtual void DrawArcSegment(const VECTOR2D &aCenterPoint, double aRadius, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aWidth, double aMaxError)
Draw an arc segment.
virtual bool SupportsStrokeLengthPad() const
Tell whether strokes can be longer by a number of pixels, see SetStrokeLengthPad().
virtual bool IsContextLocked()
Checks the state of the context lock.
VECTOR2D m_cursorPosition
Current cursor position (world coordinates)
VECTOR2D m_gridOffset
The grid offset to compensate cursor position.
const COLOR4D & GetGridColor() const
virtual void SetIsStroke(bool aIsStrokeEnabled)
Enable/disable stroked outlines.
virtual void beginUpdate()
Enable item update mode.
virtual void DrawGroup(int aGroupNumber)
Draw the stored group.
double getLayerDepth() const
const VECTOR2I & GetGlyphSize() const
int m_gridTick
Every tick line gets the double width.
double m_worldScale
The scale factor world->screen.
void SetLookAtPoint(const VECTOR2D &aPoint)
Get/set the Point in world space to look at.
virtual void DrawPolygon(const SHAPE_LINE_CHAIN &aPolySet)
bool GetGridVisibility() const
void SetGridOrigin(const VECTOR2D &aGridOrigin)
Set the origin point for the grid.
virtual bool IsCairoEngine()
Return true if the GAL engine is a Cairo based type.
virtual void ClearScreen()
Clear the screen.
virtual void DrawLine(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint)
Draw a line.
VECTOR2D m_gridOrigin
The grid origin.
virtual void endUpdate()
Disable item update mode.
void SetWorldUnitLength(double aWorldUnitLength)
Set the unit length.
double GetWorldUnitLength() const
virtual void DrawPolyline(const std::vector< VECTOR2D > &aPointList)
virtual void SetMinLineWidth(float aLineWidth)
Set the minimum line width in pixels.
KICURSOR m_currentNativeCursor
Current cursor.
bool m_globalFlipY
Flag for Y axis flipping.
virtual void UnlockContext(int aClientCookie)
void SetClearColor(const COLOR4D &aColor)
void SetScreenSize(const VECTOR2I &aSize)
const COLOR4D & GetClearColor() const
int GetCoarseGrid() const
virtual void DrawSegmentChain(const SHAPE_LINE_CHAIN &aLineChain, double aWidth)
static const int GRID_DEPTH
Depth level on which the grid is drawn.
virtual bool IsInitialized() const
Return the initialization status for the canvas.
float GetMinLineWidth() const
Get the minimum line width in pixels.
void SetGlyphSize(const VECTOR2I aSize)
UTIL::LINK m_observerLink
virtual void DrawGlyphs(const std::vector< std::unique_ptr< KIFONT::GLYPH > > &aGlyphs)
Draw polygons representing font glyphs.
virtual void Scale(const VECTOR2D &aScale)
Scale the context.
virtual void DrawCurve(const VECTOR2D &startPoint, const VECTOR2D &controlPointA, const VECTOR2D &controlPointB, const VECTOR2D &endPoint, double aFilterValue=0.0)
Draw a cubic bezier spline.
bool m_isFillEnabled
Is filling of graphic objects enabled ?
float m_minLineWidth
Minimum line width in pixels.
virtual bool RefillsNonCachedTargets() const
Return true if the backend empties every non-cached target each frame, so VIEW must emit them again e...
bool GetGridSnapping() const
virtual void EndGroup()
End the group.
virtual void DrawArc(const VECTOR2D &aCenterPoint, double aRadius, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle)
Draw an arc.
bool WorldScaleBelow(double aLimit) const
Tell whether the world scale is below a limit.
virtual void Transform(const MATRIX3x3D &aTransformation)
Transform the context.
virtual void SetNegativeDrawMode(bool aSetting)
Set negative draw mode in the renderer.
float gridMinorLineWidth(double aWorldPixelSize, double aScaleFactor) const
Compute the world width of a minor grid line.
COLOR4D m_gridColor
Color of the grid.
VECTOR2D ToWorld(const VECTOR2D &aPoint) const
Compute the point position in world coordinates from given screen coordinates.
COLOR4D m_strokeColor
The color of the outlines.
double computeMinGridSpacing() const
Compute minimum grid spacing from the grid settings.
void SetFontItalic(bool aItalic)
bool m_isStrokeEnabled
Are the outlines stroked ?
std::vector< GRID_SOURCE > m_gridSources
Sources overlayed on the display grid.
void TakeWorldScaleLimits(double &aBelow, double &aAbove) const
Give and forget the nearest limits on either side of the scale passed to WorldScaleBelow().
virtual void DrawBitmap(const BITMAP_BASE &aBitmap, double alphaBlend=1.0)
Draw a bitmap image.
GAL_DISPLAY_OPTIONS & m_options
virtual bool HasStaticRebuildPending() const
Return true if the backend dropped its cached geometry and VIEW must draw the cached layers again,...
bool m_gridVisibility
Should the grid be shown.
static constexpr int SEG_PER_CIRCLE_COUNT
The default number of segments approximating a full circle.
double GetMinDepth() const
virtual void ClearCache()
Delete all data created during caching of graphic items.
virtual void SetTarget(RENDER_TARGET aTarget)
Set the target for rendering.
virtual void DrawSegment(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint, double aWidth)
Draw a rounded segment.
double m_screenDPI
The dots per inch of the screen.
virtual void DrawPolyline(const SHAPE_LINE_CHAIN &aLineChain)
const VECTOR2I & GetScreenPixelSize() const
Return GAL canvas size in pixels.
friend class GAL_UPDATE_CONTEXT
void SetGridVisibility(bool aVisibility)
Set the visibility setting of the grid.
float GetLineWidth() const
Get the line width.
virtual void Save()
Save the context.
bool m_globalFlipX
Flag for X axis flipping.
virtual void SetSceneLayerOverlayAlpha(int aLayer)
Blend a cached layer the way the other canvases blend the overlay they draw it in.
virtual void LockContext(int aClientCookie)
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing.
virtual void DrawSegmentChain(const std::vector< VECTOR2D > &aPointList, double aWidth)
Draw a chain of rounded segments.
void SetWorldScreenMatrix(const MATRIX3x3D &aMatrix)
Set the world <-> screen transformation matrix.
GR_TEXT_V_ALIGN_T GetVerticalJustify() const
bool GetIsStroke() const
Get the stroke status.
KIGFX::CROSS_HAIR_MODE m_crossHairMode
Crosshair drawing mode.
virtual void DrawCursor(const VECTOR2D &aCursorPosition)
Draw the cursor.
void SetDepthRange(const VECTOR2D &aDepthRange)
Set the range of the layer depth.
double GetWorldScale() const
Get the world scale.
VECTOR2D m_lookAtPoint
Point to be looked at in world space.
GAL(GAL_DISPLAY_OPTIONS &aOptions)
virtual void SetStrokePixelPad(double aPixels)
Widen every stroke, circle and pad drawn from now on by aPixels.
virtual bool IsVisible() const
Return true if the GAL canvas is visible on the screen.
void SetScreenDPI(double aScreenDPI)
Set the dots per inch of the screen.
virtual void DrawPolyline(const VECTOR2D aPointList[], int aListSize)
virtual void EnableDepthTest(bool aEnabled=false)
bool m_forceDisplayCursor
Always show cursor.
static const int MAX_DEPTH
static double calcAngleStep(double aRadius)
Compute the angle step when drawing arcs/circles approximated with lines.
Container for data for KiCad programs.
virtual COMMON_SETTINGS * GetCommonSettings() const
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Represent a set of closed polygons.
Simple RAII-handle to a subscription.
const int minSize
Push and Shove router track width and via size dialog.
MATRIX3x3< double > MATRIX3x3D
The Cairo implementation of the graphics abstraction layer.
constexpr double GRID_DIM_ALPHA
Opacity of the background wash laid over a selected grid item's area, to fade the grids showing throu...
GAL_CONTEXT_LOSS
State of a canvas' rendering context after a GPU reset.
@ REPEATED
Contexts keep being lost; stop using this backend.
@ RECOVERABLE
Context was lost; rebuild the canvas.
GRID_STYLE
Type definition of the grid style.
@ SMALL_CROSS
Use small cross instead of dots for the grid.
@ LINES
Use lines for the grid.
constexpr double GRID_SELECTED_BRIGHTEN
How far the grid being edited is lifted above its own colour.
double AutoSparsePitch(double aPitch, unsigned aTick, double aThreshold)
Multiply aPitch by aTick until it exceeds aThreshold, so a sub-threshold grid still shows every Nth l...
@ NONE
No updates are required.
RENDER_TARGET
RENDER_TARGET: Possible rendering targets.
@ TARGET_CACHED
Main rendering target (cached)
constexpr double GRID_EDGE_DARKEN
How far the hairline round a grid's coverage sits below its own colour.
PGM_BASE * PgmOrNull()
Return a reference that can be nullptr when running a shared lib from a script, not from a kicad app.
double zoom_correction_factor
The spacing of a grid source's lattice as it is drawn at the current zoom.
Geometry of a regular grid (cartesian or polar) and the math operations for snapping and coverage tes...
bool IsMajor(int aIndex) const
VECTOR2D extent
as GRID_SOURCE::extent, with an unbounded polar grid reaching past the screen
unsigned tick
every tick-th line is a major one
VECTOR2D pitch
along x and y, or of radius and angle for a polar grid
Render-time projection of a grid: GRID_GEOMETRY (kind/origin/pitch/orientation/extent) plus rendering...
bool snapCursor
Participate in the cursor snap (GAL::GetGridPoint).
unsigned tick
Major-tick interval (0 = inherit default).
bool axesEnabled
Skip grid lines coincident with the world axes (only meaningful for unbounded cartesian).
bool highlighted
Render with edit-mode emphasis (selected grid).
bool unbounded
No extent; visible range derived from screen corners.
std::array< uint64_t, 2 > contentHash
bool operator<(const RETAINED_GROUP_ORDER &aOther) const
std::array< int, 4 > bbox
bool SamePrefix(const RETAINED_GROUP_ORDER &aOther) const
GR_TEXT_H_ALIGN_T
This is API surface mapped to common.types.HorizontalAlignment.
GR_TEXT_V_ALIGN_T
This is API surface mapped to common.types.VertialAlignment.
VECTOR2< int32_t > VECTOR2I
VECTOR2< double > VECTOR2D