#include <CVoltage.hh>
Inheritance diagram for CVoltage:
Public Member Functions | |
CVoltage (std::string name, float u, double omega, double fi0, int x=0, int y=0, int rot=0) | |
Konstruktor. | |
~CVoltage () | |
Destruktor. | |
float | getU (void) |
Funkcja zwraca wartosc napiecia. | |
Complex | getUc (void) |
Funkcja zwraca wartosc zespolona napiecia. | |
double | getValue () |
Zwarca wartosc elementu. | |
void | setU (float u) |
Ustawia wartosc napiecia. | |
void | draw () |
Rysuje element. | |
int | getPinX (int pinNumber) |
Zwraca wspolrzedna x pinu o podanym numerze. | |
int | getPinY (int pinNumber) |
Zwraca wspolrzedna y pinu o podanym numerze. | |
Protected Attributes | |
float | m_u |
wartosc napiecia |
|
Konstruktor.
|
|
Destruktor.
|
|
Rysuje element.
Reimplemented from CElement. |
|
Zwraca wspolrzedna x pinu o podanym numerze.
Reimplemented from CElement. |
|
Zwraca wspolrzedna y pinu o podanym numerze.
Reimplemented from CElement. |
|
Funkcja zwraca wartosc napiecia.
|
|
Funkcja zwraca wartosc zespolona napiecia.
|
|
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. |
|
Ustawia wartosc napiecia.
|
|
wartosc napiecia
|