DGtal 1.3.0
|
#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/COBAGenericStandardPlaneComputer.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 | checkCOBAGenericStandardPlaneComputer (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 COBAStandardPlaneComputer.
This file is part of the DGtal library.
Definition in file testCOBAGenericStandardPlaneComputer.cpp.
bool checkCOBAGenericStandardPlaneComputer | ( | PlaneComputer & | computer, |
unsigned int | nbplanes, | ||
int | diameter | ||
) |
Definition at line 83 of file testCOBAGenericStandardPlaneComputer.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 testCOBAGenericStandardPlaneComputer.cpp.
Referenced by checkCOBAGenericStandardPlaneComputer().
int main | ( | int | , |
char ** | |||
) |
Definition at line 128 of file testCOBAGenericStandardPlaneComputer.cpp.
References checkCOBAGenericStandardPlaneComputer(), DGtal::Trace::info(), DGtal::COBAGenericStandardPlaneComputer< TSpace, TInternalInteger >::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 testCOBAGenericStandardPlaneComputer.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), domain, and DGtal::HyperRectDomain< TSpace >::end().
Referenced by checkCOBAGenericStandardPlaneComputer().