Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::dxf::GraphicsScene Class Referencefinal

The GraphicsScene class is a custom QGraphicsScene for rendering DXF entities. More...

#include <GraphicsScene.h>

Inheritance diagram for sf::dxf::GraphicsScene:
Collaboration diagram for sf::dxf::GraphicsScene:

Public Member Functions

 GraphicsScene (QObject *parent=nullptr)
 Constructs a GraphicsScene object.
 
 ~GraphicsScene () override
 Destroys the GraphicsScene object.
 
void load (const LayerEntities &layer_entities, const Layers &layer_info, bool as_lines)
 Loads and draws DXF entities onto the scene.
 
void clearScene ()
 Clears all items from the scene.
 

Detailed Description

The GraphicsScene class is a custom QGraphicsScene for rendering DXF entities.

Constructor & Destructor Documentation

◆ GraphicsScene()

sf::dxf::GraphicsScene::GraphicsScene ( QObject *  parent = nullptr)
explicit

Constructs a GraphicsScene object.

Parameters
parentThe parent QObject.

◆ ~GraphicsScene()

sf::dxf::GraphicsScene::~GraphicsScene ( )
override

Destroys the GraphicsScene object.

Member Function Documentation

◆ clearScene()

void sf::dxf::GraphicsScene::clearScene ( )

Clears all items from the scene.

◆ load()

void sf::dxf::GraphicsScene::load ( const LayerEntities layer_entities,
const Layers layer_info,
bool  as_lines 
)

Loads and draws DXF entities onto the scene.

Parameters
layer_entitiesA map of entities organized by layer.
layer_infoA map containing information about each layer.
as_linesDraws entities as lines.

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