1#ifndef _CapacitorObject_H_
2#define _CapacitorObject_H_
5#include "../BaseIcObject.h"
6#include "../symbols/capacitor.c"
13 double capacitance = 1e-6;
14 double initialVoltage = 3;
15 std::list<double> voltageHistory;
18 void setupFootPins()
override;
27 double initialVoltage;
37 const ICType getType()
const override {
return ICType::Capacitor;}
41 double getCapacitance();
42 double getAdmittance();
44 bool havePopupWindow()
override {
return true;}
45 const char* popupWindowName()
const override {
return "CapacitorObject";}
46 void CreateImGuiForm()
override;
52 void clearVoltageHistory();
54 void saveToFile(std::ofstream&)
override;
Definition: AsgardClass.h:17
Definition: BaseElectronObject.h:13
Definition: BaseIcObject.h:11
Definition: CapacitorObject.h:11
Definition: NetlistClass.h:19