[r36629]: trunk / contrib / brl / bbas / volm / tests / test_spherical_region.cxx  Maximize  Restore  History

Download this file

32 lines (20 with data), 892 Bytes

 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
#include <testlib/testlib_test.h>
#include <vsph/vsph_sph_box_2d.h>
#include <volm/volm_spherical_region.h>
#include <vnl/vnl_math.h>
static void test_spherical_region()
{
vsph_sph_box_2d box(true);
box.set(vnl_math::pi/4, 3*vnl_math::pi/4,
vnl_math::pi/2, 3*vnl_math::pi/2,
vnl_math::pi, true);
volm_spherical_region sph_region(box);
sph_region.set_attribute(spherical_region_attributes::ORIENTATION,1);
sph_region.set_attribute(spherical_region_attributes::NLCD,44);
sph_region.print(vcl_cout);
bool good = sph_region.is_attribute(spherical_region_attributes::ORIENTATION);
TEST("Attribute Orietnation Present", good, true);
good = sph_region.is_attribute(spherical_region_attributes::DEPTH_ORDER);
TEST("Attribute Depth Order Not Present", good, false);
}
TESTMAIN(test_spherical_region);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks