CFx SDK Documentation  2022 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
Definition: DbFcf.h:41
OdCmColor dimclrt() const
OdCmColor dimclrd() const
virtual OdGeVector3d normal() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) ODRX_OVERRIDE
virtual void getBoundingPoints(OdGePoint3dArray &boundingPoints) const
virtual OdGeVector3d direction() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) ODRX_OVERRIDE
virtual void setText(const OdString &fcfText)
double dimscale() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const ODRX_OVERRIDE
void setDimtxsty(OdDbObjectId val)
whichLine
Definition: DbFcf.h:48
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
void setDimgap(double val)
virtual const OdString text(int lineNo=kAll) const
virtual OdDbHardPointerId dimensionStyle() const
virtual void setOrientation(const OdGeVector3d &normal, const OdGeVector3d &direction)
double dimgap() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const ODRX_OVERRIDE
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const ODRX_OVERRIDE
void setDimclrt(const OdCmColor &val)
virtual OdResult subGetClassID(void *pClsid) const ODRX_OVERRIDE
virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE
OdDbObjectId dimtxsty() const
virtual void setDimensionStyle(OdDbHardPointerId dimStyleId)
virtual void setLocation(const OdGePoint3d &insPoint)
void setDimscale(double val)
virtual void subClose() ODRX_OVERRIDE
double dimtxt() const
void setDimclrd(const OdCmColor &val)
virtual OdGePoint3d location() const
ODDB_DECLARE_MEMBERS(OdDbFcf)
virtual void subViewportDraw(OdGiViewportDraw *pVd) const ODRX_OVERRIDE
void setDimtxt(double val)
DwgVersion
Definition: OdaDefs.h:46