96 lines
2.4 KiB
C++
96 lines
2.4 KiB
C++
//## begin module.cm preserve=no
|
|
|
|
// %X% %Q% %Z% %W%
|
|
|
|
//## end module.cm
|
|
|
|
|
|
|
|
//## begin module.cp preserve=no
|
|
|
|
//## end module.cp
|
|
|
|
|
|
|
|
//## Module: Graphics; Pseudo Package specification
|
|
|
|
//## Subsystem: Graphic
|
|
|
|
//## Source file: H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Graphic\Graphics.h
|
|
|
|
|
|
|
|
#ifndef Graphics_h
|
|
|
|
#define Graphics_h 1
|
|
|
|
|
|
|
|
//## begin module.additionalIncludes preserve=no
|
|
|
|
//## end module.additionalIncludes
|
|
|
|
|
|
|
|
//## begin module.includes preserve=yes
|
|
|
|
#include "Point.h"
|
|
|
|
//## end module.includes
|
|
|
|
|
|
|
|
// Point
|
|
|
|
#include "H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Point.h"
|
|
|
|
//## begin module.additionalDeclarations preserve=yes
|
|
|
|
typedef int Color;
|
|
|
|
//## end module.additionalDeclarations
|
|
|
|
|
|
|
|
|
|
|
|
//## Class: Graphics; Abstract
|
|
|
|
//## Category: Graphic
|
|
|
|
//## Subsystem: Graphic
|
|
|
|
//## Persistence: Transient
|
|
|
|
//## Cardinality/Multiplicity: n
|
|
|
|
|
|
|
|
//## Uses: <unnamed>; Point { -> }
|
|
|
|
|
|
|
|
class Graphics
|
|
|
|
{
|
|
|
|
//## begin Graphics.initialDeclarations preserve=yes
|
|
|
|
//## end Graphics.initialDeclarations
|
|
|
|
|
|
|
|
public:
|
|
|
|
//## Constructors (generated)
|
|
|
|
Graphics();
|
|
|
|
|
|
|
|
//## Destructor (generated)
|
|
|
|
~Graphics();
|
|
|
|
|
|
|
|
|
|
|
|
//## Other Operations (specified)
|
|
|
|
//## Operation: drawCircle%938436810
|
|
|
|
void drawCircle (Point center, int radius, Color color);
|
|
|
|
|
|
|
|
//## Operation: drawRectangle%938436812
|
|
|
|
void drawRectangle (Point leftTop, Point rightBottom, Color color);
|
|
|
|
|
|
|
|
//## Operation: drawLine%938436813
|
|
|
|
void drawLine (int x1, int y1, int x2, int y2, Color color);
|
|
|
|
|
|
|
|
//## Operation: getBGColor%939797852
|
|
|
|
Color getBGColor ();
|
|
|
|
|
|
|
|
// Additional Public Declarations
|
|
|
|
//## begin Graphics.public preserve=yes
|
|
|
|
//## end Graphics.public
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Additional Protected Declarations
|
|
|
|
//## begin Graphics.protected preserve=yes
|
|
|
|
//## end Graphics.protected
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Additional Private Declarations
|
|
|
|
//## begin Graphics.private preserve=yes
|
|
|
|
//## end Graphics.private
|
|
|
|
|
|
|
|
private: //## implementation
|
|
|
|
// Additional Implementation Declarations
|
|
|
|
//## begin Graphics.implementation preserve=yes
|
|
|
|
//## end Graphics.implementation
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//## begin Graphics.postscript preserve=yes
|
|
|
|
//## end Graphics.postscript
|
|
|
|
|
|
|
|
// Class Graphics
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## begin module.epilog preserve=yes
|
|
|
|
//## end module.epilog
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|