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