appmodel.h 1.2 KB

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