Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

MrDwgSubEntityTraits.h
1 // Copyright (c) Tech Soft 3D
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #pragma once
11 
12 #include <acgi.h>
13 #include "MrDwgReader.h"
14 
15 class MrDwgReader;
16 
17 class MrDwgSubEntityTraits : public AcGiSubEntityTraits
18 {
19 protected:
20  double m_dThickness;
21  AcCmEntityColor m_entityColor;
22  AcCmTransparency m_transparency;
23  AcDbObjectId m_layerId;
24  AcGiFillType m_fillType;
25  AcDbObjectId m_linetypeId;
26  AcDb::LineWeight m_lineWeight;
27  bool m_colorSet;
28  bool m_lineWeightSet;
29  bool m_sorted;
30  MrDwgReader * m_reader;
31 
32  void sort();
33  void unsort();
34 
35 public:
38 
39  void setColor(const Adesk::UInt16 color);
40  void setTrueColor(const AcCmEntityColor & color);
41  void setLayer(const AcDbObjectId layerId);
42  void setLineType(const AcDbObjectId linetypeId);
43  void setSelectionMarker(const Adesk::LongPtr markerId);
44  void setFillType(const AcGiFillType);
45  void setLineWeight(const AcDb::LineWeight lw);
46  Adesk::UInt16 color() const;
47  AcCmEntityColor trueColor() const;
48  AcDbObjectId layerId() const;
49  AcDbObjectId lineTypeId() const;
50  AcGiFillType fillType() const;
51  AcDb::LineWeight lineWeight() const;
52  void setTransparency(const AcCmTransparency & transparency);
53 
54  void setLineTypeScale(double);
55  double lineTypeScale() const;
56  double m_dLTScale;
57 
58  void setThickness(double dThickness);
59  double thickness() const;
60 };
Definition: MrDwgReader.h:35
Definition: MrDwgSubEntityTraits.h:17