Simple Nano Circuit 0.0.2
CapacitorObject Class Reference
Inheritance diagram for CapacitorObject:
BaseIcObject BaseElectronObject

Public Member Functions

 CapacitorObject (AsgardClass *)
 
 CapacitorObject (CapacitorObject *)
 
 CapacitorObject (const unsigned char *, AsgardClass *)
 
const ICType getType () const override
 
BaseElectronObjectdeepDuplicateSelf () override
 
double getCapacitance ()
 
double getAdmittance ()
 
bool havePopupWindow () override
 
const char * popupWindowName () const override
 
void CreateImGuiForm () override
 
double getVoltage (const NetlistClass *)
 
double getVoltage (const FootPinNode *)
 
void updateVoltage (const FootPinNode *)
 
double getVoltDiff (const FootPinNode *)
 
void clearVoltageHistory ()
 
void saveToFile (std::ofstream &) override
 
- Public Member Functions inherited from BaseIcObject
 BaseIcObject (AsgardClass *)
 
 BaseIcObject (BaseIcObject *)
 
void setupPixelData (const uint32_t *)
 
void createSelfTexture (BaseIcObject::ColorStyle)
 
void processKeyEvent (int) override
 
void Drawing () override
 
void Drawing (BaseElectronObject::RendererEffective) override
 
BaseElectronObjectprocessClickEvent (SDL_Point &) override
 
SDL_Rect getLocationRect () override
 
virtual void pinInvalidNotify (FootPinNode *)
 
virtual void setCurrentNotify (FootPinNode *)
 
virtual FootPinNodegetOppositePin (const FootPinNode *)
 
virtual NetlistClassgetOppositeNetlist (const FootPinNode *)
 
virtual double getVoltageFrom (const NetlistClass *)
 
virtual double getVoltageFrom (const FootPinNode *)
 
void processMouseMotion (const SDL_Point &) override
 
void updateLocationAndRotateMirrow (SDL_Point, int, int)
 
- Public Member Functions inherited from BaseElectronObject
 BaseElectronObject (AsgardClass *)
 
virtual const ICType getType () const =0
 
virtual void Drawing ()=0
 
virtual void Drawing (BaseElectronObject::RendererEffective)=0
 
virtual BaseElectronObjectprocessClickEvent (SDL_Point &)=0
 
virtual void processKeyEvent (int)=0
 
virtual BaseElectronObjectdeepDuplicateSelf ()=0
 
virtual SDL_Rect getLocationRect ()=0
 
virtual const char * popupWindowName () const =0
 
virtual bool havePopupWindow ()=0
 
virtual void CreateImGuiForm ()=0
 
virtual void saveToFile (std::ofstream &)=0
 
virtual void processMouseMotion (const SDL_Point &)=0
 

Additional Inherited Members

- Public Types inherited from BaseElectronObject
enum class  RendererEffective { Valid = 1 , Invalid }
 
- Public Attributes inherited from BaseIcObject
SDL_Point centerPos
 
SDL_Texture * selfTexture = nullptr
 
int symbolWidth = 0
 
int symbolHeight = 0
 
bool symbolCouldRotate = true
 
bool symbolCouldMirrow = false
 
uint32_t * symbol_pixel_data = nullptr
 
std::vector< FootPinNode * > footPinNodes
 
- Public Attributes inherited from BaseElectronObject
const int moveMinStepLength = MIN_STEP_LENGTH
 
AsgardClassasgard = nullptr
 
- Protected Member Functions inherited from BaseIcObject
void symbolChangeRotate ()
 
void symbolChangeMirrow ()
 
virtual void init ()=0
 
virtual void setupFootPins ()=0
 
- Protected Attributes inherited from BaseIcObject
int rotateNumber = 0
 
int mirrowNumber = 0
 

Member Function Documentation

◆ CreateImGuiForm()

void CapacitorObject::CreateImGuiForm ( )
overridevirtual

Implements BaseElectronObject.

◆ deepDuplicateSelf()

BaseElectronObject * CapacitorObject::deepDuplicateSelf ( )
overridevirtual

Implements BaseElectronObject.

◆ getType()

const ICType CapacitorObject::getType ( ) const
inlineoverridevirtual

Implements BaseElectronObject.

◆ havePopupWindow()

bool CapacitorObject::havePopupWindow ( )
inlineoverridevirtual

Implements BaseElectronObject.

◆ popupWindowName()

const char * CapacitorObject::popupWindowName ( ) const
inlineoverridevirtual

Implements BaseElectronObject.

◆ saveToFile()

void CapacitorObject::saveToFile ( std::ofstream &  file)
overridevirtual

Implements BaseElectronObject.


The documentation for this class was generated from the following files: