first commit
This commit is contained in:
commit
1b2bf174e8
164 files changed
+35594
No files matched your search
@@ -0,0 +1,71 @@
|
||||
//## begin module.cm preserve=no␍
|
||||
// %X% %Q% %Z% %W%␍
|
||||
//## end module.cm␍
|
||||
␍
|
||||
//## begin module.cp preserve=no␍
|
||||
//## end module.cp␍
|
||||
␍
|
||||
//## Module: DebugGraphics; Pseudo Package body␍
|
||||
//## Subsystem: Graphic␍
|
||||
//## Source file: H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Graphic\DbgGrphc.cpp␍
|
||||
␍
|
||||
//## begin module.additionalIncludes preserve=no␍
|
||||
//## end module.additionalIncludes␍
|
||||
␍
|
||||
//## begin module.includes preserve=yes␍
|
||||
//## end module.includes␍
|
||||
␍
|
||||
// DebugGraphics␍
|
||||
#include "Graphic\DbgGrphc.h"␍
|
||||
//## begin module.additionalDeclarations preserve=yes␍
|
||||
//## end module.additionalDeclarations␍
|
||||
␍
|
||||
␍
|
||||
// Class DebugGraphics ␍
|
||||
␍
|
||||
DebugGraphics::DebugGraphics()␍
|
||||
//## begin DebugGraphics::DebugGraphics%.hasinit preserve=no␍
|
||||
//## end DebugGraphics::DebugGraphics%.hasinit␍
|
||||
//## begin DebugGraphics::DebugGraphics%.initialization preserve=yes␍
|
||||
//## end DebugGraphics::DebugGraphics%.initialization␍
|
||||
{␍
|
||||
//## begin DebugGraphics::DebugGraphics%.body preserve=yes␍
|
||||
//## end DebugGraphics::DebugGraphics%.body␍
|
||||
}␍
|
||||
␍
|
||||
␍
|
||||
DebugGraphics::~DebugGraphics()␍
|
||||
{␍
|
||||
//## begin DebugGraphics::~DebugGraphics%.body preserve=yes␍
|
||||
//## end DebugGraphics::~DebugGraphics%.body␍
|
||||
}␍
|
||||
␍
|
||||
␍
|
||||
␍
|
||||
//## Other Operations (implementation)␍
|
||||
void DebugGraphics::drawCircle ()␍
|
||||
{␍
|
||||
//## begin DebugGraphics::drawCircle%938586296.body preserve=yes␍
|
||||
//## end DebugGraphics::drawCircle%938586296.body␍
|
||||
}␍
|
||||
␍
|
||||
void DebugGraphics::drawRectangle ()␍
|
||||
{␍
|
||||
//## begin DebugGraphics::drawRectangle%938586297.body preserve=yes␍
|
||||
//## end DebugGraphics::drawRectangle%938586297.body␍
|
||||
}␍
|
||||
␍
|
||||
void DebugGraphics::drawLine ()␍
|
||||
{␍
|
||||
//## begin DebugGraphics::drawLine%938586298.body preserve=yes␍
|
||||
//## end DebugGraphics::drawLine%938586298.body␍
|
||||
}␍
|
||||
␍
|
||||
// Additional Declarations␍
|
||||
//## begin DebugGraphics.declarations preserve=yes␍
|
||||
//## end DebugGraphics.declarations␍
|
||||
␍
|
||||
␍
|
||||
␍
|
||||
//## begin module.epilog preserve=yes␍
|
||||
//## end module.epilog␍
|
||||
@@ -0,0 +1,89 @@
|
||||
//## begin module.cm preserve=no␍
|
||||
// %X% %Q% %Z% %W%␍
|
||||
//## end module.cm␍
|
||||
␍
|
||||
//## begin module.cp preserve=no␍
|
||||
//## end module.cp␍
|
||||
␍
|
||||
//## Module: DebugGraphics; Pseudo Package specification␍
|
||||
//## Subsystem: Graphic␍
|
||||
//## Source file: H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Graphic\DbgGrphc.h␍
|
||||
␍
|
||||
#ifndef DbgGrphc_h␍
|
||||
#define DbgGrphc_h 1␍
|
||||
␍
|
||||
//## begin module.additionalIncludes preserve=no␍
|
||||
//## end module.additionalIncludes␍
|
||||
␍
|
||||
//## begin module.includes preserve=yes␍
|
||||
//## end module.includes␍
|
||||
␍
|
||||
// Graphics␍
|
||||
#include "Graphic\Graphics.h"␍
|
||||
//## begin module.additionalDeclarations preserve=yes␍
|
||||
#include "H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Graphic\DbgGrphc.h"␍
|
||||
//## end module.additionalDeclarations␍
|
||||
␍
|
||||
␍
|
||||
//## Class: DebugGraphics␍
|
||||
//## Category: Graphic␍
|
||||
//## Subsystem: Graphic␍
|
||||
//## Persistence: Transient␍
|
||||
//## Cardinality/Multiplicity: n␍
|
||||
␍
|
||||
class DebugGraphics : public Graphics //## Inherits: <unnamed>␍
|
||||
{␍
|
||||
//## begin DebugGraphics.initialDeclarations preserve=yes␍
|
||||
//## end DebugGraphics.initialDeclarations␍
|
||||
␍
|
||||
public:␍
|
||||
//## Constructors (generated)␍
|
||||
DebugGraphics();␍
|
||||
␍
|
||||
//## Destructor (generated)␍
|
||||
~DebugGraphics();␍
|
||||
␍
|
||||
␍
|
||||
//## Other Operations (specified)␍
|
||||
//## Operation: drawCircle%938586296␍
|
||||
void drawCircle ();␍
|
||||
␍
|
||||
//## Operation: drawRectangle%938586297␍
|
||||
void drawRectangle ();␍
|
||||
␍
|
||||
//## Operation: drawLine%938586298␍
|
||||
void drawLine ();␍
|
||||
␍
|
||||
// Additional Public Declarations␍
|
||||
//## begin DebugGraphics.public preserve=yes␍
|
||||
//## end DebugGraphics.public␍
|
||||
␍
|
||||
protected:␍
|
||||
// Additional Protected Declarations␍
|
||||
//## begin DebugGraphics.protected preserve=yes␍
|
||||
//## end DebugGraphics.protected␍
|
||||
␍
|
||||
private:␍
|
||||
// Additional Private Declarations␍
|
||||
//## begin DebugGraphics.private preserve=yes␍
|
||||
//## end DebugGraphics.private␍
|
||||
␍
|
||||
private: //## implementation␍
|
||||
// Additional Implementation Declarations␍
|
||||
//## begin DebugGraphics.implementation preserve=yes␍
|
||||
//## end DebugGraphics.implementation␍
|
||||
␍
|
||||
};␍
|
||||
␍
|
||||
//## begin DebugGraphics.postscript preserve=yes␍
|
||||
//## end DebugGraphics.postscript␍
|
||||
␍
|
||||
// Class DebugGraphics ␍
|
||||
␍
|
||||
␍
|
||||
␍
|
||||
//## begin module.epilog preserve=yes␍
|
||||
//## end module.epilog␍
|
||||
␍
|
||||
␍
|
||||
#endif␍
|
||||
@@ -0,0 +1,82 @@
|
||||
//## begin module.cm preserve=no␍
|
||||
// %X% %Q% %Z% %W%␍
|
||||
//## end module.cm␍
|
||||
␍
|
||||
//## begin module.cp preserve=no␍
|
||||
//## end module.cp␍
|
||||
␍
|
||||
//## Module: Graphics; Pseudo Package body␍
|
||||
//## Subsystem: Graphic␍
|
||||
//## Source file: H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Graphic\Graphics.cpp␍
|
||||
␍
|
||||
//## begin module.additionalIncludes preserve=no␍
|
||||
//## end module.additionalIncludes␍
|
||||
␍
|
||||
//## begin module.includes preserve=yes␍
|
||||
//## end module.includes␍
|
||||
␍
|
||||
// Graphics␍
|
||||
#include "Graphic\Graphics.h"␍
|
||||
//## begin module.additionalDeclarations preserve=yes␍
|
||||
#include <iostream.h>␍
|
||||
//## end module.additionalDeclarations␍
|
||||
␍
|
||||
␍
|
||||
// Class Graphics ␍
|
||||
␍
|
||||
Graphics::Graphics()␍
|
||||
//## begin Graphics::Graphics%.hasinit preserve=no␍
|
||||
//## end Graphics::Graphics%.hasinit␍
|
||||
//## begin Graphics::Graphics%.initialization preserve=yes␍
|
||||
//## end Graphics::Graphics%.initialization␍
|
||||
{␍
|
||||
//## begin Graphics::Graphics%.body preserve=yes␍
|
||||
//## end Graphics::Graphics%.body␍
|
||||
}␍
|
||||
␍
|
||||
␍
|
||||
Graphics::~Graphics()␍
|
||||
{␍
|
||||
//## begin Graphics::~Graphics%.body preserve=yes␍
|
||||
//## end Graphics::~Graphics%.body␍
|
||||
}␍
|
||||
␍
|
||||
␍
|
||||
␍
|
||||
//## Other Operations (implementation)␍
|
||||
void Graphics::drawCircle (Point center, int radius, Color color)␍
|
||||
{␍
|
||||
//## begin Graphics::drawCircle%938436810.body preserve=yes␍
|
||||
cout << "\nCircle drawn with ("<<center.getx()<<","<<center.gety()<<") ,radius="<<radius<<" , color="<<color;␍
|
||||
//## end Graphics::drawCircle%938436810.body␍
|
||||
}␍
|
||||
␍
|
||||
void Graphics::drawRectangle (Point leftTop, Point rightBottom, Color color)␍
|
||||
{␍
|
||||
//## begin Graphics::drawRectangle%938436812.body preserve=yes␍
|
||||
cout << "\nRectangle drawn with ("<<leftTop.getx()<<","<<leftTop.gety()<<") to ("<<rightBottom.getx()<<","<<rightBottom.getx()<<"), color="<<color;␍
|
||||
//## end Graphics::drawRectangle%938436812.body␍
|
||||
}␍
|
||||
␍
|
||||
void Graphics::drawLine (int x1, int y1, int x2, int y2, Color color)␍
|
||||
{␍
|
||||
//## begin Graphics::drawLine%938436813.body preserve=yes␍
|
||||
cout << "\nLine drawn from ("<<x1<<","<<y1<<") to ("<<x2<<","<<y2<<"), color="<<color;␍
|
||||
//## end Graphics::drawLine%938436813.body␍
|
||||
}␍
|
||||
␍
|
||||
Color Graphics::getBGColor ()␍
|
||||
{␍
|
||||
//## begin Graphics::getBGColor%939797852.body preserve=yes␍
|
||||
return 0;␍
|
||||
//## end Graphics::getBGColor%939797852.body␍
|
||||
}␍
|
||||
␍
|
||||
// Additional Declarations␍
|
||||
//## begin Graphics.declarations preserve=yes␍
|
||||
//## end Graphics.declarations␍
|
||||
␍
|
||||
␍
|
||||
␍
|
||||
//## begin module.epilog preserve=yes␍
|
||||
//## end module.epilog␍
|
||||
@@ -0,0 +1,95 @@
|
||||
//## 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␍
|
||||
Reference in new issue
Block a user