CFx SDK Documentation  2020SP3
DbBreakData.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 _DbBreakData_h_Included_
25 #define _DbBreakData_h_Included_
26 
27 #include "DbObject.h"
28 #include "OdArray.h"
29 #include "SmartPtr.h"
30 #include "DbDimAssoc.h"
31 
32 class OdDbBreakPointRef;
35 
45 {
46 public:
48 
50  void setDimObjId(const OdDbObjectId& dimId);
51 
53  void getBreakPointRef(int lineIndex, OdDbBreakPointRefPtrArray& ptRefs) const;
56  OdResult removeAssociativity(bool force = true);
57  //OdResult postToDb(OdDbObjectId& breakObjId);
58  //OdResult eraseFromDb();
59 
61  virtual void dwgOutFields(OdDbDwgFiler*) const;
63  virtual void dxfOutFields(OdDbDxfFiler*) const;
64  virtual void modifiedGraphics(const OdDbObject* pEnt) ODRX_OVERRIDE; //FELIX_CHANGE
65  virtual void erased(const OdDbObject* pObj, bool erasing);
66  virtual void modified(const OdDbObject* pObj);
67 
69 };
70 
72 
82 {
83 public:
85 
87  kDynamic = 0,
88  kStatic = 1,
89  kStatic2Point = 2
90  };
91 
94  OdInt32 lineIndex() const;
97  void setBreakPoint(const OdGePoint3d& pt);
99  void setBreakPoint2(const OdGePoint3d& pt);
104 
106  virtual void dwgOutFields(OdDbDwgFiler*) const;
108  virtual void dxfOutFields(OdDbDxfFiler*) const;
109 };
110 
111 #endif
112 
OdResult
OdResult
Definition: OdResult.h:29
OdDbBreakData::getBreakPointRef
void getBreakPointRef(OdDbBreakPointRefPtrArray &ptRefs) const
OdDbBreakPointRef::setBreakPoint2
void setBreakPoint2(const OdGePoint3d &pt)
OdDbBreakPointRef::setBreakPoint
void setBreakPoint(const OdGePoint3d &pt)
OdDbBreakPointRef::setLineIndex
void setLineIndex(OdInt32 index)
DbObject.h
OdDbBreakPointRef::getBreakPointId
void getBreakPointId(OdDbXrefFullSubentPath &idPath) const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbBreakPointRef::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *)
DbDimAssoc.h
OdArray
Definition: OdArray.h:591
OdDbBreakData::removeAssociativity
OdResult removeAssociativity(bool force=true)
OdDbBreakPointRefPtr
OdSmartPtr< OdDbBreakPointRef > OdDbBreakPointRefPtr
Definition: DbBreakData.h:32
OdDbBreakData::modifiedGraphics
virtual void modifiedGraphics(const OdDbObject *pEnt) ODRX_OVERRIDE
OdDbBreakPointRef
Definition: DbBreakData.h:82
OdDbBreakData::modified
virtual void modified(const OdDbObject *pObj)
index
GLuint index
Definition: gles2_ext.h:265
OdDbBreakPointRef::lineIndex
OdInt32 lineIndex() const
OdDbBreakData::getBreakPointRef
void getBreakPointRef(int lineIndex, OdDbBreakPointRefPtrArray &ptRefs) const
OdDbBreakData::setDimObjId
void setDimObjId(const OdDbObjectId &dimId)
OdArray.h
OdDbBreakData::dimObjId
OdDbObjectId dimObjId() const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdDbBreakPointRef::breakPoint
OdGePoint3d breakPoint() const
OdDbBreakData::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *)
OdDbBreakPointRef::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *)
OdDbBreakPointRef::intersectWith
OdResult intersectWith(const OdDbEntity *pEnt, OdGePoint3dArray &points, OdGePoint3dArray &textBoxPts)
OdDbBreakData::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbBreakData::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *)
OdDbBreakPointRef::setPointType
void setPointType(OdDbBreakPointRef::BreakPointType newVal)
OdDbBreakData::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbBreakData)
OdDbBreakPointRef::subentPtr
OdDbEntityPtr subentPtr() const
SmartPtr.h
OdDbBreakPointRefPtrArray
OdArray< OdDbBreakPointRefPtr > OdDbBreakPointRefPtrArray
Definition: DbBreakData.h:34
OdDbBreakData
Definition: DbBreakData.h:45
OdDbEntity
Definition: DbEntity.h:90
OdDbBreakData::deleteAllBreakPointRefs
void deleteAllBreakPointRefs()
OdDbBreakPointRef::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *) const
OdDbXrefFullSubentPath
Definition: DbDimAssoc.h:58
OdDbBreakPointRef::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *) const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbBreakData::addBreakPointRef
void addBreakPointRef(OdDbBreakPointRef *ptRef)
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbBreakData::erased
virtual void erased(const OdDbObject *pObj, bool erasing)
OdDbBreakPointRef::pointType
OdDbBreakPointRef::BreakPointType pointType() const
OdDbBreakPointRef::setBreakPointId
void setBreakPointId(const OdDbXrefFullSubentPath &idPath)
OdDbBreakPointRef::breakPoint2
OdGePoint3d breakPoint2() const
OdDbBreakData::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *) const
OdDbBreakData::updateAssociativity
OdResult updateAssociativity(const OdDbObjectIdArray &ids, int cmdType)
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbBreakPointRef::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbBreakPointRef)
OdDbBreakPointRef::BreakPointType
BreakPointType
Definition: DbBreakData.h:86
OdDbBreakDataPtr
OdSmartPtr< OdDbBreakData > OdDbBreakDataPtr
Definition: DbBreakData.h:71