OpenLexocad  27.1
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 
7 namespace OpenLxApp
8 {
9 class Element;
10 
18 class LX_OPENLXAPP_EXPORT ActiveScript
19 {
20 public:
21  ActiveScript(void);
22  ~ActiveScript(void);
23 
24  Base::String getFilePath() const;
25  Base::GlobalId getScriptId() const;
26  bool isDragAndDropped() const;
27  Geom::Pnt getInsertionPoint() const;
28  std::shared_ptr<Element> getDroppedOnElement() const;
29 
30 private:
31  Base::String _filePath = L"";
32  Base::GlobalId _scriptId = Base::GlobalId();
33  bool _isDragAndDropped = false;
34  Geom::Pnt _insertionPoint = Geom::Pnt(0, 0, 0);
35  std::shared_ptr<Element> _droppedOnElement;
36 };
37 
38 } // namespace OpenLxApp
An element is a generalization of all components that make up an AEC product. Those elements can be l...
Definition: Element.h:29
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
Definition: GlobalId.h:29
Definition: ActiveScript.h:7
The 'ActiveScript' is the script that is currently been executed ( the script's 'main' function is ca...
Definition: ActiveScript.h:18