CFx SDK Documentation  2020SP3
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 
OdDb2dVertex::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdResult
OdResult
Definition: OdResult.h:29
OdDb2dVertexPtr
OdSmartPtr< OdDb2dVertex > OdDb2dVertexPtr
Definition: Db2dVertex.h:251
OdDb2dVertex::isTangentUsed
bool isTangentUsed() const
TD_PackPop.h
OdDb2dVertex::setStartWidth
void setStartWidth(double startWidth)
OdDb2dVertex::setEndWidth
void setEndWidth(double endWidth)
OdDb2dVertex::tangent
double tangent() const
OdDb2dVertex::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDb2dVertex::OdDb2dVertex
OdDb2dVertex()
OdDb2dVertex::subGetTransformedCopy
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
OdDb2dVertex::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDb2dVertex)
OdDb2dVertex::setPosition
void setPosition(const OdGePoint3d &position)
OdSmartPtr< OdDbEntity >
OdGePoint3d
Definition: GePoint3d.h:55
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdDb::k2dVertex
@ k2dVertex
Definition: Db2dVertex.h:42
OdDb2dVertex::vertexIdentifier
OdInt32 vertexIdentifier() const
OdDb2dVertex::setTangent
void setTangent(double tangent)
OdDb2dVertex::endWidth
double endWidth() const
OdDb2dVertex::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDb2dVertex::setBulge
void setBulge(double bulge)
TD_PackPush.h
OdDb2dVertex::position
OdGePoint3d position() const
OdDbVertex
Definition: DbVertex.h:56
OdDb2dVertex::setVertexType
void setVertexType(OdDb::Vertex2dType vertexType)
OdDb2dVertex::vertexType
OdDb::Vertex2dType vertexType() const
DbVertex.h
OdDb2dVertex::startWidth
double startWidth() const
OdDb::k2dCurveFitVertex
@ k2dCurveFitVertex
Definition: Db2dVertex.h:45
OdDb
Definition: Db2dPolyline.h:50
OdDb2dVertex::bulge
double bulge() const
OdDb2dVertex::setVertexIdentifier
void setVertexIdentifier(OdInt32 suggestedId)
OdDb2dVertex::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDb2dVertex::useTangent
void useTangent()
OdDb::Vertex2dType
Vertex2dType
Definition: Db2dVertex.h:41
OdDb2dVertex::ignoreTangent
void ignoreTangent()
OdDb::k2dSplineFitVertex
@ k2dSplineFitVertex
Definition: Db2dVertex.h:44
OdDb::k2dSplineCtlVertex
@ k2dSplineCtlVertex
Definition: Db2dVertex.h:43
OdDb2dVertex::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDb2dVertex
Definition: Db2dVertex.h:58