CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Db2dVertex.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 Teigha(R) 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_DB_2DVERTEX_
28#define _OD_DB_2DVERTEX_
29
30#include "TD_PackPush.h"
31
32#include "DbVertex.h"
33#include "DwgDeclareMembers.h"
34
39namespace OdDb
40{
42 {
43 k2dVertex = 0, // Standard vertex
44 k2dSplineCtlVertex = 1, // Spline-fit or curve-fit control point
45 k2dSplineFitVertex = 2, // Spline-fit generated vertex
46 k2dCurveFitVertex = 3 // Curve-fit generated vertex
47 };
48}
49
56{
57public:
58
60
65
81
99 OdDb::Vertex2dType vertexType);
100
114
128 const OdGePoint3d& position);
129
133 double startWidth() const;
134
141 double startWidth);
142
146 double endWidth() const;
147
154 double endWidth);
155
162 double bulge() const;
163
173 double bulge);
174
178 bool isTangentUsed() const;
179
184
189
199 double tangent() const;
200
213 double tangent);
214
219
226 OdInt32 suggestedId);
227
229 OdDbDwgFiler* pFiler);
230
231 virtual void dwgOutFields(
232 OdDbDwgFiler* pFiler) const;
233
235 OdDbDxfFiler* pFiler);
236
237 virtual void dxfOutFields_R12(
238 OdDbDxfFiler* pFiler) const;
239
241 const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
242
244 const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
245};
250
251#include "TD_PackPop.h"
252
253#endif
254
OdSmartPtr< OdDb2dVertex > OdDb2dVertexPtr
Definition: Db2dVertex.h:249
#define DBENT_EXPORT
Definition: DbExport.h:67
int OdInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdDb::Vertex2dType vertexType() const
DWGMAP_DECLARE_MEMBERS(OdDb2dVertex)
void ignoreTangent()
double tangent() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
double startWidth() const
void setVertexIdentifier(OdInt32 suggestedId)
void setBulge(double bulge)
void useTangent()
void setEndWidth(double endWidth)
void setPosition(const OdGePoint3d &position)
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setStartWidth(double startWidth)
bool isTangentUsed() const
OdInt32 vertexIdentifier() const
double endWidth() const
double bulge() const
void setVertexType(OdDb::Vertex2dType vertexType)
OdGePoint3d position() const
void setTangent(double tangent)
Vertex2dType
Definition: Db2dVertex.h:42
@ k2dSplineCtlVertex
Definition: Db2dVertex.h:44
@ k2dVertex
Definition: Db2dVertex.h:43
@ k2dCurveFitVertex
Definition: Db2dVertex.h:46
@ k2dSplineFitVertex
Definition: Db2dVertex.h:45