#include <CResistor.hh>
Inheritance diagram for CResistor:
Public Member Functions | |
CResistor (std::string name, float r, int x=0, int y=0, int rot=0) | |
Konstruktor. | |
~CResistor () | |
Destruktor. | |
void | setR (float r) |
Ustawia wartosc rezystancji. | |
float | getR (void) |
Funkcja zwraca wartosc rezystancji. | |
Complex | getZc (double omega) |
Zwraca impedancje. | |
Complex | getYc (double omega) |
Zwraca konduktancje. | |
double | getValue () |
Zwarca wartosc elementu. | |
void | draw () |
Rysuje element. | |
Protected Attributes | |
float | m_r |
Rezystencja. |
|
Konstruktor.
|
|
Destruktor.
|
|
Rysuje element.
Reimplemented from CElement. |
|
Funkcja zwraca wartosc rezystancji.
|
|
Zwarca wartosc elementu. Dla rezystora opornosc R, dla cewki indukcje L, dla kondensatora pojemnosc C, etc. Jesli nie mozna zwrocic wartosci (np nie ma czego zwaracac) zwracane jest zero.
Reimplemented from CElement. |
|
Zwraca konduktancje.
Reimplemented from CElementPasive. |
|
Zwraca impedancje.
Reimplemented from CElementPasive. |
|
Ustawia wartosc rezystancji.
|
|
Rezystencja.
|