Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Field Class Reference

Define magnetic field, implementing a set of constant fields. More...

#include <Field.h>

List of all members.

Public Types

typedef std::vector<Field*> Field_list

Public Methods

 Field ()
 Field (double,double,double)
 Field (const Vector & )
virtual ~Field ()
virtual const Vector& valueAt (const Vector& ) const
void setConstField ( Vector& B)
const char* nameOf () const
Ray* CreateRay (const Point&, const Vector&, float, float=0) const
 create a trajectory for a charged particle in this field. More...

virtual void printOn ( std::ostream& os = std::cout ) const

Static Public Attributes

Field_list theFields

Protected Methods

void checkAppend ()

Protected Attributes

Vector constB
unsigned int id


Detailed Description

Define magnetic field, implementing a set of constant fields.

Definition at line 15 of file Field.h.


Member Typedef Documentation

typedef std::vector<Field*> Field::Field_list
 

Definition at line 44 of file Field.h.


Constructor & Destructor Documentation

Field::Field ( )
 

Definition at line 29 of file Field.cxx.

Field::Field ( double bx,
double by,
double bz )
 

Definition at line 23 of file Field.cxx.

Field::Field ( const Vector & )
 

Field::~Field ( ) [inline, virtual]
 

Definition at line 31 of file Field.h.


Member Function Documentation

Ray * Field::CreateRay ( const Point & r,
const Vector & p,
float q,
float = 0 ) const
 

create a trajectory for a charged particle in this field.

Definition at line 45 of file Field.cxx.

void Field::checkAppend ( ) [protected]
 

Definition at line 31 of file Field.cxx.

Referenced by Field().

const char * Field::nameOf ( ) const [inline]
 

Definition at line 35 of file Field.h.

void Field::printOn ( std::ostream & os = std::cout ) const [virtual]
 

Definition at line 70 of file Field.cxx.

Referenced by Medium::printOn().

void Field::setConstField ( Vector & B ) [inline]
 

Definition at line 34 of file Field.h.

const Vector & Field::valueAt ( const Vector & ) const [inline, virtual]
 

Definition at line 33 of file Field.h.


Member Data Documentation

Vector Field::constB [protected]
 

Definition at line 19 of file Field.h.

unsigned int Field::id [protected]
 

Definition at line 22 of file Field.h.

Field::Field_list Field::theFields [static]
 

Definition at line 20 of file Field.cxx.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:29 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000