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
53 bool load(OpenGLRenderer* renderer, OpenGLRenderObject::List* rol = nullptr);
54
60 QStringList getFileNames(const QString& base_dir) const;
61
66 void setFilepath(const QString& filepath);
67
72 void setOffset(const Vector3D& offset);
73
77 void reload();
78
83 bool isDirty() const;
84
89 void setDirty(bool flag);
90
96 static QString getLayerName(ELayer layer);
97
98 private:
100 struct Private;
102 Private* _p;
103};
104
105}// 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.
void clear()
Clears the content.
bool load(OpenGLRenderer *renderer, OpenGLRenderObject::List *rol=nullptr)
Loads the overlays into the given OpenGL renderer.
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.
QList< OpenGLRenderObject * > List
Type to hold a list of not-owned render objects.
Definition OpenGLRenderObject.h:24
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