HMFCDemoModel.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // HMFCDemoModel.h : interface of the HMFCDemoModel.cpp class, derived from HBaseModel
  2. // Adds application-specific data and members for each model
  3. #ifndef _HMFCDemoModel_H
  4. #define _HMFCDemoModel_H
  5. #include "HDB.h"
  6. #include "HBaseModel.h"
  7. #include "HTools.h"
  8. #include "ha_bridge.h"
  9. class CModellerInfo;
  10. class HA_Part;
  11. class ENTITY_LIST;
  12. class HMFCDemoModel : public HBaseModel
  13. {
  14. public:
  15. HMFCDemoModel();
  16. virtual ~HMFCDemoModel();
  17. // Overrides
  18. HFileInputResult Read(const char * FileName);
  19. bool Write(const char * FileName, HBaseView * pHView, int version, int width = 0, int height = 0);
  20. void DeleteAllEntities();
  21. bool IsSolidModel(){ return m_bSolidModel; };
  22. void SetSolidModel(bool brep){ m_bSolidModel = brep;};
  23. HA_Part* GetHAPart() {return m_pHAPart; };
  24. void DeleteAcisEntity( ENTITY* entity);
  25. void DeleteAcisEntities( ENTITY_LIST& elist);
  26. void AddAcisEntity( ENTITY* entity);
  27. void AddAcisEntitiesToPart( ENTITY_LIST& list);
  28. void RemoveAcisEntity( ENTITY* entity);
  29. void UpdateAcisEntity( ENTITY* entity);
  30. void AddAcisEntities( const ENTITY_LIST& entityList);
  31. void GetEntityList(ENTITY_LIST& elist);
  32. logical Undo();
  33. logical Redo();
  34. logical CanUndo();
  35. logical CanRedo();
  36. CModellerInfo *m_mi;
  37. protected:
  38. HA_Part* m_pHAPart;
  39. // do we have any solid modeler entities
  40. bool m_bSolidModel;
  41. };
  42. #endif