CFx SDK Documentation  2023 SP0
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 
OdSmartPtr< OdDbBreakData > OdDbBreakDataPtr
Definition: DbBreakData.h:71
OdArray< OdDbBreakPointRefPtr > OdDbBreakPointRefPtrArray
Definition: DbBreakData.h:34
OdSmartPtr< OdDbBreakPointRef > OdDbBreakPointRefPtr
Definition: DbBreakData.h:32
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
int OdInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void dxfOutFields(OdDbDxfFiler *) const
void getBreakPointRef(OdDbBreakPointRefPtrArray &ptRefs) const
virtual void erased(const OdDbObject *pObj, bool erasing)
ODDB_DECLARE_MEMBERS(OdDbBreakData)
void getBreakPointRef(int lineIndex, OdDbBreakPointRefPtrArray &ptRefs) const
virtual OdResult dxfInFields(OdDbDxfFiler *)
OdResult updateAssociativity(const OdDbObjectIdArray &ids, int cmdType)
void setDimObjId(const OdDbObjectId &dimId)
void addBreakPointRef(OdDbBreakPointRef *ptRef)
virtual void dwgOutFields(OdDbDwgFiler *) const
void deleteAllBreakPointRefs()
OdDbObjectId dimObjId() const
OdResult removeAssociativity(bool force=true)
virtual OdResult dwgInFields(OdDbDwgFiler *)
virtual void modified(const OdDbObject *pObj)
virtual void modifiedGraphics(const OdDbObject *pEnt) ODRX_OVERRIDE
void setBreakPoint2(const OdGePoint3d &pt)
virtual void dxfOutFields(OdDbDxfFiler *) const
virtual void dwgOutFields(OdDbDwgFiler *) const
virtual OdResult dxfInFields(OdDbDxfFiler *)
OdGePoint3d breakPoint2() const
void setBreakPoint(const OdGePoint3d &pt)
OdInt32 lineIndex() const
void setBreakPointId(const OdDbXrefFullSubentPath &idPath)
void setLineIndex(OdInt32 index)
void setPointType(OdDbBreakPointRef::BreakPointType newVal)
virtual OdResult dwgInFields(OdDbDwgFiler *)
OdResult intersectWith(const OdDbEntity *pEnt, OdGePoint3dArray &points, OdGePoint3dArray &textBoxPts)
OdDbBreakPointRef::BreakPointType pointType() const
ODDB_DECLARE_MEMBERS(OdDbBreakPointRef)
OdGePoint3d breakPoint() const
void getBreakPointId(OdDbXrefFullSubentPath &idPath) const
OdDbEntityPtr subentPtr() const
GLuint index
Definition: gles2_ext.h:265