FieldMapImpl Class Reference
List of all members.
Detailed Description
class
FieldMapImpl -- base class for a FieldMap implementation
Constructor & Destructor Documentation
FieldMapImpl::FieldMapImpl |
( |
|
) |
[inline] |
virtual FieldMapImpl::~FieldMapImpl |
( |
|
) |
[inline, virtual] |
Member Function Documentation
virtual void FieldMapImpl::getFieldValue |
( |
const G4double |
local[4], |
|
|
G4double |
field[6] | |
|
) |
| | const [pure virtual] |
virtual void FieldMapImpl::getBoundingPoint |
( |
int |
i, |
|
|
G4double |
point[4] | |
|
) |
| | [pure virtual] |
virtual bool FieldMapImpl::hasB |
( |
|
) |
[pure virtual] |
virtual bool FieldMapImpl::hasE |
( |
|
) |
[pure virtual] |
bool FieldMapImpl::readBlock |
( |
InputFile & |
in, |
|
|
float * |
values, |
|
|
int |
nRows, |
|
|
int |
nCols, |
|
|
G4double |
units | |
|
) |
| | |
References InputFile::getline().
Referenced by CylinderImpl::handleCommand().
00407 {
00408 while(nRows-- > 0) {
00409 char *line = in.getline();
00410 if(!line) return false;
00411 char *p=line;
00412 for(int i=0; i<nCols; ++i) {
00413 while(isspace(*p)) ++p;
00414 if(*p == '\0') return false;
00415 *values++ = strtod(p,&p) * units;
00416 if(*p == ',') ++p;
00417 }
00418 }
00419 return true;
00420 }
virtual bool FieldMapImpl::writeFile |
( |
FILE * |
f |
) |
[pure virtual] |
The documentation for this class was generated from the following file: