CFx SDK Documentation  2022 SP0
Db2dVertex.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_DB_2DVERTEX_
28 #define _OD_DB_2DVERTEX_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbVertex.h"
33 
38 namespace OdDb
39 {
41  {
42  k2dVertex = 0, // Standard vertex
43  k2dSplineCtlVertex = 1, // Spline-fit or curve-fit control point
44  k2dSplineFitVertex = 2, // Spline-fit generated vertex
45  k2dCurveFitVertex = 3 // Curve-fit generated vertex
46  };
47 }
48 
58 {
59 public:
60 
62 
67 
83 
101  OdDb::Vertex2dType vertexType);
102 
116 
130  const OdGePoint3d& position);
131 
135  double startWidth() const;
136 
143  double startWidth);
144 
148  double endWidth() const;
149 
156  double endWidth);
157 
164  double bulge() const;
165 
174  void setBulge(
175  double bulge);
176 
180  bool isTangentUsed() const;
181 
185  void useTangent();
186 
191 
201  double tangent() const;
202 
215  double tangent);
216 
221 
228  OdInt32 suggestedId);
229 
231  OdDbDwgFiler* pFiler);
232 
233  virtual void dwgOutFields(
234  OdDbDwgFiler* pFiler) const;
235 
237  OdDbDxfFiler* pFiler);
238 
239  virtual void dxfOutFields_R12(
240  OdDbDxfFiler* pFiler) const;
241 
243  const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
244 
246  const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
247 };
252 
253 #include "TD_PackPop.h"
254 
255 #endif
256 
OdSmartPtr< OdDb2dVertex > OdDb2dVertexPtr
Definition: Db2dVertex.h:251
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
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
void ignoreTangent()
ODDB_DECLARE_MEMBERS(OdDb2dVertex)
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:41
@ k2dSplineCtlVertex
Definition: Db2dVertex.h:43
@ k2dVertex
Definition: Db2dVertex.h:42
@ k2dCurveFitVertex
Definition: Db2dVertex.h:45
@ k2dSplineFitVertex
Definition: Db2dVertex.h:44