coriolis/chamsin/src/analogic/Capacitor.h

36 lines
831 B
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-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;
protected:
void _postCreate();
private:
2008-07-21 09:15:10 -05:00
Net* _bottomPlate;
Net* _topPlate;
DbU::Unit _l;
DbU::Unit _w;
2008-07-23 07:17:18 -05:00
Pad* _topPlate10;
Pad* _topPlate20;
Pad* _topPlate30;
Pad* _bottomPlate00;
Capacitor(Library* library, const Name& name);
};
#endif // CAPACITOR_H