dbViewRepBlockReference.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. #pragma once
  12. #pragma pack (push, 8)
  13. #ifndef ACSYNERGY_PORT
  14. #define ACSYNERGY_PORT
  15. #endif
  16. class AcDbImpViewRepBlockReference;
  17. class ACSYNERGY_PORT AcDbViewRepBlockReference : public AcDbBlockReference
  18. {
  19. friend class AcDbViewRepBlockReferenceInternals;
  20. public:
  21. ACRX_DECLARE_MEMBERS(AcDbViewRepBlockReference);
  22. virtual ~AcDbViewRepBlockReference();
  23. AcDbObjectId ownerViewportId() const;
  24. // AcRxObject Protocol
  25. virtual Acad::ErrorStatus copyFrom(const AcRxObject* pSrc);
  26. // AcDbObject methods
  27. virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler* pFiler) const;
  28. virtual Acad::ErrorStatus dwgInFields(AcDbDwgFiler* pFiler);
  29. virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler* pFiler) const;
  30. virtual Acad::ErrorStatus dxfInFields(AcDbDxfFiler* pFiler);
  31. virtual Acad::ErrorStatus audit(AcDbAuditInfo* pAuditInfo);
  32. // AcDbEntity methods
  33. virtual void saveAs(AcGiWorldDraw* mode, AcDb::SaveType st);
  34. virtual Acad::ErrorStatus subGetGeomExtents(AcDbExtents& extents) const;
  35. virtual Acad::ErrorStatus subGetGsMarkersAtSubentPath(
  36. const AcDbFullSubentPath& subPath,
  37. AcArray<Adesk::GsMarker>& gsMarkers) const;
  38. // AcDbBlockReference methods
  39. virtual AcGePoint3d position() const;
  40. protected:
  41. // AcDbObject methods
  42. virtual Adesk::Boolean subWorldDraw(AcGiWorldDraw* mode);
  43. virtual void subViewportDraw(AcGiViewportDraw* pVd);
  44. virtual Acad::ErrorStatus subTransformBy(const AcGeMatrix3d& xform);
  45. virtual Acad::ErrorStatus subPushHighlight (const AcDbFullSubentPath& subId,
  46. AcGiHighlightStyle highlightStyle);
  47. virtual Acad::ErrorStatus subPopHighlight (const AcDbFullSubentPath& subId);
  48. public:
  49. // internal use only methods
  50. AcDbViewRepBlockReference();
  51. AcDbViewRepBlockReference(const AcGePoint3d& position, AcDbObjectId blockTableRecord);
  52. void setOwnerViewportId(const AcDbObjectId& viewportId);
  53. private:
  54. AcDbImpViewRepBlockReference* getImpObject();
  55. AcDbImpViewRepBlockReference* mpAcDbImpViewRepBlockReference;
  56. };
  57. #pragma pack (pop)