DGtal
1.5.beta
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/arithmetic/LatticePolytope2D.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/io/boards/Board2D.h"
Go to the source code of this file.
Functions | |
template<typename LatticePolytope2D > | |
bool | checkCut (LatticePolytope2D &cip, typename LatticePolytope2D::HalfSpace hs) |
template<typename Space > | |
bool | testLatticePolytope2D () |
int | myRand (int nb) |
template<typename Space > | |
bool | exhaustiveTestLatticePolytope2D () |
template<typename Space > | |
bool | specificTestLatticePolytope2D () |
template<typename Space > | |
bool | checkOutputConvexHullBorder () |
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 LatticePolytope2D.
This file is part of the DGtal library.
Definition in file testLatticePolytope2D.cpp.
bool checkCut | ( | LatticePolytope2D & | cip, |
typename LatticePolytope2D::HalfSpace | hs | ||
) |
Definition at line 51 of file testLatticePolytope2D.cpp.
References DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), DGtal::Trace::beginBlock(), DGtal::LatticePolytope2D< TSpace, TSequence >::boundingBoxDomain(), DGtal::LatticePolytope2D< TSpace, TSequence >::className(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), LibBoard::Board::clear(), DGtal::LatticePolytope2D< TSpace, TSequence >::cut(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), DGtal::Trace::endBlock(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::find(), DGtal::LatticePolytope2D< TSpace, TSequence >::getIncludedDigitalPoints(), DGtal::Trace::info(), LibBoard::Board::saveEPS(), DGtal::LatticePolytope2D< TSpace, TSequence >::size(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::size(), and DGtal::trace.
Referenced by exhaustiveTestLatticePolytope2D(), specificTestLatticePolytope2D(), and testLatticePolytope2D().
bool checkOutputConvexHullBorder | ( | ) |
Definition at line 334 of file testLatticePolytope2D.cpp.
References DGtal::HyperRectDomain< TSpace >::className(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), LibBoard::Board::clear(), and LibBoard::Board::saveEPS().
bool exhaustiveTestLatticePolytope2D | ( | ) |
Example of a test. To be completed.
Definition at line 218 of file testLatticePolytope2D.cpp.
References DGtal::Trace::beginBlock(), checkCut(), DGtal::Trace::endBlock(), DGtal::Trace::info(), myRand(), and DGtal::trace.
int main | ( | int | , |
char ** | |||
) |
Definition at line 381 of file testLatticePolytope2D.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), and DGtal::trace.
int myRand | ( | int | nb | ) |
Definition at line 208 of file testLatticePolytope2D.cpp.
Referenced by exhaustiveTestLatticePolytope2D().
bool specificTestLatticePolytope2D | ( | ) |
Example of a test. To be completed.
Definition at line 284 of file testLatticePolytope2D.cpp.
References checkCut(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), LibBoard::Board::clear(), and LibBoard::Board::saveEPS().
bool testLatticePolytope2D | ( | ) |
Example of a test. To be completed.
Definition at line 122 of file testLatticePolytope2D.cpp.
References DGtal::Trace::beginBlock(), checkCut(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), LibBoard::Board::clear(), DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), and DGtal::trace.