Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CResistor Class Reference

Klasa reprezentuje idealny rezystor. More...

#include <CResistor.hh>

Inheritance diagram for CResistor:

CElementPasive CElement List of all members.

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.

Detailed Description

Klasa reprezentuje idealny rezystor.


Constructor & Destructor Documentation

CResistor::CResistor std::string  name,
float  r,
int  x = 0,
int  y = 0,
int  rot = 0
[inline]
 

Konstruktor.

Parameters:
name nazwa .
r rezystancja.
x rzedna elementu na schemacie.
y odcieta elementu na schemacie.
rot rotacja elementu na schemacie.
See also:
~CResistor();CElementPasive();

CResistor::~CResistor  )  [inline]
 

Destruktor.

See also:
CResistor;


Member Function Documentation

void CResistor::draw  )  [virtual]
 

Rysuje element.

Reimplemented from CElement.

float CResistor::getR void   )  [inline]
 

Funkcja zwraca wartosc rezystancji.

Returns:
rezystancja
See also:
getR();

double CResistor::getValue  )  [inline, virtual]
 

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.

Returns:
wartosc wielkosci charakteryzujacej element

Reimplemented from CElement.

Complex CResistor::getYc double  omega  )  [inline, virtual]
 

Zwraca konduktancje.

Parameters:
omega czestosc kolowa wymuszenia
Returns:
wartosc konduktancji
See also:
Complex getZc(double omega);

Reimplemented from CElementPasive.

Complex CResistor::getZc double  omega  )  [inline, virtual]
 

Zwraca impedancje.

Parameters:
omega czestosc kolowa wymuszenia
Returns:
wartosc impedancji
See also:
Complex getYc(double omega);

Reimplemented from CElementPasive.

void CResistor::setR float  r  )  [inline]
 

Ustawia wartosc rezystancji.

Parameters:
r wartosc rezystancji
See also:
setR();


Member Data Documentation

float CResistor::m_r [protected]
 

Rezystencja.


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 11:05:59 2005 for RolLerCoaster by  doxygen 1.3.9.1