46 egsWarning(
"createShape(circle): null input?\n");
49 vector<EGS_Float> sigma;
50 int err = input->
getInput(
"sigma",sigma);
52 egsWarning(
"createShape(gaussian shape): no 'sigma' input\n");
63 int err = input->
getInput(
"shape name",shape_name);
65 egsWarning(
"createShape(gaussian shape): no inline shape definition"
66 " and no 'shape name' keyword\n");
71 egsWarning(
"createShape(gaussian shape): no shape named %s "
72 "exists\n",shape_name.c_str());
77 if (sigma.size() == 1) {
80 else if (sigma.size() == 2) {
void setTransformation(EGS_Input *inp)
Set the transformation attached to this shape.
static EGS_BaseShape * createShape(EGS_Input *inp)
Create a shape from the information pointed to by inp.
static EGS_BaseShape * getShape(const string &Name)
Get a pointer to the shape named Name.
A shape smeared by a Gaussian.
Global egspp functions header file.
Base shape class. All shapes in the EGSnrc C++ class library are derived from EGS_BaseShape.
void setName(EGS_Input *inp)
Set the name of the object from the information provided by inp.
EGS_InfoFunction EGS_EXPORT egsWarning
Always use this function for reporting warnings.