BIMHome v1.0.0
BIMHome接口文档说明
ISelectionChange.h
浏览该文件的文档.
1/************************************************************************
2* @file ISelectionChanges.h
3*
4* @brief 对象选择数据类
5*
6* @details 对象选择数据类
7*
8* @author dixu
9*
10* @version 1.0
11*
12* @date 2014-9-18
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17
18#ifndef BIMHOMEGUI_GUI_ISELECTION_CHANGE_H
19#define BIMHOMEGUI_GUI_ISELECTION_CHANGE_H
20
21#include "BHGlobal.h"
22#include <string>
23
24namespace Gui
25{
26 class GuiExport ISelectionChanges
27 {
28 public:
46 {
59 };
60
68 enum class MsgSource
69 {
70 Any = 0,
71 Internal = 1,
72 TreeView = 2
73 };
74
88 ISelectionChanges(MsgType type = ClrSelection,
89 const char* docName = nullptr, int objId = -1,
90 const char* subName = nullptr, const char* typeName = nullptr,
91 float x = 0, float y = 0, float z = 0,
92 MsgSource subtype = MsgSource::Any);
93
108 const std::string& docName,
109 const int& objId,
110 const std::string& subName,
111 const std::string& typeName = std::string(),
112 float x = 0, float y = 0, float z = 0,
113 MsgSource subtype = MsgSource::Any);
114
121
129
136
144
151
158
164 const char* getDocName()const;
165
171 int getObjectId()const;
172
178 const char* getSubName()const;
179
185 const char* getTypeName()const;
186
192 float getX()const;
193
199 float getY()const;
200
206 float getZ()const;
207
214 };
215
216} //namespace Gui
217
218#endif // GUI_SELECTION_H
const char * getSubName() const
获取选择子元素名称
float getY() const
获取鼠标点击点x坐标
const ISelectionChanges * getOrighinalMsg() const
获取上次选中事件
ISelectionChanges(MsgType type=ClrSelection, const char *docName=nullptr, int objId=-1, const char *subName=nullptr, const char *typeName=nullptr, float x=0, float y=0, float z=0, MsgSource subtype=MsgSource::Any)
构造函数
MsgSource getSubType() const
获取消息来源
float getX() const
获取鼠标点击点x坐标
ISelectionChanges(const ISelectionChanges &other)
拷贝构造函数
ISelectionChanges & operator=(const ISelectionChanges &other)
赋值运算符
MsgType
标识与选择操作相关的消息
Definition ISelectionChange.h:46
@ ClrSelection
Definition ISelectionChange.h:50
@ RmvPreselectSignal
Definition ISelectionChange.h:57
@ RmvSelection
Definition ISelectionChange.h:48
@ SetPreselect
Definition ISelectionChange.h:51
@ AddSelection
Definition ISelectionChange.h:47
@ MovePreselect
Definition ISelectionChange.h:58
@ ShowSelection
Definition ISelectionChange.h:55
@ HideSelection
Definition ISelectionChange.h:56
@ SetSelection
Definition ISelectionChange.h:49
@ RmvPreselect
Definition ISelectionChange.h:52
@ SetPreselectSignal
Definition ISelectionChange.h:53
@ PickedListChanged
Definition ISelectionChange.h:54
float getZ() const
获取鼠标点击点x坐标
MsgType getMsgType() const
获取消息类型
int getObjectId() const
获取对象Id
ISelectionChanges(ISelectionChanges &&other)
移动构造函数
const char * getDocName() const
获取文档名
MsgSource
标识消息来源
Definition ISelectionChange.h:69
ISelectionChanges & operator=(ISelectionChanges &&other)
移动赋值运算符
const char * getTypeName() const
获取选择对象类型名称
ISelectionChanges(MsgType type, const std::string &docName, const int &objId, const std::string &subName, const std::string &typeName=std::string(), float x=0, float y=0, float z=0, MsgSource subtype=MsgSource::Any)
构造函数
Definition ISelectionChange.h:27
Definition GuiDocObserverDelegate.h:33