[r36927]: trunk / contrib / brl / bbas / volm / volm_vrml_io.h Maximize Restore History

Download this file

volm_vrml_io.h    44 lines (37 with data), 1.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef volm_vrml_io_h_
#define volm_vrml_io_h_
//:
// \file
#include <volm/volm_spherical_region.h>
#include <vcl_iosfwd.h>
#include <vsph/vsph_segment_sphere.h>
namespace volm_vrml_io_data
{
static float color_codes[8][3] ={ {1.0f,0.5f,0.5f},
{0.0f,1.0f,0.0f},
{1.0f,0.0f,1.0f},
{1.0f,1.0f,0.0f},
{1.0f,0.5f,1.0f},
{1.0f,0.0f,0.0f},
{0.5f,0.5f,1.0f},
{0.0f,0.0f,1.0f} };
}
class volm_vrml_io
{
public:
//: currently displays bounding box
static void display_spherical_region_by_attrbute(vcl_ostream& str ,
volm_spherical_region & r,
spherical_region_attributes att,
double factor, //: this is multiplied by 1.0 and is used to display outwards or inwards of the unit sphere.
double tol);
static void display_spherical_region_layer_by_attrbute(vcl_ostream& str ,
volm_spherical_regions_layer r,
spherical_region_attributes att,
double factor, //: this is multiplied by 1.0 and is used to display outwards or inwards of the unit sphere.
double tol);
static void display_segment_sphere(vcl_ostream& str ,
vsph_segment_sphere * sph,
double factor=1.0);
};
#endif