CFx SDK Documentation  2022 SP0
DbNamedPath.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 #ifndef _OD_DBNAMEDPATH_H_INCLUDED_
25 #define _OD_DBNAMEDPATH_H_INCLUDED_
26 
27 #include "DbObject.h"
28 
29 #include "TD_PackPush.h"
30 
31 class OdGeCurve3d;
32 
38 {
39  public:
41 
42  virtual ~OdDbNamedPath();
43 
44  virtual OdResult getGeometry(OdGeCurve3d *& pCurve) const = 0;
45  private:
46  OdDbNamedPath(); // noimpl
47 };
48 
50 
56 {
57  public:
59 
61  virtual ~OdDbCurvePath();
62 
63  virtual OdResult getGeometry(OdGeCurve3d *& pCurve) const;
64 
65  void setGeometry(const OdDbObjectId &curveId);
67 
68  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
69  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
70  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
71  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
72 };
73 
75 
81 {
82  public:
84 
86  virtual ~OdDbPointPath();
87 
88  virtual OdResult getGeometry(OdGeCurve3d *& pCurve) const;
89 
90  void setGeometry(const OdGePoint3d &point);
91  OdGePoint3d point() const;
92 
93  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
94  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
95  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
96  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
97 };
98 
100 
103 
104 #include "TD_PackPop.h"
105 
106 #endif // _OD_DBNAMEDPATH_H_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetNamedPathDictionary(OdDbDatabase *pDb, OdDb::OpenMode mode, bool createIfNotFound=false)
OdSmartPtr< OdDbCurvePath > OdDbCurvePathPtr
Definition: DbNamedPath.h:74
OdSmartPtr< OdDbPointPath > OdDbPointPathPtr
Definition: DbNamedPath.h:99
TOOLKIT_EXPORT OdDbObjectId oddbGetNamedPathDictionaryId(OdDbDatabase *pDb, bool createIfNotFound=false)
OdSmartPtr< OdDbNamedPath > OdDbNamedPathPtr
Definition: DbNamedPath.h:49
OdResult
Definition: OdResult.h:29
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setGeometry(const OdDbObjectId &curveId)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbObjectId entityId() const
ODDB_DECLARE_MEMBERS(OdDbCurvePath)
virtual ~OdDbCurvePath()
virtual OdResult getGeometry(OdGeCurve3d *&pCurve) const
virtual ~OdDbNamedPath()
ODDB_DECLARE_MEMBERS(OdDbNamedPath)
virtual OdResult getGeometry(OdGeCurve3d *&pCurve) const =0
virtual ~OdDbPointPath()
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
ODDB_DECLARE_MEMBERS(OdDbPointPath)
void setGeometry(const OdGePoint3d &point)
virtual OdResult getGeometry(OdGeCurve3d *&pCurve) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdGePoint3d point() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OpenMode
Definition: DbObjectId.h:54