CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbMlineStyle.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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#include "DwgDeclareMembers.h"
47
48class OdDbMlineStyleImpl;
49
59{
60public:
62
64
82
90 void set(
91 const OdDbMlineStyle & source,
92 bool checkIfReferenced = true);
93
100 const OdString& description);
101
105 const OdString description() const;
106
112 virtual void setName(
113 const OdString& name);
114
118 virtual const OdString name() const;
119
126 bool showThem);
127
134 bool showMiters() const;
135
142 bool showThem);
143
150 bool startSquareCap() const;
151
158 bool showThem);
159
165 bool startRoundCap() const;
166
173 bool showThem);
174
181 bool startInnerArcs() const;
182
190 bool showThem);
191
197 bool endSquareCap() const;
198
205 bool showThem);
206
213 bool endRoundCap() const;
214
215
221 void setEndInnerArcs(bool showThem);
222
228 bool endInnerArcs() const;
229
236 const OdCmColor& fillColor);
237
242
249 bool filled);
250
254 bool filled() const;
255
262 double startAngle);
263
267 double startAngle() const;
268
274 void setEndAngle(double endAngle);
275
279 double endAngle() const;
280
292 virtual int addElement(
293 double offset,
294 const OdCmColor& color,
295 OdDbObjectId linetypeId,
296 bool checkIfReferenced = true);
297
303 void removeElementAt(int elem);
304
308 int numElements() const;
309
322 int elementIndex,
323 double offset,
324 const OdCmColor& color,
325 OdDbObjectId linetypeId);
326
337 int elementIndex,
338 double& offset,
339 OdCmColor& color,
340 OdDbObjectId& linetypeId) const;
341
343 OdDbDwgFiler* pFiler);
344
345 virtual void dwgOutFields(
346 OdDbDwgFiler* pFiler) const;
347
349 OdDbDxfFiler* pFiler);
350
351 virtual void dxfOutFields(
352 OdDbDxfFiler* pFiler) const;
353
355 void* pClsid) const;
356
357 virtual void appendToOwner(
358 OdDbIdPair& idPair,
359 OdDbObject* pOwnerObject,
360 OdDbIdMapping& ownerIdMap);
361};
366
367#include "TD_PackPop.h"
368
369#endif
370
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbMlineStyle > OdDbMlineStylePtr
Definition: DbMlineStyle.h:365
OdResult
Definition: OdResult.h:29
void setStartRoundCap(bool showThem)
void setEndAngle(double endAngle)
virtual const OdString name() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void set(const OdDbMlineStyle &source, bool checkIfReferenced=true)
void removeElementAt(int elem)
void setStartInnerArcs(bool showThem)
void setEndInnerArcs(bool showThem)
bool startSquareCap() const
void setEndSquareCap(bool showThem)
void getElementAt(int elementIndex, double &offset, OdCmColor &color, OdDbObjectId &linetypeId) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual int addElement(double offset, const OdCmColor &color, OdDbObjectId linetypeId, bool checkIfReferenced=true)
bool endInnerArcs() const
const OdString description() const
virtual void setName(const OdString &name)
bool endSquareCap() const
OdResult subGetClassID(void *pClsid) const
void initMlineStyle()
DWGMAP_DECLARE_MEMBERS(OdDbMlineStyle)
void setStartAngle(double startAngle)
void setDescription(const OdString &description)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
bool endRoundCap() const
bool startRoundCap() const
bool showMiters() const
double endAngle() const
void setFillColor(const OdCmColor &fillColor)
void setStartSquareCap(bool showThem)
void setElement(int elementIndex, double offset, const OdCmColor &color, OdDbObjectId linetypeId)
void setShowMiters(bool showThem)
bool startInnerArcs() const
void setEndRoundCap(bool showThem)
bool filled() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
int numElements() const
void setFilled(bool filled)
virtual void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
double startAngle() const
OdCmColor fillColor() const
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
GLintptr offset
Definition: gles2_ext.h:183