SketcherGui::EditModeGeometryCoinConverter Class Reference

Class for creating the Geometry layer into coin nodes. More...

#include <EditModeGeometryCoinConverter.h>

Public Member Functions

void convert (const Sketcher::GeoListFacade &geolistfacade)
 converts the geometry defined by GeometryLayer into the coin nodes. More...
 
 EditModeGeometryCoinConverter (GeometryLayerNodes &geometrylayernodes, DrawingParameters &drawingparameters, GeometryLayerParameters &geometryLayerParams, CoinMapping &coinMap)
 Constructs an GeometryCoinConverter responsible for generating the points and line sets for drawing the geometry defined by a GeometryLayer into the coin nodes provided by GeometryLayerNodes. More...
 
float getBoundingBoxMaxMagnitude ()
 returns the maximum of the vertical and horizontal magnitudes of the coordinates of the points and lines added to coin by this layer (local responsibility). More...
 
auto getBSplineGeoIds ()
 returns the GeoIds of BSpline geometries More...
 
double getCombRepresentationScale ()
 returns the Comb representation scale that should be used to represent the B-Splines of this layer (local responsibility). More...
 

Detailed Description

Class for creating the Geometry layer into coin nodes.

Responsibility: To create and update GeometryLayer nodes provided as constructor parameter for the provided geometry, taking into account the drawing parameters provided as constructor parameters.

Interface: A single entry point convert(), performing the following flow:

[Geometry] => Analysis => construct drawing elements => Create mappings GeoId coin => populate coin nodes

Analysis performs analysis such as maximum boundingbox magnitude of all geometries and maximum curvature of BSplines

Constructor & Destructor Documentation

◆ EditModeGeometryCoinConverter()

EditModeGeometryCoinConverter::EditModeGeometryCoinConverter ( GeometryLayerNodes geometrylayernodes,
DrawingParameters drawingparameters,
GeometryLayerParameters geometryLayerParams,
CoinMapping coinMap 
)

Constructs an GeometryCoinConverter responsible for generating the points and line sets for drawing the geometry defined by a GeometryLayer into the coin nodes provided by GeometryLayerNodes.

Parameters
geometrylayernodesThe coin nodes to be populated with the geometry
drawingparametersParameters for drawing the overlay information

Member Function Documentation

◆ convert()

◆ getBoundingBoxMaxMagnitude()

float EditModeGeometryCoinConverter::getBoundingBoxMaxMagnitude ( )

returns the maximum of the vertical and horizontal magnitudes of the coordinates of the points and lines added to coin by this layer (local responsibility).

Referenced by SketcherGui::EditModeGeometryCoinManager::processGeometry().

◆ getBSplineGeoIds()

auto SketcherGui::EditModeGeometryCoinConverter::getBSplineGeoIds ( )

returns the GeoIds of BSpline geometries

References draftfunctions.move::move().

Referenced by SketcherGui::EditModeGeometryCoinManager::processGeometry().

◆ getCombRepresentationScale()

double EditModeGeometryCoinConverter::getCombRepresentationScale ( )

returns the Comb representation scale that should be used to represent the B-Splines of this layer (local responsibility).

Referenced by SketcherGui::EditModeGeometryCoinManager::processGeometry().


The documentation for this class was generated from the following files: