コード例 #1
0
bool AtomPropColoring::getAtomColor(MolAtomPtr pAtom, gfx::ColorPtr &col)
{
  MB_DPRINTLN("***** AtomPropCol getAtomColor called");
  try {
    int ccode = pAtom->getAtomPropInt(m_propname);
    col = gfx::SolidColorPtr(new gfx::SolidColor(ccode)); 
  }
  catch (...) {
    col = SolidColor::createRGB(0.5,0.5,0.5);
    //return false;
  }
  return true;
}