40 void EGS_Box::printInfo()
const {
43 egsInformation(
"=======================================================\n");
46 string EGS_Box::type(
"EGS_Box");
48 static char EGS_BOX_LOCAL ebox_message1[] =
"createGeometry(box): %s\n";
49 static char EGS_BOX_LOCAL ebox_message2[] =
"null input?";
50 static char EGS_BOX_LOCAL ebox_message3[] =
"wrong/missing 'box size' input?";
51 static char EGS_BOX_LOCAL ebox_message4[] =
52 "expecting 1 or 3 float inputs for 'box size'";
53 static char EGS_BOX_LOCAL ebox_key1[] =
"box size";
63 int err = input->
getInput(ebox_key1,s);
73 else if (s.size() == 3) {
74 result =
new EGS_Box(s[0],s[1],s[2],t);
virtual void printInfo() const
Print information about this geometry.
int setLabels(EGS_Input *input)
Set the labels from an input block.
EGS_GLIB_EXPORT EGS_BaseGeometry * createGeometry(EGS_Input *input)
Base geometry class. Every geometry class must be derived from EGS_BaseGeometry.
void setBoundaryTolerance(EGS_Input *inp)
Set the value of the boundary tolerance from the input inp.
void setMedia(EGS_Input *inp)
Set the media in the geometry from the input pointed to by inp.
EGS_InfoFunction EGS_EXPORT egsInformation
Always use this function for reporting the progress of a simulation and any other type of information...
void setName(EGS_Input *inp)
Set the name of the geometry from the input inp.
EGS_InfoFunction EGS_EXPORT egsWarning
Always use this function for reporting warnings.