OmniAngle.hh

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) Massimo Cora' 2006 <maxcvs@gmail.com>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 
00020 #ifndef __OMNIANGLE_HH__
00021 #define __OMNIANGLE_HH__
00022 
00023 
00031 template <class TypeT>
00032 class OmniAngle {
00033 public:
00034         
00036         OmniAngle ();
00037         
00044         OmniAngle( TypeT angle_start, TypeT angle_end, TypeT range );
00045 
00046         virtual ~OmniAngle ();
00047         
00048 public: 
00049 
00050         TypeT get_angle_start ();
00051         TypeT get_angle_end ();
00052         TypeT get_range ();
00053 
00054         void set_angle_start( TypeT value );
00055         void set_angle_end( TypeT value );
00056         void set_range( TypeT value );
00057 
00058         
00059 public: 
00060         TypeT angle_start;
00061         TypeT angle_end;
00062         TypeT range;
00063 };
00064 
00065 
00066 
00070 
00071 
00072 template <class TypeT>
00073 OmniAngle <TypeT>::OmniAngle () 
00074 {
00075         angle_start = 0;
00076         angle_end = 0;
00077         range = 0;
00078 }
00079 
00080 
00081 template <class TypeT>
00082 OmniAngle <TypeT>::~OmniAngle () 
00083 {
00084 }
00085 
00086 
00087 template <class TypeT>
00088 OmniAngle <TypeT>::OmniAngle( TypeT angle_start, TypeT angle_end, TypeT range )
00089 {
00090         this->angle_start = angle_start;
00091         this->angle_end = angle_end;
00092         this->range = range;
00093 }
00094 
00095 template <class TypeT>
00096 TypeT OmniAngle <TypeT>::get_angle_start () 
00097 {
00098         return this->angle_start;
00099 }
00100 
00101 template <class TypeT>
00102 TypeT OmniAngle <TypeT>::get_angle_end () 
00103 {
00104         return this->angle_end;
00105 }
00106 
00107 template <class TypeT>
00108 TypeT OmniAngle <TypeT>::get_range () 
00109 {
00110         return this->range;
00111 }
00112 
00113 template <class TypeT>
00114 void OmniAngle <TypeT>::set_angle_start( TypeT value ) 
00115 {
00116         this->angle_start = value;
00117 }
00118 
00119 template <class TypeT>
00120 void OmniAngle <TypeT>::set_angle_end( TypeT value ) 
00121 {
00122         this->angle_end = value;
00123 }
00124 
00125 template <class TypeT>
00126 void OmniAngle <TypeT>::set_range( TypeT value ) 
00127 {
00128         this->range = value;
00129 }
00130 
00131 
00132 #endif
00133 
00134 
00135 

Generated on Tue Dec 26 10:32:38 2006 for Omnimeeting by  doxygen 1.4.7