node_handle.cpp
Go to the documentation of this file.
00001 #include <megatree/node_handle.h>
00002 #include <megatree/node_file.h>
00003 
00004 
00005 namespace megatree
00006 {
00007 
00008 
00009   std::string NodeHandle::toString() const
00010   {
00011     std::stringstream ss;
00012     ss << "Node " << id.toString() << std::endl 
00013        << "  count " << node->getCount() << std::endl
00014        << "  point " << (unsigned)(node->point[0]) << ", " << (unsigned)(node->point[1]) << ", " << (unsigned)(node->point[2]) << std::endl
00015        << "  color " << (unsigned)(node->color[0]) << ", " << (unsigned)(node->color[1]) << ", " << (unsigned)(node->color[2]) << std::endl
00016        << "  children ";
00017   
00018     for (unsigned int i=0; i<8; i++)
00019       ss << (int)((node->children >> i)&1) << " ";
00020     ss << std::endl;
00021     return ss.str();
00022   }
00023   
00024 }


megatree_cpp
Author(s): Stuart Glaser
autogenerated on Thu Nov 28 2013 11:30:34