Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/circuits/QRot.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, 9 months ago) by kaityo
File MIME type: text/x-chdr
File size: 932 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 #ifndef QRotH
3 #define QRotH
4 //---------------------------------------------------------------------------
5 #include "QCircuit.h"
6 //---------------------------------------------------------------------------
7 class QRot : public QCircuit {
8 private:
9
10 double Phase; // Angle (Degree)
11
12 public:
13 QRot(int x,int y);
14 QRot(int x,int y, string Param);
15
16 virtual int GetType(void) { return QC_ROT; }
17 virtual string GetTypeStr(void) { return "QRot"; }
18
19 string GetCalcText(void);
20
21 void Draw(QDraw *Draw);
22 void DrawPS(QPSDraw *psDraw);
23 string GetParam(void);
24 void Reverse(int y);
25 TRect GetOccupiedRect();
26 QCircuit *Clone();
27 double GetPhase(void){
28 return Phase;
29 };
30 void SetPhase(double p){
31 Phase = p;
32 };
33 };
34 //---------------------------------------------------------------------------
35
36 #endif

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