CFx SDK Documentation  2020SP3
DbFcf.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 DBFCF_H
28 #define DBFCF_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 #include "DbDimStyleTableRecord.h"
34 
41 {
42 public:
44 
46 
47  enum whichLine
48  {
49  kAll = -1
50  };
51 
85  virtual void setText(
86  const OdString& fcfText);
87 
124  virtual const OdString text(
125  int lineNo = kAll) const;
126 
135  virtual void setLocation(
136  const OdGePoint3d& insPoint);
137 
144  virtual OdGePoint3d location() const;
145 
151  virtual void setOrientation(
152  const OdGeVector3d& normal,
153  const OdGeVector3d& direction);
154 
158  virtual OdGeVector3d normal() const;
159 
163  virtual OdGeVector3d direction() const;
164 
170  virtual void setDimensionStyle(
171  OdDbHardPointerId dimStyleId);
172 
177 
189 
200 
216  double dimgap() const;
217 
238  double dimscale() const;
239 
251 
262  double dimtxt() const;
263 
271  const OdCmColor& val);
272 
280  const OdCmColor& val);
281 
293  void setDimgap(
294  double val);
295 
313  double val);
314 
322  OdDbObjectId val);
323 
330  void setDimtxt(
331  double val);
332 
333  virtual OdResult subGetClassID(void* pClsid) const ODRX_OVERRIDE;
334 
336 
337  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const ODRX_OVERRIDE;
338 
340 
341  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const ODRX_OVERRIDE;
342 
343  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const ODRX_OVERRIDE;
344 
346 
348 
353  virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE;
354 
371  virtual void getBoundingPoints(
372  OdGePoint3dArray& boundingPoints) const ;
373 
374  virtual void subClose() ODRX_OVERRIDE;
375 
376  virtual void modified(const OdDbObject* pObject) ODRX_OVERRIDE;
377 
387  void getDimstyleData(
388  OdDbDimStyleTableRecord *pRecord) const;
389 
399  void setDimstyleData(
400  const OdDbDimStyleTableRecord* pDimstyle);
401 
411  void setDimstyleData(
412  OdDbObjectId dimstyleID);
413 
419  virtual void getBoundingPline(
421  ptArray) const;
422  /*
423  virtual void getGripPoints(OdGePoint3dArray&, OdDbIntArray&, OdDbIntArray&) const;
424  virtual void moveGripPointsAt(const OdDbIntArray&, const OdGeVector3d&);
425  */
426 
427  virtual OdDbObjectPtr decomposeForSave(
428  OdDb::DwgVersion ver,
429  OdDbObjectId& replaceId,
430  bool& exchangeXData) ODRX_OVERRIDE;
431 
432  virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const ODRX_OVERRIDE;
433  virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& idMap, OdDbObject* owner, bool bPrimary) const ODRX_OVERRIDE;
434 };
439 
440 #include "TD_PackPop.h"
441 
442 #endif
443 
OdResult
OdResult
Definition: OdResult.h:29
OdDbFcf::normal
virtual OdGeVector3d normal() const
OdDbFcf::setDimscale
void setDimscale(double val)
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbFcf::setDimtxsty
void setDimtxsty(OdDbObjectId val)
OdDbFcf::dimclrt
OdCmColor dimclrt() const
OdDbFcf::direction
virtual OdGeVector3d direction() const
OdDbDimStyleTableRecord
Definition: DbDimStyleTableRecord.h:316
OdDbFcf::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const ODRX_OVERRIDE
OdDbFcf::setDimensionStyle
virtual void setDimensionStyle(OdDbHardPointerId dimStyleId)
OdDbObjectId
Definition: DbObjectId.h:99
OdDbFcf::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const ODRX_OVERRIDE
OdDbFcf::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) ODRX_OVERRIDE
OdDbFcf::subClose
virtual void subClose() ODRX_OVERRIDE
OdDbFcf::setText
virtual void setText(const OdString &fcfText)
OdDbFcf::dimensionStyle
virtual OdDbHardPointerId dimensionStyle() const
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
OdDbFcf::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) ODRX_OVERRIDE
OdDbFcf::dimclrd
OdCmColor dimclrd() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbFcf::setDimclrd
void setDimclrd(const OdCmColor &val)
OdDb::DwgVersion
DwgVersion
Definition: OdaDefs.h:46
OdDbFcf::whichLine
whichLine
Definition: DbFcf.h:48
OdDbFcf::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const ODRX_OVERRIDE
OdDbFcf::text
virtual const OdString text(int lineNo=kAll) const
OdSmartPtr< OdDbObject >
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDbFcf::setDimtxt
void setDimtxt(double val)
OdDbHardPointerId
Definition: DbObjectId.h:453
OdDbFcf::dimgap
double dimgap() const
OdDbFcf::dimtxsty
OdDbObjectId dimtxsty() const
OdDbFcf::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbFcf)
OdDbFcf::dimtxt
double dimtxt() const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbFcf::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const ODRX_OVERRIDE
TD_PackPush.h
OdDbFcf::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
OdDbFcf::setLocation
virtual void setLocation(const OdGePoint3d &insPoint)
OdDbFcf::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const ODRX_OVERRIDE
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbFcf::setDimclrt
void setDimclrt(const OdCmColor &val)
OdDbEntity
Definition: DbEntity.h:90
OdDbFcf::getBoundingPoints
virtual void getBoundingPoints(OdGePoint3dArray &boundingPoints) const
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbFcf
Definition: DbFcf.h:41
DbDimStyleTableRecord.h
OdDb
Definition: Db2dPolyline.h:50
OdDbFcf::dimscale
double dimscale() const
OdDbFcf::location
virtual OdGePoint3d location() const
OdDbFcf::setOrientation
virtual void setOrientation(const OdGeVector3d &normal, const OdGeVector3d &direction)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbFcf::OdDbFcf
OdDbFcf()
OdCmColor
Definition: CmColor.h:59
OdDbIdMapping
Definition: DbIdMapping.h:238
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdDbFcf::subSetDatabaseDefaults
virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE
OdDbFcf::setDimgap
void setDimgap(double val)