27 #define DtLineWidthFromAppearance(theAppr) ((theAppr >> 28) & 0x0000000F)
28 #define DtLineWidthToAppearance(theLineWidth) (theLineWidth << 28)
29 #define DtPenStyleFromAppearance(theAppr) ((theAppr >> 8) & 0x0000000F)
30 #define DtPenStyleToAppearance(theLineStyle) (theLineStyle << 8)
31 #define DtFillStyleFromAppearance(theAppr) ((theAppr >> 12) & 0x0000000F)
32 #define DtFillStyleToAppearance(theFillStyle) (theFillStyle << 12)
36 const std::string& label =
"",
int color = 0,
const std::string& overlayParent =
"",
37 bool projected =
false,
bool closed =
false,
int appearance = 0,
38 const std::string& attachedTo =
"",
const std::string& userData =
"",
43 , myOverlayParent(overlayParent)
44 , myIsProjected(projected)
45 , myIsClosedFigure(closed)
46 , myAppearance(appearance)
47 , myAttachedTo(attachedTo)
48 , myUserData(userData)
55 , myLabel(orig.myLabel)
56 , myColor(orig.myColor)
57 , myOverlayParent(orig.myOverlayParent)
58 , myIsProjected(orig.myIsProjected)
59 , myIsClosedFigure(orig.myIsClosedFigure)
60 , myAppearance(orig.myAppearance)
61 , myAttachedTo(orig.myAttachedTo)
62 , myUserData(orig.myUserData)
63 , myRequestId(orig.myRequestId)
67 void setName(
const std::string& n)
72 const std::string& name()
const
77 void setLabel(
const std::string& l)
82 const std::string& label()
const
97 void setOverlayParent(
const std::string& s)
102 const std::string& overlayParent()
const
104 return myOverlayParent;
107 void setIsProjected(
bool b)
112 bool isProjected()
const
114 return myIsProjected;
117 void setIsClosedFigure(
bool b)
119 myIsClosedFigure = b;
122 bool isClosedFigure()
const
124 return myIsClosedFigure;
127 void setAppearance(
int i)
132 int appearance()
const
137 void setAttachedTo(
const std::string& a)
142 const std::string& attachedTo()
const
147 void setUserData(
const std::string& u)
152 const std::string& userData()
const
157 void setRequestId(
unsigned int id)
162 int requestId()
const
167 int rawAppearance()
const
175 void setPenStyle(
int i)
177 myAppearance = (rawAppearance() & 0xFFFFF0FF) | (i << 8);
182 int appearance = rawAppearance();
187 void setFillStyle(
int i)
189 myAppearance = (rawAppearance() & 0xFFFF0FFF) | (i << 12);
192 int fillStyle()
const
194 int appearance = rawAppearance();
199 void setLineWidth(
int i)
201 myAppearance = appearance() | (i << 28);
204 int lineWidth()
const