HoleClr.h 749 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "DomainClr.h"
  3. #include "Hole.h"
  4. namespace OTSCLRINTERFACE {
  5. using namespace System;
  6. using namespace System::Drawing;
  7. using namespace OTSDATA;
  8. public ref class CHoleClr
  9. {
  10. public:
  11. CHoleClr(); // constructor
  12. CHoleClr(String^ a_strName, int a_nShape, System::Drawing::Rectangle^ a_rectDomain); // constructor
  13. CHoleClr(CHolePtr);
  14. CHoleClr(CHole*);
  15. ~CHoleClr();
  16. !CHoleClr();
  17. CHolePtr GetHolePtr();
  18. // get and set hole name
  19. String^ GetName();
  20. void SetName(String^ a_strName);
  21. int GetShape() { return (int)m_Hole->get()->GetShape(); }
  22. System::Drawing::Rectangle GetRectDomain();
  23. private:
  24. CHolePtr * m_Hole;
  25. };
  26. typedef System::Collections::Generic::List<CHoleClr^> CHoleListClr;
  27. }