1 // This is brl/bseg/sdet/sdet_vrml_display.h
2 #ifndef sdet_vrml_display_h_
3 #define sdet_vrml_display_h_
4 //:
5 // \file
6 // \brief write out segmentation data as a vrml display
7 // \author Author J. L. Mundy - August 17, 2008
8 // \verbatim
9 // \endverbatim
10 #include <iostream>
11 #include <fstream>
12 #include <vector>
13 #ifdef _MSC_VER
14 #  include <vcl_msvc_warnings.h>
15 #endif
16 #include <vtol/vtol_intensity_face_sptr.h>
17 #include <vsol/vsol_polygon_3d_sptr.h>
18 #include <vil/vil_image_view.h>
19 class sdet_vrml_display
20 {
21  public:
22   static void write_vrml_header(std::ofstream& str);
23   static void write_intensity_regions_3d(std::ofstream& str,
24                                          std::vector<vtol_intensity_face_sptr> const& faces);
25   static void write_vsol_polys_3d(std::ofstream& str,
26                                   std::vector<vsol_polygon_3d_sptr> const& polys);
27   static void write_vrml_height_map(std::ofstream& str,
28                                     vil_image_view<float> const & z_of_xy,
29                                     float r = 0.0, float g = 1.0, float b = 0.0);
30  private:
31   sdet_vrml_display() = delete;
32 
33 };
34 
35 #endif // sdet_vrml_display_h_
36