Пример #1
0
void GraphicsObjectData::PrintGraphicsObjectToTree(const GraphicsObject& go,
                                                   std::ostream* tree) {
  if (go.mono())
    *tree << "(mono) ";
  if (go.invert())
    *tree << "(invert) ";
  if (go.light())
    *tree << "(light=" << go.light() << ") ";
  if (go.tint() != RGBColour::Black())
    *tree << "(tint=" << go.tint() << ") ";
  if (go.colour() != RGBAColour::Clear())
    *tree << "(colour=" << go.colour() << ") ";
  if (go.compositeMode())
    *tree << "(composite=" << go.compositeMode() << ") ";
  if (go.xOrigin())
    *tree << "(xOrigin=" << go.xOrigin() << ") ";
  if (go.yOrigin())
    *tree << "(yOrigin=" << go.yOrigin() << ") ";
}