Simple Nano Circuit 0.0.2
NpnObject.h
1#ifndef _NpnObject_H_
2#define _NpnObject_H_
3
4#include <SDL.h>
5#include "../BaseIcObject.h"
6#include "../symbols/npn.c"
7
8class NpnObject : public BaseIcObject
9{
10 private:
11 void init() override;
12 void setupFootPins() override;
13
14 struct StoreData
15 {
16 ICType id;
17 SDL_Point centerPos;
18 int rotateNumber;
19 int mirrowNumber;
20 };
21 StoreData storeData;
22
23 public:
26 NpnObject(const unsigned char*, AsgardClass*);
27 ~NpnObject();
28
29 const ICType getType() const override {return ICType::NPN;}
30
31 BaseElectronObject* deepDuplicateSelf() override;
32
33 bool havePopupWindow() override {return false;}
34 const char* popupWindowName() const override {return "";}
35 void CreateImGuiForm() override {return;};
36
37 void pinInvalidNotify(FootPinNode*) override;
38
39 void saveToFile(std::ofstream&) override;
40};
41
42#endif
Definition: AsgardClass.h:17
Definition: BaseElectronObject.h:13
Definition: BaseIcObject.h:11
Definition: FootPinNode.h:15
Definition: NpnObject.h:9