Example #1
0
//------------------------------------------------------------------------------
//!
bool
DFMappingNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "scale = " << _scale << "," << nl;
   os << indent << "offset = " << VMFmt( _offset ) << "," << nl;
   return os.ok();
}
Example #2
0
//------------------------------------------------------------------------------
//!
bool
DFNoiseImageNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "type = " << _type << "," << nl;
   switch( _type )
   {
      case TYPE_CELL:
      case TYPE_PERLIN:
         break;
      case TYPE_PERLIN_FILTERED:
         os << indent << "perfilwidth = " << _perFil._width << "," << nl;
         break;
      case TYPE_VORONOI:
         os << indent << "jitter = " << _vor._jitter << "," << nl;
         break;
      case TYPE_FBM:
         os << indent << "fbmwidth = " << _fbm._width << "," << nl;
         os << indent << "octaves = " << _fbm._octaves << "," << nl;
         os << indent << "lacunarity = " << _fbm._lacunarity << "," << nl;
         os << indent << "gain = " << _fbm._gain << "," << nl;
         break;
      default:
         break;
   }
   return os.ok();
}
Example #3
0
//------------------------------------------------------------------------------
//!
bool
DFDrawCircleNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "color="  << VMFmt(_color)  << "," << nl;
   os << indent << "center=" << VMFmt(_center) << "," << nl;
   os << indent << "radius=" << VMFmt(_radius) << "," << nl;
   return os.ok();
}
Example #4
0
//------------------------------------------------------------------------------
//!
bool
DFDrawRectNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "color="  << VMFmt(_color)  << "," << nl;
   os << indent << "center=" << VMFmt(_center) << "," << nl;
   os << indent << "size="   << VMFmt(_size)   << "," << nl;
   return os.ok();
}
Example #5
0
//------------------------------------------------------------------------------
//!
bool
DFPolygonNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "{" << nl;
   ++indent;
   for( auto cur = _polygon->begin(); cur != _polygon->end(); ++cur )
   {
      os << indent << VMFmt( *cur ) << "," << nl;
   }
   --indent;
   os << indent << "}" << nl;
   return os.ok();
}
Example #6
0
//------------------------------------------------------------------------------
//!
bool
DFMaterialIDNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "id = " << _matID << "," << nl;
   return os.ok();
}
Example #7
0
//------------------------------------------------------------------------------
//!
bool
DFFillColorNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "color=" << VMFmt(_color) << "," << nl;
   return os.ok();
}
Example #8
0
//------------------------------------------------------------------------------
//!
bool
DFImportImageNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "\"" << _imageID << "\"," << nl;
   return os.ok();
}