101 lines
2.5 KiB
C++
101 lines
2.5 KiB
C++
//## begin module.cm preserve=no
|
|
|
|
// %X% %Q% %Z% %W%
|
|
|
|
//## end module.cm
|
|
|
|
|
|
|
|
//## begin module.cp preserve=no
|
|
|
|
//## end module.cp
|
|
|
|
|
|
|
|
//## Module: ComplexFigure; Pseudo Package specification
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Source file: CmplxFgr.h
|
|
|
|
|
|
|
|
#ifndef CmplxFgr_h
|
|
|
|
#define CmplxFgr_h 1
|
|
|
|
|
|
|
|
//## begin module.additionalIncludes preserve=no
|
|
|
|
//## end module.additionalIncludes
|
|
|
|
|
|
|
|
//## begin module.includes preserve=yes
|
|
|
|
//## end module.includes
|
|
|
|
|
|
|
|
// Figure
|
|
|
|
#include "Figure.h"
|
|
|
|
// FList
|
|
|
|
#include "FList.h"
|
|
|
|
//## begin module.additionalDeclarations preserve=yes
|
|
|
|
//## end module.additionalDeclarations
|
|
|
|
|
|
|
|
|
|
|
|
//## Class: ComplexFigure
|
|
|
|
//## Category: Figures
|
|
|
|
//## Subsystem: Figures
|
|
|
|
//## Persistence: Transient
|
|
|
|
//## Cardinality/Multiplicity: n
|
|
|
|
|
|
|
|
class ComplexFigure : public Figure //## Inherits: <unnamed>
|
|
|
|
{
|
|
|
|
//## begin ComplexFigure.initialDeclarations preserve=yes
|
|
|
|
//## end ComplexFigure.initialDeclarations
|
|
|
|
|
|
|
|
public:
|
|
|
|
//## Constructors (generated)
|
|
|
|
ComplexFigure();
|
|
|
|
|
|
|
|
//## Destructor (generated)
|
|
|
|
~ComplexFigure();
|
|
|
|
|
|
|
|
|
|
|
|
//## Other Operations (specified)
|
|
|
|
//## Operation: draw%939104770
|
|
|
|
void draw (Graphics &g);
|
|
|
|
|
|
|
|
//## Operation: erase%939104771
|
|
|
|
void erase (Graphics &g);
|
|
|
|
|
|
|
|
//## Operation: clone%939104772
|
|
|
|
Figure * clone ();
|
|
|
|
|
|
|
|
//## Operation: add%939734506
|
|
|
|
void add (FigureHolder figure);
|
|
|
|
|
|
|
|
// Additional Public Declarations
|
|
|
|
//## begin ComplexFigure.public preserve=yes
|
|
|
|
//## end ComplexFigure.public
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Additional Protected Declarations
|
|
|
|
//## begin ComplexFigure.protected preserve=yes
|
|
|
|
//## end ComplexFigure.protected
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Additional Private Declarations
|
|
|
|
//## begin ComplexFigure.private preserve=yes
|
|
|
|
//## end ComplexFigure.private
|
|
|
|
|
|
|
|
private: //## implementation
|
|
|
|
// Data Members for Has Relationships
|
|
|
|
|
|
|
|
//## Documentation ComplexFigure::myFList.has
|
|
|
|
//## begin ComplexFigure::myFList.has preserve=no public: FList {1 -> 1VO}
|
|
|
|
FList myFList;
|
|
|
|
//## end ComplexFigure::myFList.has
|
|
|
|
|
|
|
|
// Additional Implementation Declarations
|
|
|
|
//## begin ComplexFigure.implementation preserve=yes
|
|
|
|
//## end ComplexFigure.implementation
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//## begin ComplexFigure.postscript preserve=yes
|
|
|
|
//## end ComplexFigure.postscript
|
|
|
|
|
|
|
|
// Class ComplexFigure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//## begin module.epilog preserve=yes
|
|
|
|
//## end module.epilog
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|