OpenLexocad  28.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 
7 #include <memory>
8 
9 namespace OpenLxApp
10 {
11 class Element;
12 
20 class LX_OPENLXAPP_EXPORT ActiveScript
21 {
22 public:
23  ActiveScript(void);
25 
28  bool isDragAndDropped() 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
OpenLxApp
Definition: ActiveScript.h:10
OpenLxApp::ActiveScript::ActiveScript
ActiveScript(void)
Base::GlobalId
Definition: GlobalId.h:28
OpenLxApp::ActiveScript::getInsertionPoint
Geom::Pnt getInsertionPoint() const
OpenLxApp::Element
An element is a generalization of all components that make up an AEC product. Those elements can be l...
Definition: Element.h:30
GlobalId.h
OpenLxApp::ActiveScript
The 'ActiveScript' is the script that is currently been executed ( the script's 'main' function is ca...
Definition: ActiveScript.h:21
Geom::Pnt
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
Pnt.h
OpenLxApp::ActiveScript::getDroppedOnElement
std::shared_ptr< Element > getDroppedOnElement() const
OpenLxApp::ActiveScript::getFilePath
Base::String getFilePath() const
String.h
Base::String
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
OpenLxApp::ActiveScript::~ActiveScript
~ActiveScript(void)
OpenLxApp::ActiveScript::isDragAndDropped
bool isDragAndDropped() const
OpenLxApp::ActiveScript::getScriptId
Base::GlobalId getScriptId() const