18#ifndef BIMHOMEAPP_APP_DOCUMENTOBJECTOBSERVERDELEGATE_H
19#define BIMHOMEAPP_APP_DOCUMENTOBJECTOBSERVERDELEGATE_H
22#include "boost/any.hpp"
26 class IDocumentObject;
App::IDocumentObject * getDocumentObject()
获取文档对象
Definition DocumentObjectObserverDelegate.h:89
virtual void documentObjectIsBeingDestructed()
文档对象即将析构时回调
Definition DocumentObjectObserverDelegate.h:47
virtual ~DocumentObjectObserverDelegate()
Definition DocumentObjectObserverDelegate.h:36
virtual std::string delegateName()=0
获取代理名称
double anyToDouble(const boost::any &value)
将 any 类型转换为 double
App::IDocumentObject * m_pDocObj
当前关联的文档对象指针
Definition DocumentObjectObserverDelegate.h:148
bool anyToBool(const boost::any &value)
将 any 类型转换为 bool
boost::any getDynamicPoperty(const char *name) const
获取动态属性
virtual void documentObjectOnChange(const std::string &sPropName, const boost::any &sPropValue)
文档对象属性改变时调用
Definition DocumentObjectObserverDelegate.h:55
void addDynamicProperty(const char *type, const char *name, const boost::any &value)
添加动态属性
void setDocumentObject(App::IDocumentObject *pDocObj)
设置文档对象
Definition DocumentObjectObserverDelegate.h:74
bool hasDynamicPropertyByGivingName(const char *name) const
检查是否存在指定名称的动态属性
virtual void documentObjectExecute()
文档对象执行时调用
Definition DocumentObjectObserverDelegate.h:61
virtual void documentObjectCreating()
文档对象开始创建时回调
Definition DocumentObjectObserverDelegate.h:41
virtual std::string getViewProviderDelegateName()
获取视图提供者代理名称
Definition DocumentObjectObserverDelegate.h:96
DocumentObjectObserverDelegate()
Definition DocumentObjectObserverDelegate.h:35
virtual const char * getViewProviderName() const
获取视图提供者名称
Definition DocumentObjectObserverDelegate.h:68
std::string anyToString(const boost::any &value)
将 any 类型转换为 string
文档对象观察者代理基类
Definition DocumentObjectObserverDelegate.h:33
Definition IDocumentObject.h:35
Definition BaseFigureFactory.h:28