StaticRectangle Class Reference

Rectangular coil formed out of four line elements. More...

#include <statics.hpp>

Inheritance diagram for StaticRectangle:

Inheritance graph
[legend]
Collaboration diagram for StaticRectangle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StaticRectangle (prec_t currentAMPS, const vect3d &pos, const vect3d &right, const vect3d &up, prec_t wr)
virtual ~StaticRectangle ()
void addFields (const vect3d &pos, vect3d &bfield, vect3d &efield)
 Add fiel values at given position.
void draw (Screen &screen, const Screen::color &c=Screen::BLACK)
 Draw the elemnt onto a screen.
std::string get_povray_script ()
 Get povray script of the given element.
bool inContact (const vect3d &pos)
 Test whether given position is in contact with the given current element.
void addPotential (const vect3d &pos, prec_t &potential)
 Add the electrostatic potential from the given element.

Detailed Description

Rectangular coil formed out of four line elements.

Definition at line 257 of file statics.hpp.


Constructor & Destructor Documentation

StaticRectangle::StaticRectangle ( prec_t  currentAMPS,
const vect3d pos,
const vect3d right,
const vect3d up,
prec_t  wr 
)

virtual StaticRectangle::~StaticRectangle (  )  [virtual]


Member Function Documentation

void StaticRectangle::addFields ( const vect3d pos,
vect3d bfield,
vect3d efield 
) [virtual]

Add fiel values at given position.

Implements StaticElement.

void StaticRectangle::draw ( Screen screen,
const Screen::color c = Screen::BLACK 
) [virtual]

Draw the elemnt onto a screen.

Implements StaticElement.

std::string StaticRectangle::get_povray_script (  )  [virtual]

Get povray script of the given element.

Implements StaticElement.

bool StaticRectangle::inContact ( const vect3d pos  )  [virtual]

Test whether given position is in contact with the given current element.

Implements StaticElement.

void StaticRectangle::addPotential ( const vect3d pos,
prec_t potential 
) [inline, virtual]

Add the electrostatic potential from the given element.

Implements StaticElement.

Definition at line 267 of file statics.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 20:31:17 2007 for Ephi by  doxygen 1.5.0