Wrapper for drawing 2D overlays into the 3D space using specified offsets. Handles loading of multiple layers and configurable offsets and scaling.
More...
#include <GraphicOverlay.h>
|
| | GraphicOverlay () |
| | Constructor.
|
| |
| | ~GraphicOverlay () |
| | Destructor.
|
| |
| void | clear () |
| | Clears the content.
|
| |
| bool | load (OpenGLRenderer *renderer, OpenGLRenderObject::List *rol=nullptr) |
| | Loads the overlays into the given OpenGL renderer.
|
| |
| QStringList | getFileNames (const QString &base_dir) const |
| | Gets the filenames available located in the given directory.
|
| |
| void | setFilepath (const QString &filepath) |
| | Sets the filepath to the graphic file.
|
| |
| void | setOffset (const Vector3D &offset) |
| | Sets an offset to all layers.
|
| |
| void | reload () |
| | Reloads the DXF file.
|
| |
| bool | isDirty () const |
| | Returns true if the assign function was called.
|
| |
| void | setDirty (bool flag) |
| | Sets the dirty flag.
|
| |
Wrapper for drawing 2D overlays into the 3D space using specified offsets. Handles loading of multiple layers and configurable offsets and scaling.
◆ ELayer
Enumeration of layers which are available.
| Enumerator |
|---|
| layFIXTURE | Fixture for the object.
|
| layOBJECT | Object or part on top of the fixture.
|
| layTOOL | Optional tool.
|
| laySUB_TOOL | Optional sub tool moving along with an auxiliary axis.
|
| layCOUNT | Number of available layers.
|
◆ GraphicOverlay()
| sf::GraphicOverlay::GraphicOverlay |
( |
| ) |
|
◆ ~GraphicOverlay()
| sf::GraphicOverlay::~GraphicOverlay |
( |
| ) |
|
◆ clear()
| void sf::GraphicOverlay::clear |
( |
| ) |
|
◆ getFileNames()
| QStringList sf::GraphicOverlay::getFileNames |
( |
const QString & |
base_dir | ) |
const |
Gets the filenames available located in the given directory.
- Parameters
-
| base_dir | Directory to search for the files. |
- Returns
- List of available filenames.
◆ getLayerName()
| static QString sf::GraphicOverlay::getLayerName |
( |
ELayer |
layer | ) |
|
|
static |
Gets the name of the layer.
- Parameters
-
- Returns
- Layer name.
◆ isDirty()
| bool sf::GraphicOverlay::isDirty |
( |
| ) |
const |
Returns true if the assign function was called.
- Returns
- bool Dirty flag status.
◆ load()
Loads the overlays into the given OpenGL renderer.
- Parameters
-
| renderer | OpenGL renderer to use for loading. |
| rol | When given, the list is filled with the created objects. |
◆ reload()
| void sf::GraphicOverlay::reload |
( |
| ) |
|
◆ setDirty()
| void sf::GraphicOverlay::setDirty |
( |
bool |
flag | ) |
|
Sets the dirty flag.
- Parameters
-
◆ setFilepath()
| void sf::GraphicOverlay::setFilepath |
( |
const QString & |
filepath | ) |
|
Sets the filepath to the graphic file.
- Parameters
-
| filepath | Filepath to assign. |
◆ setOffset()
| void sf::GraphicOverlay::setOffset |
( |
const Vector3D & |
offset | ) |
|
Sets an offset to all layers.
- Parameters
-
| offset | Vector containing the offset. |
The documentation for this class was generated from the following file: