dbfcf.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. //
  13. // DESCRIPTION:
  14. //
  15. // The AcDbFcf class represents a geometric tolerance as defined by
  16. // ANSI Y14.5
  17. #ifndef DBFCF_H
  18. #define DBFCF_H
  19. #include "dbmain.h"
  20. #pragma pack(push, 8)
  21. class AcDbFcf: public AcDbEntity
  22. {
  23. public:
  24. ACDB_DECLARE_MEMBERS(AcDbFcf);
  25. AcDbFcf();
  26. AcDbFcf(const ACHAR *, const AcGePoint3d&,
  27. const AcGeVector3d&, const AcGeVector3d&);
  28. virtual ~AcDbFcf();
  29. // Geometric or visual properties.
  30. enum whichLine {kAll = -1};
  31. virtual void setText (const ACHAR *);
  32. virtual ACHAR * text (const int lineNo = kAll) const;
  33. virtual void setLocation (const AcGePoint3d&);
  34. virtual AcGePoint3d location () const;
  35. virtual void setOrientation (const AcGeVector3d& norm,
  36. const AcGeVector3d& dir);
  37. virtual AcGeVector3d normal() const;
  38. virtual AcGeVector3d direction() const;
  39. virtual void getBoundingPoints(AcGePoint3dArray&) const;
  40. virtual void getBoundingPline(AcGePoint3dArray&) const;
  41. virtual void setDimensionStyle(AcDbHardPointerId);
  42. virtual AcDbHardPointerId dimensionStyle() const;
  43. Acad::ErrorStatus getDimstyleData(AcDbDimStyleTableRecord*& pRecord) const;
  44. Acad::ErrorStatus setDimstyleData(AcDbDimStyleTableRecord* pNewData);
  45. Acad::ErrorStatus setDimstyleData(AcDbObjectId newDataId);
  46. virtual void setDimVars();
  47. // Dimension variable get methods in alphabetic order:
  48. //
  49. AcCmColor dimclrd () const;
  50. AcCmColor dimclrt () const;
  51. double dimgap () const;
  52. double dimscale() const;
  53. AcDbObjectId dimtxsty() const;
  54. double dimtxt () const;
  55. // Dimension variable set methods in alphabetic order:
  56. //
  57. Acad::ErrorStatus setDimclrd (AcCmColor& val);
  58. Acad::ErrorStatus setDimclrt (AcCmColor& val);
  59. Acad::ErrorStatus setDimgap (double val);
  60. Acad::ErrorStatus setDimscale(double val);
  61. Acad::ErrorStatus setDimtxsty(AcDbObjectId val);
  62. Acad::ErrorStatus setDimtxt (double val);
  63. protected:
  64. // Get corresponding COM wrapper class ID
  65. //
  66. virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
  67. };
  68. #pragma pack(pop)
  69. #endif