Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
GraphicOverlay.h
Go to the documentation of this file.
1#pragma once
2#include <ipj/iface/global.h>
3#include <math/Types.h>
5
6namespace sf
7{
8
14{
15 public:
20
25
29 void clear();
30
34 enum ELayer : int
35 {
37 layFIXTURE = 0,
45 layCOUNT
46 };
47
51 bool load(OpenGLRenderer* renderer);
52
58 QStringList getFileNames(const QString& base_dir) const;
59
64 void setFilepath(const QString& filepath);
65
70 void setOffset(const Vector3D& offset);
71
75 void reload();
76
81 bool isDirty() const;
82
87 void setDirty(bool flag);
88
94 static QString getLayerName(ELayer layer);
95
96 private:
98 struct Private;
100 Private* _p;
101};
102
103}// namespace sf
Wrapper for drawing 2D overlays into the 3D space using specified offsets. Handles loading of multipl...
Definition GraphicOverlay.h:14
void reload()
Reloads the DXF file.
QStringList getFileNames(const QString &base_dir) const
Gets the filenames available located in the given directory.
bool load(OpenGLRenderer *renderer)
Loads the overlays into the given OpenGL widget.
void clear()
Clears the content.
GraphicOverlay()
Constructor.
static QString getLayerName(ELayer layer)
Gets the name of the layer.
void setDirty(bool flag)
Sets the dirty flag.
~GraphicOverlay()
Destructor.
void setOffset(const Vector3D &offset)
Sets an offset to all layers.
ELayer
Enumeration of layers which are available.
Definition GraphicOverlay.h:35
@ laySUB_TOOL
Optional sub tool moving along with an auxiliary axis.
Definition GraphicOverlay.h:43
@ layTOOL
Optional tool.
Definition GraphicOverlay.h:41
@ layOBJECT
Object or part on top of the fixture.
Definition GraphicOverlay.h:39
void setFilepath(const QString &filepath)
Sets the filepath to the graphic file.
bool isDirty() const
Returns true if the assign function was called.
Pure virtual class to implement rendering separated from the widget and makes the sf::OpenGLWidget th...
Definition OpenGLRenderer.h:13
#define _IPJ_CLASS
Definition ipj/iface/global.h:35
Definition Application.h:10