DGtal 1.4.2
|
#include <cstdlib>
#include <iostream>
#include <random>
#include <algorithm>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/kernel/CPointPredicate.h"
#include "DGtal/geometry/surfaces/CAdditivePrimitiveComputer.h"
#include "DGtal/geometry/surfaces/ChordGenericStandardPlaneComputer.h"
Go to the source code of this file.
Functions | |
template<typename Integer > | |
Integer | getRandomInteger (const Integer &first, const Integer &after_last) |
template<typename Domain > | |
std::vector< typename Domain::Point > | pointsInStandardPlane (const Domain &domain, typename Domain::Integer a, typename Domain::Integer b, typename Domain::Integer c, typename Domain::Integer mu) |
template<typename PlaneComputer > | |
bool | checkChordGenericStandardPlaneComputer (PlaneComputer &computer, unsigned int nbplanes, int diameter) |
int | main (int, char **) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class ChordStandardPlaneComputer.
This file is part of the DGtal library.
Definition in file testChordGenericStandardPlaneComputer.cpp.
bool checkChordGenericStandardPlaneComputer | ( | PlaneComputer & | computer, |
unsigned int | nbplanes, | ||
int | diameter ) |
Definition at line 83 of file testChordGenericStandardPlaneComputer.cpp.
References domain, getRandomInteger(), DGtal::Trace::info(), pointsInStandardPlane(), and DGtal::trace.
Referenced by main().
Integer getRandomInteger | ( | const Integer & | first, |
const Integer & | after_last ) |
Definition at line 52 of file testChordGenericStandardPlaneComputer.cpp.
Referenced by checkChordGenericStandardPlaneComputer().
int main | ( | int | , |
char ** | ) |
Definition at line 130 of file testChordGenericStandardPlaneComputer.cpp.
References checkChordGenericStandardPlaneComputer(), DGtal::Trace::info(), DGtal::ChordGenericStandardPlaneComputer< TSpace, TInputPoint, TInternalScalar >::init(), and DGtal::trace.
std::vector< typename Domain::Point > pointsInStandardPlane | ( | const Domain & | domain, |
typename Domain::Integer | a, | ||
typename Domain::Integer | b, | ||
typename Domain::Integer | c, | ||
typename Domain::Integer | mu ) |
Definition at line 59 of file testChordGenericStandardPlaneComputer.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), domain, and DGtal::HyperRectDomain< TSpace >::end().
Referenced by checkChordGenericStandardPlaneComputer().