OpenLexocad  27.0
ActiveScript.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Base/GlobalId.h>
4 #include <Base/String.h>
5 #include <Geom/Pnt.h>
6 #include <OpenLxApp/Globals.h>
8 
9 namespace OpenLxApp
10 {
11 class Element;
12 
21 {
22 public:
23  ActiveScript(void);
24  ~ActiveScript(void);
25 
26  Base::String getFilePath() const;
27  Base::GlobalId getScriptId() const;
28  bool isDragAndDropped() const;
29  Geom::Pnt getInsertionPoint() const;
30  std::shared_ptr<Element> getDroppedOnElement() const;
31 
32 private:
33  Base::String _filePath = L"";
34  Base::GlobalId _scriptId = Base::GlobalId();
35  bool _isDragAndDropped = false;
36  Geom::Pnt _insertionPoint = Geom::Pnt(0, 0, 0);
37  std::shared_ptr<Element> _droppedOnElement;
38 };
39 
40 } // namespace OpenLxApp
An element is a generalization of all components that make up an AEC product. Those elements can be l...
Definition: Element.h:40
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:42
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
#define OPENLXAPP_EXPORT
Definition: OpenLxApp_defines.h:12
Definition: GlobalId.h:32
Definition: ActiveScript.h:9
The 'ActiveScript' is the script that is currently been executed ( the script's 'main' function is ca...
Definition: ActiveScript.h:20