Example #1
0
 void BinaryOutputStream::end_record(void)  {
     if(has_record_markers_) {
         write_marker(count_);            
         Numeric::int32 pos = output_->tellp();   
         output_->seekp(pos_) ;
         write_marker(count_);            
         output_->seekp(pos) ;
     }
 }
Example #2
0
bool ChimeraWriter::handle_segment(SegmentGeometry *g, Color color,
                                   std::string name) {
  cleanup(name, true);
  write_marker(get_stream(), g->get_geometry().get_point(0), color, 0);
  get_stream() << "ml=mark\n";
  write_marker(get_stream(), g->get_geometry().get_point(1), color, 0);
  get_stream() << "Link(ml, mark, (" << commas_io(color) << ")";
  get_stream() << ", .1)\n";
  get_stream() << "ml=mark\n";
  return true;
}
Example #3
0
bool ChimeraWriter::handle_point(PointGeometry *g,
                            Color color, std::string name) {
  cleanup(name, true);
  write_marker(get_stream(), g->get_geometry(),
               color, 0);
  return true;
}
Example #4
0
bool ChimeraWriter::handle_sphere(SphereGeometry *g,
                            Color color, std::string name) {
  cleanup(name, true);
  write_marker(get_stream(), g->get_geometry().get_center(),
               color, g->get_geometry().get_radius());
  return true;
}
Example #5
0
 void BinaryOutputStream::begin_record(void) {
     if(has_record_markers_) {
         count_ = 0;
         pos_ = output_->tellp() ;
         write_marker(count_);
     }
 }