void FilledVectorNode::connectDisplay() { VectorNode::connectDisplay(); m_FillColor = colorStringToColor(m_sFillColorName); m_pFillShape->moveToGPU(); m_EffectiveOpacity = -1; }
void ColorNode::setFillColor(const string& sFillColor) { AVG_TRACE(Logger::category::PLUGIN, Logger::severity::INFO, "setFillColor called with " << sFillColor); m_sFillColorName = sFillColor; m_Color = colorStringToColor(m_sFillColorName); }
void VectorNode::connectDisplay() { setDrawNeeded(); m_Color = colorStringToColor(m_sColorName); Node::connectDisplay(); m_pShape->moveToGPU(); setBlendModeStr(m_sBlendMode); }
void VectorNode::setColor(const string& sColor) { if (m_sColorName != sColor) { m_sColorName = sColor; m_Color = colorStringToColor(m_sColorName); m_bDrawNeeded = true; } }
void FilledVectorNode::setFillColor(const UTF8String& sColor) { if (m_sFillColorName != sColor) { m_sFillColorName = sColor; m_FillColor = colorStringToColor(m_sFillColorName); setDrawNeeded(); } }
void AreaNode::setElementOutlineColor(const std::string& sColor) { m_sElementOutlineColor = sColor; if (sColor == "") { m_ElementOutlineColor = Pixel32(0,0,0,0); } else { m_ElementOutlineColor = colorStringToColor(m_sElementOutlineColor); } }
FilledVectorNode::FilledVectorNode(const ArgList& args) : VectorNode(args), m_pFillShape(new Shape(WrapMode(GL_REPEAT, GL_REPEAT), false)) { m_FillTexHRef = args.getArgVal<UTF8String>("filltexhref"); setFillTexHRef(m_FillTexHRef); m_sFillColorName = args.getArgVal<UTF8String>("fillcolor"); m_FillColor = colorStringToColor(m_sFillColorName); }
VectorNode::VectorNode(const ArgList& args) : m_Transform(glm::mat4(0)) { m_pShape = ShapePtr(createDefaultShape()); ObjectCounter::get()->incRef(&typeid(*this)); m_TexHRef = args.getArgVal<UTF8String>("texhref"); setTexHRef(m_TexHRef); m_sColorName = args.getArgVal<string>("color"); m_Color = colorStringToColor(m_sColorName); }
ColorNode::ColorNode(const ArgList& Args) : m_sFillColorName("FFFFFF") { AVG_TRACE(Logger::category::PLUGIN, Logger::severity::INFO, "ColorNode c'tor gets Argument fillcolor= " << Args.getArgVal<string>("fillcolor")); Args.setMembers(this); AVG_TRACE(Logger::category::PLUGIN, Logger::severity::INFO, "ColorNode constructed with " << m_sFillColorName); m_Color = colorStringToColor(m_sFillColorName); }
void ChromaKeyFXNode::setColor(const std::string& sColorName) { m_sColorName = sColorName; m_Color = colorStringToColor(m_sColorName); updateFilter(); }