Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/circuits/QCRot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Wed Aug 3 10:14:23 2011 UTC (12 years, 8 months ago) by kaityo
File MIME type: text/x-chdr
File size: 945 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 #ifndef QCRotH
3 #define QCRotH
4 //---------------------------------------------------------------------------
5 #include "QCircuit.h"
6 //---------------------------------------------------------------------------
7 class QCRot : public QCircuit {
8 private:
9
10 int Target;
11 double Phase;
12
13 public:
14 QCRot(int x,int y);
15 QCRot(int x,int y, string Param);
16
17 virtual int GetType(void) { return QC_CROT; }
18 virtual string GetTypeStr(void) { return "QCRot"; }
19
20 string GetCalcText(void);
21
22 void SetTarget(int t) {Target=t;};
23 int GetTarget(void) {return Target;};
24
25 void Draw(QDraw *Draw);
26 void DrawPS(QPSDraw *psDraw);
27 string GetParam(void);
28 void Reverse(int y);
29 TRect GetOccupiedRect();
30 QCircuit *Clone();
31
32 double GetPhase(void){
33 return Phase;
34 };
35 void SetPhase(double p){
36 Phase = p;
37 };
38 };
39 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26