dbbody.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. //
  3. //////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Copyright 2015 Autodesk, Inc. All rights reserved.
  6. //
  7. // Use of this software is subject to the terms of the Autodesk license
  8. // agreement provided at the time of installation or download, or which
  9. // otherwise accompanies this software in either electronic or hard copy form.
  10. //
  11. //////////////////////////////////////////////////////////////////////////////
  12. //
  13. //
  14. // DESCRIPTION:
  15. // The AcDbBody class is the interface class for representing
  16. // general ACIS bodies inside AutoCAD. All the functionality
  17. // supported through this class is implemented in the class
  18. // AcDbImpBody and its base classes.
  19. #ifndef GEOMENT_DBBODY_H
  20. #define GEOMENT_DBBODY_H
  21. #include "dbmain.h"
  22. #include "dbsubeid.h"
  23. #pragma pack (push, 8)
  24. class AcDbBody: public AcDbEntity
  25. {
  26. public:
  27. ACDB_DECLARE_MEMBERS(AcDbBody);
  28. AcDbBody();
  29. virtual ~AcDbBody();
  30. virtual Adesk::Boolean isNull () const;
  31. ACDB_PORT virtual void dragStatus(const AcDb::DragStat);
  32. virtual void* ASMBodyCopy(bool bDeepCopy = false) const; // INTERNAL USE ONLY
  33. virtual void const * getLockedASMBody(); // INTERNAL USE ONLY
  34. virtual void unlockASMBody(); // INTERNAL USE ONLY
  35. virtual void* getLockedWritableASMBody(); // INTERNAL USE ONLY
  36. virtual void commitWritableASMBody(); // INTERNAL USE ONLY
  37. virtual Acad::ErrorStatus setASMBody (const void* modelerBody); // INTERNAL USE ONLY
  38. virtual AcDbSubentId internalSubentId (void*) const; // INTERNAL USE ONLY
  39. virtual void* internalSubentPtr(const AcDbSubentId& id) const; // INTERNAL USE ONLY
  40. static Acad::ErrorStatus acisOut (const ACHAR* fileName,
  41. const AcDbVoidPtrArray&);
  42. static Acad::ErrorStatus acisIn (const ACHAR* fileName,
  43. AcDbVoidPtrArray&);
  44. virtual Adesk::UInt32 numChanges() const;
  45. ACDB_PORT virtual bool usesGraphicsCache();
  46. void invalidateCachedBodySubentIds(); // INTERNAL USE ONLY
  47. };
  48. #pragma pack (pop)
  49. #endif