====== DShape ====== **//Inherited from//** [[class::ditem|DItem]], **//Inherited by//** NULL **//Friend class//** NULL **//Description//** **//Members//** * friend [[dshape#dtblshape|DTblShape]] * friend [[dshape#dbody|DBody]] * SHAPE_TYPE [[dshape#d_eshapetype|d_eShapeType]] * TCursor [[dshape#d_cruppershapelinkhead|d_crUpperShapeLinkHead]] * TCursor [[dshape#d_cruppershapelinktail|d_crUpperShapeLinkTail]] * long [[dshape#d_cntuppershapelink|d_cntUpperShapeLink]] * TCursor [[dshape#d_crlowershapelinkhead|d_crLowerShapeLinkHead]] * TCursor [[dshape#d_crlowershapelinktail|d_crLowerShapeLinkTail]] * long [[dshape#d_cntlowershapelink|d_cntLowerShapeLink]] * TCursor [[dshape#d_crbodylinkhead|d_crBodyLinkHead]] * TCursor [[dshape#d_crbodylinktail|d_crBodyLinkTail]] * long [[dshape#d_cntbodylink|d_cntBodyLink]] * TCursor [[dshape#d_crelemhead|d_crElemHead]] * TCursor [[dshape#d_crelemtail|d_crElemTail]] * long [[dshape#d_cntelem|d_cntElem]] * COLORREF [[dshape#d_ccolor|d_cColor]] * COLORREF [[dshape#d_cmeshlinecolor|d_cMeshLineColor]] * vector [[dshape#m_roelemcrvec|m_ROElemCrVec]] **//Public interface//** * [[dshape#dshape1|DShape]](TKey tKey, TCursor cr) * [[dshape#d_cruppershapelinkhead|d_crUpperShapeLinkHead]](0), d_crUpperShapeLinkTail(0), d_cntUpperShapeLink(0), * [[dshape#d_crbodylinkhead|d_crBodyLinkHead]](0), d_crBodyLinkTail(0), d_cntBodyLink(0), * [[dshape#d_cmeshlinecolor|d_cMeshLineColor]](RGB(0,0,0)) * virtual [[dshape#~dshape|~DShape]]() * static const DShape* [[dshape#fromcursor|FromCursor]](TCursor cr) * SHAPE_TYPE [[dshape#getshapetype|GetShapeType]]() const * TCursor [[dshape#getheadbodyposition|GetHeadBodyPosition]]() const * TCursor [[dshape#gettailbodyposition|GetTailBodyPosition]]() const * TCursor [[dshape#getnextbodyposition|GetNextBodyPosition]](TCursor crPos) const * TCursor [[dshape#getprevbodyposition|GetPrevBodyPosition]](TCursor crPos) const * long [[dshape#getbodycount|GetBodyCount]]() const * const DBody* [[dshape#getnextbody|GetNextBody]](TCursor& crPos) const * const DBody* [[dshape#getprevbody|GetPrevBody]](TCursor& crPos) const * const DBody* [[dshape#getbodyat|GetBodyAt]](TCursor crPos) const * TCursor [[dshape#findbodylink|FindBodyLink]](const DBody* pBody) const * TCursor [[dshape#getheadelemposition|GetHeadElemPosition]]() const * TCursor [[dshape#gettailelemposition|GetTailElemPosition]]() const * const DElem* [[dshape#getnextelem|GetNextElem]](TCursor& crPos) const * const DElem* [[dshape#getprevelem|GetPrevElem]](TCursor& crPos) const * const DElem* [[dshape#getelemat|GetElemAt]](TCursor crPos) const * long [[dshape#getelemcount|GetElemCount]]() const * bool [[dshape#haselem|HasElem]](const DElem* pElem) const * void [[dshape#attachelem|AttachElem]](CDBSession* pDBSession, const DElem* pElem, const DElem* pElemBefore = NULL) * void [[dshape#detachelem|DetachElem]](CDBSession* pDBSession, const DElem* pElem) * TCursor [[dshape#getheaduppershapelink|GetHeadUpperShapeLink]]() const * TCursor [[dshape#gettailuppershapelink|GetTailUpperShapeLink]]() const * TCursor [[dshape#getnextuppershapelink|GetNextUpperShapeLink]](TCursor crShapeLink) const * TCursor [[dshape#getprevuppershapelink|GetPrevUpperShapeLink]](TCursor crShapeLink) const * long [[dshape#getuppershapecount|GetUpperShapeCount]]() const * const DShape* [[dshape#getnextuppershape|GetNextUpperShape]](TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const * const DShape* [[dshape#getprevuppershape|GetPrevUpperShape]](TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const * const DShape* [[dshape#getuppershapeat|GetUpperShapeAt]](TCursor crShapeLink, SHAPE_ORIENTATION& eOrientation) const * TCursor [[dshape#finduppershapelink|FindUpperShapeLink]](const DShape* ShapeUpper) const * TCursor [[dshape#getheadlowershapelink|GetHeadLowerShapeLink]]() const * TCursor [[dshape#gettaillowershapelink|GetTailLowerShapeLink]]() const * TCursor [[dshape#getnextlowershapelink|GetNextLowerShapeLink]](TCursor crShapeLink) const * TCursor [[dshape#getprevlowershapelink|GetPrevLowerShapeLink]](TCursor crShapeLink) const * long [[dshape#getlowershapecount|GetLowerShapeCount]]() const * const DShape* [[dshape#getnextlowershape|GetNextLowerShape]](TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const * const DShape* [[dshape#getprevlowershape|GetPrevLowerShape]](TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const * const DShape* [[dshape#getlowershapeat|GetLowerShapeAt]](TCursor crShapeLink, SHAPE_ORIENTATION& eOrientation) const * TCursor [[dshape#findlowershapelink|FindLowerShapeLink]](const DShape* ShapeUpper) const * TCursor [[dshape#attachlowershape|AttachLowerShape]](CDBSession* pDBSession, const DShape* pLowerShape, SHAPE_ORIENTATION eOrientation, TCursor crShapeLinkBefore = NULL) * void [[dshape#detachlowershape|DetachLowerShape]](CDBSession* pDBSession, TCursor crShapeLink) * COLORREF [[dshape#getcolor|GetColor]]() const * void [[dshape#setcolor|SetColor]](COLORREF col) * void [[dshape#setcolor|SetColor]](float col[3]) * COLORREF [[dshape#getmeshlinecolor|GetMeshLineColor]]() const * void [[dshape#setmeshlinecolor|SetMeshLineColor]](COLORREF colBody) * void [[dshape#setmeshlinecolor|SetMeshLineColor]](float colBody[3]) * void [[dshape#setroelemcursors|SetROElemCursors]](CDBSession* pDBSession, const vector &vec) * vector [[dshape#getroelemcursors|GetROElemCursors]]() const **//Protected interface//** * virtual void [[dshape#txdataexchange|TxDataExchange]](CTxStream* pStream, CDBSession* pDBSession) ---- {{anchor:dtblshape}} **friend DTblShape** {{anchor:dbody}} **friend DBody** {{anchor:d_eshapetype}} **SHAPE_TYPE d_eShapeType** {{anchor:d_cruppershapelinkhead}} **TCursor d_crUpperShapeLinkHead** {{anchor:d_cruppershapelinktail}} **TCursor d_crUpperShapeLinkTail** {{anchor:d_cntuppershapelink}} **long d_cntUpperShapeLink** {{anchor:d_crlowershapelinkhead}} **TCursor d_crLowerShapeLinkHead** {{anchor:d_crlowershapelinktail}} **TCursor d_crLowerShapeLinkTail** {{anchor:d_cntlowershapelink}} **long d_cntLowerShapeLink** {{anchor:d_crbodylinkhead}} **TCursor d_crBodyLinkHead** {{anchor:d_crbodylinktail}} **TCursor d_crBodyLinkTail** {{anchor:d_cntbodylink}} **long d_cntBodyLink** {{anchor:d_crelemhead}} **TCursor d_crElemHead** {{anchor:d_crelemtail}} **TCursor d_crElemTail** {{anchor:d_cntelem}} **long d_cntElem** {{anchor:d_ccolor}} **COLORREF d_cColor** {{anchor:d_cmeshlinecolor}} **COLORREF d_cMeshLineColor** {{anchor:m_roelemcrvec}} **vector m_ROElemCrVec** ---- {{anchor:dshape1}} **DShape(TKey tKey, TCursor cr)** *function: *parameters: - [i] TKey tKey: - [i] TCursor cr: *return value: {{anchor:d_cruppershapelinkhead}} **d_crUpperShapeLinkHead(0), d_crUpperShapeLinkTail(0), d_cntUpperShapeLink(0),** *function: *parameters: - [i] 0): - [i] d_crUpperShapeLinkTail(0): - [i] d_cntUpperShapeLink(0): - [i] : *return value: {{anchor:d_crbodylinkhead}} **d_crBodyLinkHead(0), d_crBodyLinkTail(0), d_cntBodyLink(0),** *function: *parameters: - [i] 0): - [i] d_crBodyLinkTail(0): - [i] d_cntBodyLink(0): - [i] : *return value: {{anchor:d_cmeshlinecolor}} **d_cMeshLineColor(RGB(0,0,0))** *function: *parameters: - [i] RGB(0: - [i] 0: - [i] 0: *return value: {{anchor:~dshape}} **virtual ~DShape()** *function: *parameters: NULL *return value: {{anchor:fromcursor}} **static const DShape* FromCursor(TCursor cr)** *function: *parameters: - [i] TCursor cr: *return value: {{anchor:getshapetype}} **SHAPE_TYPE GetShapeType() const** *function: *parameters: NULL *return value: {{anchor:getheadbodyposition}} **TCursor GetHeadBodyPosition() const** *function: *parameters: NULL *return value: {{anchor:gettailbodyposition}} **TCursor GetTailBodyPosition() const** *function: *parameters: NULL *return value: {{anchor:getnextbodyposition}} **TCursor GetNextBodyPosition(TCursor crPos) const** *function: *parameters: - [i] TCursor crPos: *return value: {{anchor:getprevbodyposition}} **TCursor GetPrevBodyPosition(TCursor crPos) const** *function: *parameters: - [i] TCursor crPos: *return value: {{anchor:getbodycount}} **long GetBodyCount() const** *function: *parameters: NULL *return value: {{anchor:getnextbody}} **const DBody* GetNextBody(TCursor& crPos) const** *function: *parameters: - [i] TCursor& crPos: *return value: {{anchor:getprevbody}} **const DBody* GetPrevBody(TCursor& crPos) const** *function: *parameters: - [i] TCursor& crPos: *return value: {{anchor:getbodyat}} **const DBody* GetBodyAt(TCursor crPos) const** *function: *parameters: - [i] TCursor crPos: *return value: {{anchor:findbodylink}} **TCursor FindBodyLink(const DBody* pBody) const** *function: *parameters: - [i] const DBody* pBody: *return value: {{anchor:getheadelemposition}} **TCursor GetHeadElemPosition() const** *function: *parameters: NULL *return value: {{anchor:gettailelemposition}} **TCursor GetTailElemPosition() const** *function: *parameters: NULL *return value: {{anchor:getnextelem}} **const DElem* GetNextElem(TCursor& crPos) const** *function: *parameters: - [i] TCursor& crPos: *return value: {{anchor:getprevelem}} **const DElem* GetPrevElem(TCursor& crPos) const** *function: *parameters: - [i] TCursor& crPos: *return value: {{anchor:getelemat}} **const DElem* GetElemAt(TCursor crPos) const** *function: *parameters: - [i] TCursor crPos: *return value: {{anchor:getelemcount}} **long GetElemCount() const** *function: *parameters: NULL *return value: {{anchor:haselem}} **bool HasElem(const DElem* pElem) const** *function: *parameters: - [i] const DElem* pElem: *return value: {{anchor:attachelem}} **void AttachElem(CDBSession* pDBSession, const DElem* pElem, const DElem* pElemBefore = NULL)** *function: *parameters: - [i] CDBSession* pDBSession: - [i] const DElem* pElem: - [i] const DElem* pElemBefore = NULL: *return value: {{anchor:detachelem}} **void DetachElem(CDBSession* pDBSession, const DElem* pElem)** *function: *parameters: - [i] CDBSession* pDBSession: - [i] const DElem* pElem: *return value: {{anchor:getheaduppershapelink}} **TCursor GetHeadUpperShapeLink() const** *function: *parameters: NULL *return value: {{anchor:gettailuppershapelink}} **TCursor GetTailUpperShapeLink() const** *function: *parameters: NULL *return value: {{anchor:getnextuppershapelink}} **TCursor GetNextUpperShapeLink(TCursor crShapeLink) const** *function: *parameters: - [i] TCursor crShapeLink: *return value: {{anchor:getprevuppershapelink}} **TCursor GetPrevUpperShapeLink(TCursor crShapeLink) const** *function: *parameters: - [i] TCursor crShapeLink: *return value: {{anchor:getuppershapecount}} **long GetUpperShapeCount() const** *function: *parameters: NULL *return value: {{anchor:getnextuppershape}} **const DShape* GetNextUpperShape(TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const** *function: *parameters: - [i] TCursor& crShapeLink: - [i] SHAPE_ORIENTATION& eOrientation: *return value: {{anchor:getprevuppershape}} **const DShape* GetPrevUpperShape(TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const** *function: *parameters: - [i] TCursor& crShapeLink: - [i] SHAPE_ORIENTATION& eOrientation: *return value: {{anchor:getuppershapeat}} **const DShape* GetUpperShapeAt(TCursor crShapeLink, SHAPE_ORIENTATION& eOrientation) const** *function: *parameters: - [i] TCursor crShapeLink: - [i] SHAPE_ORIENTATION& eOrientation: *return value: {{anchor:finduppershapelink}} **TCursor FindUpperShapeLink(const DShape* ShapeUpper) const** *function: *parameters: - [i] const DShape* ShapeUpper: *return value: {{anchor:getheadlowershapelink}} **TCursor GetHeadLowerShapeLink() const** *function: *parameters: NULL *return value: {{anchor:gettaillowershapelink}} **TCursor GetTailLowerShapeLink() const** *function: *parameters: NULL *return value: {{anchor:getnextlowershapelink}} **TCursor GetNextLowerShapeLink(TCursor crShapeLink) const** *function: *parameters: - [i] TCursor crShapeLink: *return value: {{anchor:getprevlowershapelink}} **TCursor GetPrevLowerShapeLink(TCursor crShapeLink) const** *function: *parameters: - [i] TCursor crShapeLink: *return value: {{anchor:getlowershapecount}} **long GetLowerShapeCount() const** *function: *parameters: NULL *return value: {{anchor:getnextlowershape}} **const DShape* GetNextLowerShape(TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const** *function: *parameters: - [i] TCursor& crShapeLink: - [i] SHAPE_ORIENTATION& eOrientation: *return value: {{anchor:getprevlowershape}} **const DShape* GetPrevLowerShape(TCursor& crShapeLink, SHAPE_ORIENTATION& eOrientation) const** *function: *parameters: - [i] TCursor& crShapeLink: - [i] SHAPE_ORIENTATION& eOrientation: *return value: {{anchor:getlowershapeat}} **const DShape* GetLowerShapeAt(TCursor crShapeLink, SHAPE_ORIENTATION& eOrientation) const** *function: *parameters: - [i] TCursor crShapeLink: - [i] SHAPE_ORIENTATION& eOrientation: *return value: {{anchor:findlowershapelink}} **TCursor FindLowerShapeLink(const DShape* ShapeUpper) const** *function: *parameters: - [i] const DShape* ShapeUpper: *return value: {{anchor:attachlowershape}} **TCursor AttachLowerShape(CDBSession* pDBSession, const DShape* pLowerShape, SHAPE_ORIENTATION eOrientation, TCursor crShapeLinkBefore = NULL)** *function: *parameters: - [i] CDBSession* pDBSession: - [i] const DShape* pLowerShape: - [i] SHAPE_ORIENTATION eOrientation: - [i] TCursor crShapeLinkBefore = NULL: *return value: {{anchor:detachlowershape}} **void DetachLowerShape(CDBSession* pDBSession, TCursor crShapeLink)** *function: *parameters: - [i] CDBSession* pDBSession: - [i] TCursor crShapeLink: *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:getmeshlinecolor}} **COLORREF GetMeshLineColor() const** *function: *parameters: NULL *return value: {{anchor:setmeshlinecolor}} **void SetMeshLineColor(COLORREF colBody)** *function: *parameters: - [i] COLORREF colBody: *return value: {{anchor:setmeshlinecolor}} **void SetMeshLineColor(float colBody[3])** *function: *parameters: - [i] float colBody[3]: *return value: {{anchor:setroelemcursors}} **void SetROElemCursors(CDBSession* pDBSession, const vector &vec)** *function: *parameters: - [i] CDBSession* pDBSession: - [i] const vector &vec: *return value: {{anchor:getroelemcursors}} **vector GetROElemCursors() 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: