#include <sgline2.h>
Inheritance diagram for LineCapItem:
Public Member Functions | |
LineCapItem (LineCapType nCapType, const String &strDescription) | |
Constructs an line-cap user-interface item. | |
Private Member Functions | |
virtual void | SetAttributes (RenderRegion *pRegion) const |
Sets the line-cap attributes in the given render-region to render this item correctly. | |
virtual NodeAttribute * | CreateNewAttribute (BOOL fIsAdjust) const |
A pointer to a NodeAttribute-derivative that this user-interface item represents, ie. a line-cap attribute that can be passed to the attribute manager. | |
virtual CCRuntimeClass ** | GetAttribRuntimeClasses () const |
Used when searching for display items representing the selection's current attributes. | |
virtual BOOL | IsEqualValueToAny (NodeAttribute **pOtherAttribs) const |
Used when searching for display items representing the selection's current attributes. | |
Private Attributes | |
LineCapType | m_nCapType |
Definition at line 295 of file sgline2.h.
|
Constructs an line-cap user-interface item.
Definition at line 994 of file sgline2.cpp. 00995 : LineAttrItem(strDescription, NO_LABEL), 00996 m_nCapType(nCapType) 00997 { 00998 // Empty. 00999 }
|
|
A pointer to a NodeAttribute-derivative that this user-interface item represents, ie. a line-cap attribute that can be passed to the attribute manager.
Implements LineAttrItem. Definition at line 1043 of file sgline2.cpp. 01044 { 01045 AttrStartCap* pAttr = new AttrStartCap; 01046 if (pAttr != NULL) pAttr->Value.StartCap = m_nCapType; 01047 return pAttr; 01048 }
|
|
Used when searching for display items representing the selection's current attributes.
Implements LineAttrItem. Definition at line 1068 of file sgline2.cpp. 01069 { 01070 static CCRuntimeClass* aprtc[] = 01071 { 01072 CC_RUNTIME_CLASS(AttrStartCap), 01073 NULL 01074 }; 01075 01076 return aprtc; 01077 }
|
|
Used when searching for display items representing the selection's current attributes.
Implements LineAttrItem. Definition at line 1096 of file sgline2.cpp. 01097 { 01098 AttrStartCap* pattr = (AttrStartCap*) *ppOtherAttribs; 01099 return pattr != NULL && pattr->Value.StartCap == m_nCapType; 01100 }
|
|
Sets the line-cap attributes in the given render-region to render this item correctly.
Implements LineAttrItem. Definition at line 1017 of file sgline2.cpp. 01018 { 01019 // Call the SetStartCap function (there are no 'end' caps) and make lines thick. 01020 StartCapAttribute* pAttr = new StartCapAttribute; 01021 pAttr->StartCap = m_nCapType; 01022 pRegion->SetStartCap(pAttr, TRUE); 01023 pRegion->SetLineWidth(c_nHorzSizeOfItem / 2); 01024 }
|
|
|