1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // HMFCDemoModel.h : interface of the HMFCDemoModel.cpp class, derived from HBaseModel
- // Adds application-specific data and members for each model
- #ifndef _HMFCDemoModel_H
- #define _HMFCDemoModel_H
- #include "HDB.h"
- #include "HBaseModel.h"
- #include "HTools.h"
- #include "ha_bridge.h"
- class CModellerInfo;
- class HA_Part;
- class ENTITY_LIST;
- class HMFCDemoModel : public HBaseModel
- {
- public:
- HMFCDemoModel();
- virtual ~HMFCDemoModel();
- // Overrides
- HFileInputResult Read(const char * FileName);
- bool Write(const char * FileName, HBaseView * pHView, int version, int width = 0, int height = 0);
- void DeleteAllEntities();
- bool IsSolidModel(){ return m_bSolidModel; };
- void SetSolidModel(bool brep){ m_bSolidModel = brep;};
- HA_Part* GetHAPart() {return m_pHAPart; };
- void DeleteAcisEntity( ENTITY* entity);
- void DeleteAcisEntities( ENTITY_LIST& elist);
- void AddAcisEntity( ENTITY* entity);
- void AddAcisEntitiesToPart( ENTITY_LIST& list);
- void RemoveAcisEntity( ENTITY* entity);
- void UpdateAcisEntity( ENTITY* entity);
- void AddAcisEntities( const ENTITY_LIST& entityList);
- void GetEntityList(ENTITY_LIST& elist);
- logical Undo();
- logical Redo();
- logical CanUndo();
- logical CanRedo();
- CModellerInfo *m_mi;
- protected:
- HA_Part* m_pHAPart;
- // do we have any solid modeler entities
- bool m_bSolidModel;
- };
- #endif
|