/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2016, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Teigha(R) software pursuant to a license // agreement with Open Design Alliance. // Teigha(R) Copyright (C) 2002-2016 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef _OD_DB_3DPOLYLINE_VERTEX_ #define _OD_DB_3DPOLYLINE_VERTEX_ #include "TD_PackPush.h" #include "DbVertex.h" /** \details This class represents OdDb3dPolyline vertices in an OdDbDatabase instance. \sa TD_Db */ class TOOLKIT_EXPORT OdDb3dPolylineVertex : public OdDbVertex { public: ODDB_DECLARE_MEMBERS(OdDb3dPolylineVertex); /** \remarks Newly created vertices are of type OdDb::k3dSimpleVertex. */ OdDb3dPolylineVertex(); /** \details Returns the type of this Vertex entity. \remarks vertexType() returns one of the following: Name Value DXF 70 Description OdDb::k3dSimpleVertex 0 0x40 Standard vertex. OdDb::k3dControlVertex 1 0x10 Spline-fit or curve-fit control point. OdDb::k3dFitVertex 2 0x08 Spline-fit or curve-fit generated vertex.
*/ OdDb::Vertex3dType vertexType() const; /** \details Sets the type of this Vertex entity. \param vertexType [in] Vertex type. \remarks vertexType type must be one of the following: Name Value DXF 70 Description OdDb::k3dSimpleVertex 0 0x40 Standard vertex. OdDb::k3dControlVertex 1 0x10 Spline-fit or curve-fit control point. OdDb::k3dFitVertex 2 0x08 Spline-fit or curve-fit generated vertex.
*/ void setVertexType( OdDb::Vertex3dType vertexType); /** \details Returns the WCS position of this entity (DXF 10). */ OdGePoint3d position() const; /** \details Sets the WCS position of this entity (DXF 10). \param position [in] Position. */ void setPosition( const OdGePoint3d& position); virtual OdResult dwgInFields( OdDbDwgFiler* pFiler); virtual void dwgOutFields( OdDbDwgFiler* pFiler) const; virtual OdResult dxfInFields_R12( OdDbDxfFiler* pFiler); virtual void dxfOutFields_R12( OdDbDxfFiler* pFiler) const; }; /** \details This template class is a specialization of the OdSmartPtr class for OdDb3dPolylineVertex object pointers. */ typedef OdSmartPtr OdDb3dPolylineVertexPtr; #include "TD_PackPop.h" #endif