coriolis/chamsin/src/analogic/Capacitor.h

49 lines
1.1 KiB
C
Raw Normal View History

#ifndef CAPACITOR_H
#define CAPACITOR_H
#include "AnalogComponent.h"
class Capacitor : public AnalogComponent {
public:
2008-07-21 09:15:10 -05:00
static const Name BottomPlateName;
static const Name TopPlateName;
static Capacitor* create(Library* library, const Name& name);
2008-07-23 07:17:18 -05:00
void updateLayout();
2008-07-24 08:47:44 -05:00
// void setType(Type type);
// void setType(Type type);
2008-07-23 07:17:18 -05:00
void setW(DbU::Unit value) { _w = value; updateLayout(); }
void setL(DbU::Unit value) { _l = value; updateLayout(); }
virtual Record* _getRecord() const;
2008-07-24 08:47:44 -05:00
protected:
void _postCreate();
private:
2008-07-21 09:15:10 -05:00
Net* _bottomPlate;
Net* _topPlate;
2008-07-24 08:47:44 -05:00
Net* _anonymous;
2008-07-21 09:15:10 -05:00
DbU::Unit _l;
DbU::Unit _w;
2008-07-23 07:17:18 -05:00
Pad* _topPlate10;
Pad* _topPlate20;
Pad* _topPlate30;
Pad* _bottomPlate00;
2008-07-24 08:47:44 -05:00
Pad *_anonymous01;
Pad *_anonymous11;
Pad *_anonymous12;
Pad *_anonymous13;
Pad *_anonymous21;
Pad *_anonymous14;
Capacitor(Library* library, const Name& name);
};
#endif // CAPACITOR_H