Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CVoltage_u.hh

Go to the documentation of this file.
00001 #ifndef CVoltage_u_HH
00002 #define CVoltage_u_HH
00003 
00004 #include <electro/CElement.hh>
00005 #include <vector>
00009 class CVoltage_u : public CElementControl
00010 {
00011 public:
00022     CVoltage_u(std::string name,float gm,std::string on,int x=0,int y=0,int rot=0) : CElementControl("VOL_U",name,gm,on,x,y,rot){
00023          for(int i=0;i<2;i++)
00024             pins.push_back(new CPin());
00025          m_valueSymbol="U";
00026     } 
00031     ~CVoltage_u() {}
00032     
00033     void draw();
00034 
00035     // TODO: change these functions to one that returns Glib::Point.
00036     int getPinX(int pinNumber);
00037     int getPinY(int pinNumber);
00038 };
00039 #endif

Generated on Sun Jan 16 11:05:56 2005 for RolLerCoaster by  doxygen 1.3.9.1