contrib/gel/vifa/vifa_parallel_params.cxx
Go to the documentation of this file.
00001 // This is gel/vifa/vifa_parallel_params.cxx
00002 #include "vifa_parallel_params.h"
00003 //:
00004 // \file
00005 
00006 #include <vcl_iostream.h>
00007 
00008 vifa_parallel_params::
00009 vifa_parallel_params(float  angle_min,
00010                      float  angle_max,
00011                      int  buckets)
00012 {
00013   min_angle = angle_min;
00014   max_angle = angle_max;
00015   nbuckets = buckets;
00016 }
00017 
00018 vifa_parallel_params::
00019 vifa_parallel_params(const vifa_parallel_params& np)
00020   : gevd_param_mixin(), vul_timestamp(), vbl_ref_count()
00021 {
00022   min_angle = np.min_angle;
00023   max_angle = np.max_angle;
00024   nbuckets = np.nbuckets;
00025 }
00026 
00027 vifa_parallel_params::
00028 vifa_parallel_params(vifa_parallel_params* np)
00029 {
00030   if (np)
00031   {
00032     min_angle = np->min_angle;
00033     max_angle = np->max_angle;
00034     nbuckets = np->nbuckets;
00035   }
00036   else
00037   {
00038     min_angle = DEFAULT_MIN_ANGLE;
00039     max_angle = DEFAULT_MAX_ANGLE;
00040     nbuckets = DEFAULT_NBUCKETS;
00041   }
00042 }
00043 
00044 void vifa_parallel_params::
00045 print_info(void)
00046 {
00047   vcl_cout << "vifa_parallel_params:\n"
00048            << "  min angle    = " << min_angle << vcl_endl
00049            << "  max angle    = " << max_angle << vcl_endl
00050            << "  # of buckets = " << nbuckets << vcl_endl;
00051 }