const char * ParameterGroup::getStringValue(const char *paramName) { StringParameter *dp = dynamic_cast<StringParameter*> (this->getParameter(paramName)); if(dp == NULL) { cout << "Parameter \"" << paramName << "\" is not of type string.\n"; return ""; } return dp->getValue(); }
bool ColorAttribute::compute() { //std::cerr << "ColorAttribute: compute: execcount=" << m_executionCount << std::endl; auto color = p_color->getValue(); Object::const_ptr obj = expect<Object>("data_in"); if (!obj) return false; Object::ptr out = obj->clone(); out->addAttribute("_color", color); addObject("data_out", out); return true; }