"Fossies" - the Fresh Open Source Software Archive

Member "gama-2.05/lib/gnu_gama/local/orientation.h" (10 May 2019, 1700 Bytes) of package /linux/privat/gama-2.05.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "orientation.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.02_vs_2.03.

    1 /*
    2   GNU Gama -- adjustment of geodetic networks
    3   Copyright (C) 1999, 2018  Ales Cepek <cepek@gnu.org>
    4 
    5   This file is part of the GNU Gama C++ library.
    6 
    7   This library is free software; you can redistribute it and/or modify
    8   it under the terms of the GNU General Public License as published by
    9   the Free Software Foundation; either version 3 of the License, or
   10   (at your option) any later version.
   11 
   12   This library is distributed in the hope that it will be useful,
   13   but WITHOUT ANY WARRANTY; without even the implied warranty of
   14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15   GNU General Public License for more details.
   16 
   17   You should have received a copy of the GNU General Public License
   18   along with GNU Gama.  If not, see <http://www.gnu.org/licenses/>.
   19 */
   20 
   21 #ifndef gama_local_Bod_Mer_VYPORPOS_H
   22 #define gama_local_Bod_Mer_VYPORPOS_H
   23 
   24 #include <functional>
   25 #include <vector>
   26 #include <gnu_gama/local/bearing.h>
   27 #include <gnu_gama/local/gamadata.h>
   28 
   29 namespace GNU_gama { namespace local {
   30 
   31 class Orientation {
   32 public:
   33 
   34   Orientation(PointData& p, ObservationList& o) : PD_(p), OL_(o) {}
   35 
   36   // L1 estimate of the standpoint orientation
   37   /*
   38    *  iter   iterator to the first observation in a cluster
   39    *  sp     pointer to a StandPoint cluster
   40    *  z      resulting orientation (or 0 if computation failed)
   41    *  n      number of used directions in the cluster (0 if none)
   42    *
   43    */
   44   void orientation(StandPoint* sp, double& z, int& n);
   45 
   46   // add all possible orientations for the observation list
   47   void add_all();
   48 
   49 private:
   50 
   51   PointData&       PD_;
   52   ObservationList& OL_;
   53 
   54   void orientation(ObservationList::const_iterator& iter, double& z, int& n);
   55 };
   56 
   57 }}
   58 #endif