24 #ifndef _DAI_ENTITY_INSTANCE_H_
25 #define _DAI_ENTITY_INSTANCE_H_
61 Model* owningModel()
const;
84 virtual void setInverseCounterParts() {};
89 virtual void resetInverseCounterParts() {};
96 bool isInstanceOf(
const char *entityName)
const;
103 bool isInstanceOf(
const Entity *entityDef)
const;
110 bool isKindOf(
const char *entityName)
const;
117 bool isKindOf(
const Entity *entityDef)
const;
123 virtual Entity* getInstanceType()
const = 0;
129 virtual OdAnsiString typeName()
const = 0;
139 virtual OdRxValue getAttr(
const OdAnsiString &attrName)
const = 0;
147 virtual bool putAttr(
const OdAnsiString &explicitAttrName,
const OdRxValue &val) = 0;
154 virtual bool testAttr(
const OdAnsiString &attrName)
const = 0;
161 virtual bool testAttr(
const AttributePtr& attribute)
const;
168 virtual void unsetAttr(
const OdAnsiString &explicitAttrName) = 0;
182 virtual bool isPersistent()
const {
return m_id !=
NULL; }
190 virtual OdDbStub* id()
const {
return m_id; };
214 friend class ModelContents;
#define ODRX_DECLARE_MEMBERS(ClassName)
virtual void subViewportDraw(OdGiViewportDraw *vd) const
virtual bool subWorldDraw(OdGiWorldDraw *wd) const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdSmartPtr< Attribute > AttributePtr
OdSmartPtr< EntityInstance > EntityInstancePtr