CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbMline.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_DBMLINE_H
28#define OD_DBMLINE_H
29
30#include "TD_PackPush.h"
31
32#include "DbEntity.h"
33#include "DwgDeclareMembers.h"
34//#include "Ge/GeVoidPointerArray.h"
35
41struct Mline
42{
44 enum
45 {
46 kTop = 0,
49 };
50 enum
51 {
52 kOpen = 0,
55 };
56};
57
58class OdGePlane;
59
65{
68};
69
71
85{
86public:
88
90
96 const OdDbObjectId &styleId);
97
102
108
113
118 double scale);
119
123 double scale() const;
124
129
135 const OdGeVector3d& normal);
136
147 const OdGePoint3d& newVertex);
148
155 (OdGePoint3d& lastVertex);
156
168 int vertexIndex,
169 const OdGePoint3d& newPosition);
170
177 bool closedMline);
178
184 bool closedMline() const;
185
192 bool supressIt);
193
200 bool supressStartCaps() const;
201
208 bool supressIt);
209
216 bool supressEndCaps() const;
217
221 int numVertices() const;
222
228 int vertexIndex) const;
229
235 int vertexIndex) const;
236
242 int vertexIndex) const;
243
250
257 int vertexIndex,
258 const OdMLSegmentArray& params);
259
270 int element(const OdGePoint3d &pt) const;
271
279 OdResult getClosestPointTo(const OdGePoint3d &pt, OdGePoint3d& ptOut, bool bExtend, bool bExcludeCaps = false) const;
280
289 OdResult getClosestPointTo(const OdGePoint3d &pt, const OdGeVector3d &norm, OdGePoint3d& ptOut, bool bExtend, bool bExcludeCaps = false) const;
290
291 void getPlane(OdGePlane &plane) const;
292
294 OdDbDwgFiler* pFiler);
295
296 virtual void dwgOutFields(
297 OdDbDwgFiler* pFiler) const;
298
300 OdDbDxfFiler* pFiler);
301
302 virtual void dxfOutFields(
303 OdDbDxfFiler* pFiler) const;
304
306 const OdGeMatrix3d& xfm);
307
308 virtual bool subWorldDraw(
309 OdGiWorldDraw* pWd) const;
310
312 OdRxObjectPtrArray& entitySet) const; /* Replace OdRxObjectPtrArray */
313
314 virtual OdResult explodeGeometry(OdRxObjectPtrArray& entitySet) const;
315
316 virtual void subClose();
317
319 void* pClsid) const;
320
322 const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
323
324 virtual void subSetDatabaseDefaults(OdDbDatabase * pDb, bool doSubents);
325
327 OdGsMarker gsMark,
328 const OdGePoint3d& ,
329 const OdGeMatrix3d& ,
330 OdDbFullSubentPathArray& subentPaths,
331 const OdDbObjectIdArray* pEntAndInsertStack) const;
332
334 OdGsMarkerArray& gsMarkers) const;
335};
336
341
342#include "TD_PackPop.h"
343
344#endif
345
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbMline > OdDbMlinePtr
Definition: DbMline.h:340
OdArray< OdMLSegment > OdMLSegmentArray
Definition: DbMline.h:70
scale
Definition: DimVarDefs.h:1684
ptrdiff_t OdGsMarker
signed char OdInt8
OdResult
Definition: OdResult.h:29
void setStyle(const OdDbObjectId &styleId)
Mline::MlineJustification justification() const
int numVertices() const
double scale() const
int element(const OdGePoint3d &pt) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdResult getClosestPointTo(const OdGePoint3d &pt, const OdGeVector3d &norm, OdGePoint3d &ptOut, bool bExtend, bool bExcludeCaps=false) const
OdGeVector3d miterAt(int vertexIndex) const
DWGMAP_DECLARE_MEMBERS(OdDbMline)
OdResult getClosestPointTo(const OdGePoint3d &pt, OdGePoint3d &ptOut, bool bExtend, bool bExcludeCaps=false) const
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdGeVector3d normal() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbObjectId style() const
bool closedMline() const
virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents)
void setSupressStartCaps(bool supressIt)
void removeLastSeg(OdGePoint3d &lastVertex)
OdGeVector3d axisAt(int vertexIndex) const
void appendSeg(const OdGePoint3d &newVertex)
void setSupressEndCaps(bool supressIt)
virtual OdResult subGetClassID(void *pClsid) const
OdGePoint3d vertexAt(int vertexIndex) const
bool supressStartCaps() const
void getPlane(OdGePlane &plane) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setNormal(const OdGeVector3d &normal)
virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
virtual OdResult subGetSubentPathsAtGsMarker(OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &, const OdGeMatrix3d &, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack) const
virtual OdResult explodeGeometry(OdRxObjectPtrArray &entitySet) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void moveVertexAt(int vertexIndex, const OdGePoint3d &newPosition)
virtual void subClose()
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
void setScale(double scale)
void setClosedMline(bool closedMline)
bool supressEndCaps() const
void setParametersAt(int vertexIndex, const OdMLSegmentArray &params)
void getParametersAt(int index, OdMLSegmentArray &params) const
void setJustification(Mline::MlineJustification justification)
GLenum GLint * params
Definition: gles2_ext.h:184
GLuint index
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
Definition: DbMline.h:42
@ kOpen
Definition: DbMline.h:52
@ kClosed
Definition: DbMline.h:53
@ kMerged
Definition: DbMline.h:54
OdInt8 MlineJustification
Definition: DbMline.h:43
@ kBottom
Definition: DbMline.h:48
@ kZero
Definition: DbMline.h:47
@ kTop
Definition: DbMline.h:46
OdGeDoubleArray m_AreaFillParams
Definition: DbMline.h:66
OdGeDoubleArray m_SegParams
Definition: DbMline.h:67