00001 // This is brl/bseg/sdet/sdet_vrml_display.h 00002 #ifndef sdet_vrml_display_h_ 00003 #define sdet_vrml_display_h_ 00004 //: 00005 // \file 00006 // \brief write out segmentation data as a vrml display 00007 // \author Author J. L. Mundy - August 17, 2008 00008 // \verbatim 00009 // \endverbatim 00010 #include <vcl_fstream.h> 00011 #include <vcl_vector.h> 00012 #include <vtol/vtol_intensity_face_sptr.h> 00013 #include <vsol/vsol_polygon_3d_sptr.h> 00014 #include <vil/vil_image_view.h> 00015 class sdet_vrml_display 00016 { 00017 public: 00018 static void write_vrml_header(vcl_ofstream& str); 00019 static void write_intensity_regions_3d(vcl_ofstream& str, 00020 vcl_vector<vtol_intensity_face_sptr> const& faces); 00021 static void write_vsol_polys_3d(vcl_ofstream& str, 00022 vcl_vector<vsol_polygon_3d_sptr> const& polys); 00023 static void write_vrml_height_map(vcl_ofstream& str, 00024 vil_image_view<float> const & z_of_xy, 00025 float r = 0.0, float g = 1.0, float b = 0.0); 00026 private: 00027 sdet_vrml_display(); 00028 00029 }; 00030 00031 #endif // sdet_vrml_display_h_