CFx SDK Documentation  2020SP3
DbMline.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_DBMLINE_H
28 #define OD_DBMLINE_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 //#include "Ge/GeVoidPointerArray.h"
34 
40 struct Mline
41 {
43  enum
44  {
45  kTop = 0,
47  kBottom
48  };
49  enum
50  {
51  kOpen = 0,
53  kMerged
54  };
55 };
56 
57 class OdGePlane;
58 
63  struct OdMLSegment
64 {
67 };
68 
70 
84 {
85 public:
87 
89 
94  void setStyle(
95  const OdDbObjectId &styleId);
96 
101 
107 
112 
116  void setScale(
117  double scale);
118 
122  double scale() const;
123 
128 
133  void setNormal(
134  const OdGeVector3d& normal);
135 
145  void appendSeg(
146  const OdGePoint3d& newVertex);
147 
154  (OdGePoint3d& lastVertex);
155 
167  int vertexIndex,
168  const OdGePoint3d& newPosition);
169 
176  bool closedMline);
177 
183  bool closedMline() const;
184 
191  bool supressIt);
192 
199  bool supressStartCaps() const;
200 
207  bool supressIt);
208 
215  bool supressEndCaps() const;
216 
220  int numVertices() const;
221 
227  int vertexIndex) const;
228 
234  int vertexIndex) const;
235 
241  int vertexIndex) const;
242 
249 
256  int vertexIndex,
257  const OdMLSegmentArray& params);
258 
269  int element(const OdGePoint3d &pt) const;
270 
278  OdResult getClosestPointTo(const OdGePoint3d &pt, OdGePoint3d& ptOut, bool bExtend, bool bExcludeCaps = false) const;
279 
288  OdResult getClosestPointTo(const OdGePoint3d &pt, const OdGeVector3d &norm, OdGePoint3d& ptOut, bool bExtend, bool bExcludeCaps = false) const;
289 
290  void getPlane(OdGePlane &plane) const;
291 
293  OdDbDwgFiler* pFiler);
294 
295  virtual void dwgOutFields(
296  OdDbDwgFiler* pFiler) const;
297 
299  OdDbDxfFiler* pFiler);
300 
301  virtual void dxfOutFields(
302  OdDbDxfFiler* pFiler) const;
303 
305  const OdGeMatrix3d& xfm);
306 
307  virtual bool subWorldDraw(
308  OdGiWorldDraw* pWd) const;
309 
311  OdRxObjectPtrArray& entitySet) const; /* Replace OdRxObjectPtrArray */
312 
313  virtual OdResult explodeGeometry(OdRxObjectPtrArray& entitySet) const;
314 
315  virtual void subClose();
316 
318  void* pClsid) const;
319 
321  const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
322 
323  virtual void subSetDatabaseDefaults(OdDbDatabase * pDb, bool doSubents);
324 
326  OdGsMarker gsMark,
327  const OdGePoint3d& ,
328  const OdGeMatrix3d& ,
329  OdDbFullSubentPathArray& subentPaths,
330  const OdDbObjectIdArray* pEntAndInsertStack) const;
331 
333  OdGsMarkerArray& gsMarkers) const;
334 };
335 
340 
341 #include "TD_PackPop.h"
342 
343 #endif
344 
OdDbMline::subClose
virtual void subClose()
OdDbMline::normal
OdGeVector3d normal() const
OdDbMline::setSupressStartCaps
void setSupressStartCaps(bool supressIt)
OdResult
OdResult
Definition: OdResult.h:29
OdDbMline::subExplode
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const
OdGePlane
Definition: GePlane.h:45
OdDbMline::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdGeVector3d
Definition: GeVector3d.h:54
OdDbDatabase
Definition: DbDatabase.h:421
OdMLSegment::m_AreaFillParams
OdGeDoubleArray m_AreaFillParams
Definition: DbMline.h:65
OdDbMline::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
scale
scale
Definition: DimVarDefs.h:1684
OdDbMline::subGetGsMarkersAtSubentPath
virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdDbMline::setSupressEndCaps
void setSupressEndCaps(bool supressIt)
OdDbObjectId
Definition: DbObjectId.h:99
OdDbMline::element
int element(const OdGePoint3d &pt) const
OdDbMline::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbFullSubentPath
Definition: DbSubentId.h:49
OdDbMlinePtr
OdSmartPtr< OdDbMline > OdDbMlinePtr
Definition: DbMline.h:339
OdArray< double, OdMemoryAllocator< double > >
TD_PackPop.h
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
OdDbMline::supressStartCaps
bool supressStartCaps() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
index
GLuint index
Definition: gles2_ext.h:265
OdDbMline::subGetSubentPathsAtGsMarker
virtual OdResult subGetSubentPathsAtGsMarker(OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &, const OdGeMatrix3d &, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack) const
OdMLSegment::m_SegParams
OdGeDoubleArray m_SegParams
Definition: DbMline.h:66
OdDbMline
Definition: DbMline.h:84
OdDbMline::subSetDatabaseDefaults
virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents)
OdDbMline::removeLastSeg
void removeLastSeg(OdGePoint3d &lastVertex)
Mline::kMerged
@ kMerged
Definition: DbMline.h:53
OdDbMline::miterAt
OdGeVector3d miterAt(int vertexIndex) const
OdDbMline::subGetTransformedCopy
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
OdDbMline::setParametersAt
void setParametersAt(int vertexIndex, const OdMLSegmentArray &params)
OdDbMline::moveVertexAt
void moveVertexAt(int vertexIndex, const OdGePoint3d &newPosition)
Mline::kClosed
@ kClosed
Definition: DbMline.h:52
OdSmartPtr< OdDbEntity >
OdDbMline::closedMline
bool closedMline() const
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDb::SubentType
SubentType
Definition: DbBaseSubentId.h:38
OdDbMline::vertexAt
OdGePoint3d vertexAt(int vertexIndex) const
Mline
Definition: DbMline.h:41
OdDbMline::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdDbMline::getPlane
void getPlane(OdGePlane &plane) const
OdDbMline::numVertices
int numVertices() const
OdMLSegment
Definition: DbMline.h:64
OdDbMline::style
OdDbObjectId style() const
OdDbMline::justification
Mline::MlineJustification justification() const
OdDbMline::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdMLSegmentArray
OdArray< OdMLSegment > OdMLSegmentArray
Definition: DbMline.h:69
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbMline::setJustification
void setJustification(Mline::MlineJustification justification)
Mline::kBottom
@ kBottom
Definition: DbMline.h:47
TD_PackPush.h
OdDbMline::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbMline::getClosestPointTo
OdResult getClosestPointTo(const OdGePoint3d &pt, const OdGeVector3d &norm, OdGePoint3d &ptOut, bool bExtend, bool bExcludeCaps=false) const
OdDbMline::setScale
void setScale(double scale)
OdDbMline::explodeGeometry
virtual OdResult explodeGeometry(OdRxObjectPtrArray &entitySet) const
OdInt8
signed char OdInt8
Definition: OdPlatformSettings.h:755
OdDbMline::setClosedMline
void setClosedMline(bool closedMline)
Mline::MlineJustification
OdInt8 MlineJustification
Definition: DbMline.h:42
OdDbMline::supressEndCaps
bool supressEndCaps() const
params
GLenum GLint * params
Definition: gles2_ext.h:184
OdDbMline::getClosestPointTo
OdResult getClosestPointTo(const OdGePoint3d &pt, OdGePoint3d &ptOut, bool bExtend, bool bExcludeCaps=false) const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbEntity
Definition: DbEntity.h:90
Mline::kZero
@ kZero
Definition: DbMline.h:46
Mline::kTop
@ kTop
Definition: DbMline.h:45
OdDbMline::setStyle
void setStyle(const OdDbObjectId &styleId)
OdDbMline::appendSeg
void appendSeg(const OdGePoint3d &newVertex)
OdDbMline::setNormal
void setNormal(const OdGeVector3d &normal)
OdDbMline::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbMline)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbMline::axisAt
OdGeVector3d axisAt(int vertexIndex) const
OdDbMline::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbMline::scale
double scale() const
OdDbMline::OdDbMline
OdDbMline()
OdDbDwgFiler
Definition: DbFiler.h:1031
Mline::kOpen
@ kOpen
Definition: DbMline.h:51
OdDbMline::getParametersAt
void getParametersAt(int index, OdMLSegmentArray &params) const