====== DElem ====== **//Inherited from//** [[class::ditem|DItem]], **//Inherited by//** NULL **//Friend class//** DShape, **//Description//** **//Members//** * ELEM_TYPE [[delem#d_etype|d_eType]] * TCursor [[delem#d_crshape|d_crShape]] * TArray [[delem#d_acrnode|d_acrNode]] * TCursor [[delem#d_crnextelem|d_crNextElem]] * TCursor [[delem#d_crprevelem|d_crPrevElem]] * COLORREF [[delem#d_ccolor|d_cColor]] * BYTE [[delem#d_postflags|d_postFlags]] **//Public interface//** * [[delem#delem1|DElem]](TKey tKey, TCursor cr) * virtual [[delem#~delem|~DElem]]() * TCursor [[delem#getshape|GetShape]]() const * ELEM_TYPE [[delem#getelemtype|GetElemType]]() const * void [[delem#setelemtype|SetElemType]](ELEM_TYPE eType) * TCursor [[delem#getnode|GetNode]](int idx) const * int [[delem#getnodecount|GetNodeCount]]() const * const TArray* [[delem#getnodes|GetNodes]]() const * void [[delem#setnodes|SetNodes]](CDBSession* pDBSession, int nCnt, const TCursor* aNode) * COLORREF [[delem#getcolor|GetColor]]() const * void [[delem#setcolor|SetColor]](COLORREF col) * void [[delem#setcolor|SetColor]](float col[3]) * void [[delem#settopologyeleminitializedflag|SetTopologyElemInitializedFlag]](bool flag) * void [[delem#setisnontopologyelemflag|SetIsNonTopologyElemFlag]](bool flag) * bool [[delem#gettopologyeleminitializedflag|GetTopologyElemInitializedFlag]]() const * bool [[delem#getisnontopologyelemflag|GetIsNonTopologyElemFlag]]() const * void [[delem#setpostflags|SetPostFlags]](BYTE flags) * BYTE [[delem#getpostflags|GetPostFlags]]() const **//Protected interface//** * virtual void [[delem#txdataexchange|TxDataExchange]](CTxStream* pStream, CDBSession* pDBSession) **//Private interface//** * [[delem#db_declare_ditem|DB_DECLARE_DITEM]](DElem) ---- {{anchor:d_etype}} **ELEM_TYPE d_eType** {{anchor:d_crshape}} **TCursor d_crShape** {{anchor:d_acrnode}} **TArray d_acrNode** {{anchor:d_crnextelem}} **TCursor d_crNextElem** {{anchor:d_crprevelem}} **TCursor d_crPrevElem** {{anchor:d_ccolor}} **COLORREF d_cColor** {{anchor:d_postflags}} **BYTE d_postFlags** ---- {{anchor:delem1}} **DElem(TKey tKey, TCursor cr)** *function: *parameters: - [i] TKey tKey: - [i] TCursor cr: *return value: {{anchor:~delem}} **virtual ~DElem()** *function: *parameters: NULL *return value: {{anchor:getshape}} **TCursor GetShape() const** *function: *parameters: NULL *return value: {{anchor:getelemtype}} **ELEM_TYPE GetElemType() const** *function: *parameters: NULL *return value: {{anchor:setelemtype}} **void SetElemType(ELEM_TYPE eType)** *function: *parameters: - [i] ELEM_TYPE eType: *return value: {{anchor:getnode}} **TCursor GetNode(int idx) const** *function: *parameters: - [i] int idx: *return value: {{anchor:getnodecount}} **int GetNodeCount() const** *function: *parameters: NULL *return value: {{anchor:getnodes}} **const TArray* GetNodes() const** *function: *parameters: NULL *return value: {{anchor:setnodes}} **void SetNodes(CDBSession* pDBSession, int nCnt, const TCursor* aNode)** *function: *parameters: - [i] CDBSession* pDBSession: - [i] int nCnt: - [i] const TCursor* aNode: *return value: {{anchor:getcolor}} **COLORREF GetColor() const** *function: *parameters: NULL *return value: {{anchor:setcolor}} **void SetColor(COLORREF col)** *function: *parameters: - [i] COLORREF col: *return value: {{anchor:setcolor}} **void SetColor(float col[3])** *function: *parameters: - [i] float col[3]: *return value: {{anchor:settopologyeleminitializedflag}} **void SetTopologyElemInitializedFlag(bool flag)** *function: *parameters: - [i] bool flag: *return value: {{anchor:setisnontopologyelemflag}} **void SetIsNonTopologyElemFlag(bool flag)** *function: *parameters: - [i] bool flag: *return value: {{anchor:gettopologyeleminitializedflag}} **bool GetTopologyElemInitializedFlag() const** *function: *parameters: NULL *return value: {{anchor:getisnontopologyelemflag}} **bool GetIsNonTopologyElemFlag() const** *function: *parameters: NULL *return value: {{anchor:setpostflags}} **void SetPostFlags(BYTE flags)** *function: *parameters: - [i] BYTE flags: *return value: {{anchor:getpostflags}} **BYTE GetPostFlags() const** *function: *parameters: NULL *return value: ---- {{anchor:txdataexchange}} **virtual void TxDataExchange(CTxStream* pStream, CDBSession* pDBSession)** *function: *parameters: - [i] CTxStream* pStream: - [i] CDBSession* pDBSession: *return value: ---- {{anchor:db_declare_ditem}} **DB_DECLARE_DITEM(DElem)** *function: *parameters: - [i] DElem: *return value: