DGtal 1.4.0
|
#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::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::LatticePolytope2D< TSpace, TSequence >::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(), DGtal::Shapes< TDomain >::makeSetFromPointPredicate(), LibBoard::Board::saveEPS(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::size(), DGtal::LatticePolytope2D< TSpace, TSequence >::size(), and DGtal::trace.
Referenced by exhaustiveTestLatticePolytope2D(), specificTestLatticePolytope2D(), and testLatticePolytope2D().
bool checkOutputConvexHullBorder | ( | ) |
Definition at line 334 of file testLatticePolytope2D.cpp.
References DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), DGtal::HyperRectDomain< TSpace >::className(), LibBoard::Board::clear(), DGtal::Shapes< TDomain >::makeSetFromPointPredicate(), and LibBoard::Board::saveEPS().
Referenced by main().
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(), DGtal::IntegerComputer< TInteger >::staticGcd(), and DGtal::trace.
Referenced by main().
int main | ( | int | , |
char ** | ) |
Definition at line 381 of file testLatticePolytope2D.cpp.
References DGtal::Trace::beginBlock(), checkOutputConvexHullBorder(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), exhaustiveTestLatticePolytope2D(), testLatticePolytope2D(), 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::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), DGtal::HyperRectDomain< TSpace >::className(), LibBoard::Board::clear(), DGtal::Shapes< TDomain >::makeSetFromPointPredicate(), DGtal::Color::Red, 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::DigitalSetByAssociativeContainer< TDomain, TContainer >::className(), DGtal::HyperRectDomain< TSpace >::className(), LibBoard::Board::clear(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::Shapes< TDomain >::makeSetFromPointPredicate(), LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), and DGtal::trace.
Referenced by main().