30 : mpRenderInformation(
CLRenderFlattener::flatten_render_information(renderInformation, localList, globalList)),
32 mpBackgroundColor(NULL)
50 assert(
id.length() == 7 ||
id.length() == 9);
75 : mpRenderInformation(
CLRenderFlattener::flatten_render_information(renderInformation, globalList)),
77 mpBackgroundColor(NULL)
105 for (i = 0; i < iMax; ++i)
114 for (i = 0; i < iMax; ++i)
123 for (i = 0; i < iMax; ++i)
139 for (i = 0 ; i < iMax ; ++i)
141 pStyle = pRenderInformation->
getStyle(i);
142 const std::set<std::string>& roleList = pStyle->
getRoleList();
143 std::set<std::string>::const_iterator it = roleList.begin(), endit = roleList.end();
151 const std::set<std::string>& typeList = pStyle->
getTypeList();
153 it = typeList.begin();
155 endit = typeList.end();
174 for (i = 0; i < iMax; ++i)
176 pStyle = pRenderInformation->
getStyle(i);
177 const std::set<std::string>& roleList = pStyle->
getRoleList();
178 std::set<std::string>::const_iterator it = roleList.begin(), endit = roleList.end();
186 const std::set<std::string>& typeList = pStyle->
getTypeList();
188 it = typeList.begin();
190 endit = typeList.end();
200 const std::set<std::string>& keyList = pLocalStyle->
getKeyList();
202 it = keyList.begin();
204 endit = keyList.end();
231 if (pRG != NULL && role.empty())
236 if (pSRG != NULL && role.empty())
251 role =
"sidesubstrate";
255 role =
"sideproduct";
277 std::map<const CLMetabReferenceGlyph*, std::string>::const_iterator pos = this->
mDeducedObjectRoles.find(pSRG);
294 std::string type =
"GRAPHICALOBJECT";
296 if (dynamic_cast<const CLCompartmentGlyph*>(pObject))
298 type =
"COMPARTMENTGLYPH";
300 else if (dynamic_cast<const CLMetabGlyph*>(pObject))
302 type =
"SPECIESGLYPH";
304 else if (dynamic_cast<const CLReactionGlyph*>(pObject))
306 type =
"REACTIONGLYPH";
308 else if (dynamic_cast<const CLMetabReferenceGlyph*>(pObject))
310 type =
"SPECIESREFERENCEGLYPH";
312 else if (dynamic_cast<const CLTextGlyph*>(pObject))
331 std::map<std::string, const CLStyle*>::const_iterator pos = this->
mRoleMap.find(role);
335 pResult = pos->second;
348 std::map<std::string, const CLStyle*>::const_iterator pos = this->
mTypeMap.find(type);
352 pResult = pos->second;
361 pResult = pos->second;
375 std::map<std::string, const CLStyle*>::const_iterator pos = this->
mKeyMap.find(key);
377 if (pos != this->
mKeyMap.end())
379 pResult = pos->second;
391 std::map<std::string, const CLGradientBase*>::const_iterator pos = this->
mGradientMap.find(
id);
395 pResult = pos->second;
407 std::map<std::string, const CLColorDefinition*>::const_iterator pos = this->
mColorMap.find(
id);
411 pResult = pos->second;
423 std::map<std::string, const CLLineEnding*>::const_iterator pos = this->
mLineEndingMap.find(
id);
427 pResult = pos->second;
std::map< std::string, const CLStyle * > mKeyMap
std::map< const CLMetabReferenceGlyph *, std::string > mDeducedObjectRoles
std::map< std::string, const CLGradientBase * > mGradientMap
const CLColorDefinition * getColorDefinition(const std::string &id) const
void setBackgroundColor()
const CLStyle * resolveStyle(const CLGraphicalObject *pObject) const
void setDeducedObjectRoles(const std::map< const CLMetabReferenceGlyph *, std::string > &deducedObjectRoles)
const std::string & getObjectRole() const
bool setColorValue(const std::string &valueString)
const std::string & getId() const
void fill_global_maps(const CLGlobalRenderInformation *pRenderInformation)
const CLStyle * resolveStyleForType(const std::string &type) const
const std::set< std::string > & getKeyList() const
std::map< std::string, const CLStyle * > mRoleMap
const std::string & getRole() const
virtual const std::string & getKey() const
void fill_base_maps(const CLRenderInformationBase *pRenderInformation)
const std::set< std::string > & getRoleList() const
const std::set< std::string > & getTypeList() const
std::map< std::string, const CLColorDefinition * > mColorMap
CLRenderResolver(const CLRenderResolver &)
const std::string & getId() const
const CLColorDefinition * getBackgroundColor() const
std::map< std::string, const CLStyle * > mTypeMap
CLColorDefinition * mpBackgroundColor
const CLLineEnding * getLineEnding(const std::string &id) const
const std::string & getId() const
void fill_local_maps(const CLLocalRenderInformation *pRenderInformation)
const CLStyle * resolveStyleForRole(const std::string &role) const
const CLGradientBase * getGradientBase(const std::string &id) const
const CLStyle * resolveStyleForKey(const std::string &key) const
CLRenderInformationBase * mpRenderInformation
std::map< std::string, const CLLineEnding * > mLineEndingMap