CFx SDK Documentation  2020SP3
DbMlineStyle.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef OD_DBMLINESTYLE_H
28 #define OD_DBMLINESTYLE_H
29 
30 #include "TD_PackPush.h"
31 
32 // Bricsys uses some of these constant :
33 #define MSTYLE_DXF_FILL_ON (0x1)
34 #define MSTYLE_DXF_SHOW_MITERS (0x2)
35 #define MSTYLE_DXF_START_SQUARE_CAP (0x10)
36 #define MSTYLE_DXF_START_INNER_ARCS (0x20)
37 #define MSTYLE_DXF_START_ROUND_CAP (0x40)
38 #define MSTYLE_DXF_END_SQUARE_CAP (0x100)
39 #define MSTYLE_DXF_END_INNER_ARCS (0x200)
40 #define MSTYLE_DXF_END_ROUND_CAP (0x400)
41 #define MSTYLE_DXF_JUST_TOP (0x1000)
42 #define MSTYLE_DXF_JUST_ZERO (0x2000)
43 #define MSTYLE_DXF_JUST_BOT (0x4000)
44 
45 #include "DbObject.h"
46 
47 class OdDbMlineStyleImpl;
48 
60 {
61 public:
63 
65 
83 
91  void set(
92  const OdDbMlineStyle & source,
93  bool checkIfReferenced = true);
94 
101  const OdString& description);
102 
106  const OdString description() const;
107 
113  void setName(
114  const OdString& name);
115 
119  const OdString name() const;
120 
127  bool showThem);
128 
135  bool showMiters() const;
136 
143  bool showThem);
144 
151  bool startSquareCap() const;
152 
159  bool showThem);
160 
166  bool startRoundCap() const;
167 
174  bool showThem);
175 
182  bool startInnerArcs() const;
183 
191  bool showThem);
192 
198  bool endSquareCap() const;
199 
206  bool showThem);
207 
214  bool endRoundCap() const;
215 
216 
222  void setEndInnerArcs(bool showThem);
223 
229  bool endInnerArcs() const;
230 
237  const OdCmColor& fillColor);
238 
243 
249  void setFilled(
250  bool filled);
251 
255  bool filled() const;
256 
263  double startAngle);
264 
268  double startAngle() const;
269 
275  void setEndAngle(double endAngle);
276 
280  double endAngle() const;
281 
294  double offset,
295  const OdCmColor& color,
296  OdDbObjectId linetypeId,
297  bool checkIfReferenced = true);
298 
304  void removeElementAt(int elem);
305 
309  int numElements() const;
310 
323  int elementIndex,
324  double offset,
325  const OdCmColor& color,
326  OdDbObjectId linetypeId);
327 
338  int elementIndex,
339  double& offset,
340  OdCmColor& color,
341  OdDbObjectId& linetypeId) const;
342 
344  OdDbDwgFiler* pFiler);
345 
346  virtual void dwgOutFields(
347  OdDbDwgFiler* pFiler) const;
348 
350  OdDbDxfFiler* pFiler);
351 
352  virtual void dxfOutFields(
353  OdDbDxfFiler* pFiler) const;
354 
356  void* pClsid) const;
357 
358  virtual void appendToOwner(
359  OdDbIdPair& idPair,
360  OdDbObject* pOwnerObject,
361  OdDbIdMapping& ownerIdMap);
362 };
367 
368 #include "TD_PackPop.h"
369 
370 #endif
371 
OdResult
OdResult
Definition: OdResult.h:29
OdString
Definition: OdString.h:95
OdDbMlineStyle::appendToOwner
virtual void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
OdDbMlineStyle::addElement
int addElement(double offset, const OdCmColor &color, OdDbObjectId linetypeId, bool checkIfReferenced=true)
OdDbMlineStylePtr
OdSmartPtr< OdDbMlineStyle > OdDbMlineStylePtr
Definition: DbMlineStyle.h:366
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbMlineStyle::fillColor
OdCmColor fillColor() const
DbObject.h
OdDbObjectId
Definition: DbObjectId.h:99
OdDbMlineStyle::description
const OdString description() const
OdDbMlineStyle::setStartAngle
void setStartAngle(double startAngle)
source
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
OdDbIdPair
Definition: DbIdMapping.h:60
OdDbMlineStyle::startAngle
double startAngle() const
OdDbMlineStyle::setEndInnerArcs
void setEndInnerArcs(bool showThem)
OdDbMlineStyle::showMiters
bool showMiters() const
TD_PackPop.h
OdDbMlineStyle::name
const OdString name() const
OdDbMlineStyle::removeElementAt
void removeElementAt(int elem)
OdDbMlineStyle::startRoundCap
bool startRoundCap() const
OdDbMlineStyle::setDescription
void setDescription(const OdString &description)
OdDbMlineStyle::setElement
void setElement(int elementIndex, double offset, const OdCmColor &color, OdDbObjectId linetypeId)
OdDbMlineStyle::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbMlineStyle::endSquareCap
bool endSquareCap() const
OdDbMlineStyle::endRoundCap
bool endRoundCap() const
OdDbMlineStyle::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbMlineStyle::endAngle
double endAngle() const
OdDbMlineStyle::getElementAt
void getElementAt(int elementIndex, double &offset, OdCmColor &color, OdDbObjectId &linetypeId) const
OdSmartPtr
Definition: SmartPtr.h:58
OdDbMlineStyle::endInnerArcs
bool endInnerArcs() const
offset
GLintptr offset
Definition: gles2_ext.h:183
OdDbMlineStyle::initMlineStyle
void initMlineStyle()
OdDbMlineStyle::subGetClassID
OdResult subGetClassID(void *pClsid) const
OdDbMlineStyle::setEndAngle
void setEndAngle(double endAngle)
OdDbMlineStyle::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbMlineStyle)
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbMlineStyle::startSquareCap
bool startSquareCap() const
TD_PackPush.h
OdDbMlineStyle::setName
void setName(const OdString &name)
OdDbMlineStyle::startInnerArcs
bool startInnerArcs() const
OdDbMlineStyle::setStartInnerArcs
void setStartInnerArcs(bool showThem)
OdDbMlineStyle::setEndRoundCap
void setEndRoundCap(bool showThem)
OdDbMlineStyle::set
void set(const OdDbMlineStyle &source, bool checkIfReferenced=true)
OdDbMlineStyle::setShowMiters
void setShowMiters(bool showThem)
OdDbMlineStyle::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbMlineStyle::numElements
int numElements() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbMlineStyle::setFillColor
void setFillColor(const OdCmColor &fillColor)
OdDbMlineStyle::OdDbMlineStyle
OdDbMlineStyle()
OdDbMlineStyle::setEndSquareCap
void setEndSquareCap(bool showThem)
OdDbMlineStyle::setStartSquareCap
void setStartSquareCap(bool showThem)
OdCmColor
Definition: CmColor.h:59
OdDbMlineStyle::filled
bool filled() const
OdDbMlineStyle::setFilled
void setFilled(bool filled)
OdDbMlineStyle::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbIdMapping
Definition: DbIdMapping.h:238
OdDbObject
Definition: DbObject.h:211
OdDbMlineStyle
Definition: DbMlineStyle.h:60
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbMlineStyle::setStartRoundCap
void setStartRoundCap(bool showThem)