@@ -211,7 +211,8 @@ namespace dxfv
211
211
212
212
// / default contructor
213
213
cDXFGraphObject ()
214
- : myColor(0x808080 ), myThick( 1 ), myLayer(" 0" )
214
+ : myColor(0x808080 ), myThick(1 ), myLayer(" 0" ),
215
+ myPenThickOverride (0 )
215
216
{
216
217
}
217
218
@@ -267,7 +268,7 @@ namespace dxfv
267
268
268
269
protected:
269
270
std::string myCode;
270
-
271
+ int myPenThickOverride;
271
272
272
273
/* @brief Convert autocad color code to RGB values
273
274
/// @param ai color code // http://gohtx.com/acadcolors.php
@@ -321,7 +322,6 @@ namespace dxfv
321
322
class CDxf
322
323
{
323
324
public:
324
-
325
325
cBoundingRectangle myBoundingRectangle;
326
326
327
327
CDxf ();
@@ -348,8 +348,16 @@ namespace dxfv
348
348
return myFileVersion;
349
349
}
350
350
351
- private:
351
+ void penThickOverride (int thick)
352
+ {
353
+ myPenThickOverride = thick;
354
+ }
355
+ int penThickOverride () const
356
+ {
357
+ return myPenThickOverride;
358
+ }
352
359
360
+ private:
353
361
bool myfwxwidgets; // /< true if using wxwidgets method for control point splines
354
362
bool myfSplineControlPointsPreferred; // /< true if, given choice, splines use control rather than fit points
355
363
std::vector<cCodeValue> myCodeValue;
@@ -358,6 +366,7 @@ namespace dxfv
358
366
std::vector<cDXFGraphObject *> myGraphObject;
359
367
360
368
std::string myFileVersion;
369
+ int myPenThickOverride; // /< 0: do not override
361
370
362
371
void UpdateBoundingRectangle ();
363
372
};
0 commit comments