Class for creating the Overlay information layer. More...
#include <EditModeInformationOverlayCoinConverter.h>
Public Member Functions | |
void | convert (const Part::Geometry *geometry, int geoid) |
extracts information from the geometry and converts it into an information overlay in the SoGroup provided in the constructor. More... | |
EditModeInformationOverlayCoinConverter (SoGroup *infogroup, OverlayParameters &overlayparameters, DrawingParameters &drawingparameters) | |
Constructs an InformationOverlayCoinConverter responsible for generating (calculating) the information of a full geometry layer overlay using the overlay and drawing parameters. More... | |
Class for creating the Overlay information layer.
Responsibility: To create and update the SoGroup provided as a constructor parameter, taking into account the drawing and overlay parameters provided as constructor parameters.
Interface: A single entry point convert(), performing the following flow:
[Geometry] => Calculate => addUpdateNode
Calculate is responsible for generating information directly usable by Coin (but with standard types that would enable portability) in a predetermined internal Node structure format (e.g. StringNode, PolygonNode) that can generically be used by the addUpdateNode.
addUpdateNode is responsible for creating or updating the node structure (depending on overlayParameters.rebuildInformationLayer)
Supported: Currently it only supports information of Part::Geometry objects and implements calculations only for GeomBSplineCurve.
Caveats:
EditModeInformationOverlayCoinConverter::EditModeInformationOverlayCoinConverter | ( | SoGroup * | infogroup, |
OverlayParameters & | overlayparameters, | ||
DrawingParameters & | drawingparameters | ||
) |
Constructs an InformationOverlayCoinConverter responsible for generating (calculating) the information of a full geometry layer overlay using the overlay and drawing parameters.
infogroup | The SoGroup to be populated with the coin nodes generated from the calculated information. |
overlayparameters | Parameters for controlling the overlay |
drawingparameters | Parameters for drawing the overlay information |
void EditModeInformationOverlayCoinConverter::convert | ( | const Part::Geometry * | geometry, |
int | geoid | ||
) |
extracts information from the geometry and converts it into an information overlay in the SoGroup provided in the constructor.
geometry | the geometry to be processed |
References Base::Persistence::getClassTypeId().