DGtal 1.3.0
|
#include <cstdio>
#include <cmath>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <string>
#include <unordered_set>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/kernel/sets/CDigitalSet.h"
#include "DGtal/kernel/sets/CDigitalSetArchetype.h"
#include "DGtal/kernel/domains/CDomain.h"
#include "DGtal/kernel/domains/CDomainArchetype.h"
#include "DGtal/kernel/sets/DigitalSetBySTLVector.h"
#include "DGtal/kernel/sets/DigitalSetBySTLSet.h"
#include "DGtal/kernel/sets/DigitalSetByAssociativeContainer.h"
#include "DGtal/kernel/sets/DigitalSetFromMap.h"
#include "DGtal/kernel/sets/DigitalSetSelector.h"
#include "DGtal/kernel/sets/DigitalSetDomain.h"
#include "DGtal/kernel/sets/DigitalSetInserter.h"
#include "DGtal/images/ImageContainerBySTLMap.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/kernel/PointHashFunctions.h"
Go to the source code of this file.
Macros | |
#define | INBLOCK_TEST(x) |
#define | INBLOCK_TEST2(x, y) |
Functions | |
bool | testDigitalSetBoardSnippet () |
template<typename DigitalSetType > | |
bool | testDigitalSet (const DigitalSetType &aSet1, const DigitalSetType &aSet2) |
template<typename DigitalDomain , int props> | |
bool | testDigitalSetSelector (const DigitalDomain &domain, const std::string &comment) |
bool | testDigitalSetDraw () |
bool | testDigitalSetDomain () |
bool | testDigitalSetConcept () |
int | main () |
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/.
This file is part of the DGtal library
Definition in file testDigitalSet.cpp.
#define INBLOCK_TEST | ( | x | ) |
Definition at line 74 of file testDigitalSet.cpp.
#define INBLOCK_TEST2 | ( | x, | |
y | |||
) |
Definition at line 80 of file testDigitalSet.cpp.
int main | ( | void | ) |
Domain characterized by points a and b
Definition at line 383 of file testDigitalSet.cpp.
References DGtal::Trace::beginBlock(), DGtal::BIG_DS, domain, DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::HIGH_BEL_DS, DGtal::Trace::info(), DGtal::LOW_BEL_DS, DGtal::LOW_ITER_DS, DGtal::LOW_VAR_DS, DGtal::MEDIUM_DS, DGtal::HyperRectDomain< TSpace >::size(), DGtal::SMALL_DS, testDigitalSetBoardSnippet(), testDigitalSetDomain(), testDigitalSetDraw(), testDigitalSetSelector(), and DGtal::trace.
bool testDigitalSet | ( | const DigitalSetType & | aSet1, |
const DigitalSetType & | aSet2 | ||
) |
Definition at line 149 of file testDigitalSet.cpp.
References DGtal::Trace::info(), and DGtal::trace.
bool testDigitalSetBoardSnippet | ( | ) |
Definition at line 98 of file testDigitalSet.cpp.
References DGtal::HyperRectDomain< TSpace >::className(), LibBoard::Board::clear(), domain, LibBoard::Board::saveSVG(), LibBoard::Board::setUnit(), and LibBoard::Board::UCentimeter.
Referenced by main().
bool testDigitalSetConcept | ( | ) |
Definition at line 370 of file testDigitalSet.cpp.
bool testDigitalSetDomain | ( | ) |
Definition at line 317 of file testDigitalSet.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), DGtal::Trace::beginBlock(), DGtal::BIG_DS, domain, DGtal::HyperRectDomain< TSpace >::end(), DGtal::Trace::endBlock(), DGtal::HIGH_BEL_DS, DGtal::HIGH_ITER_DS, INBLOCK_TEST, DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testDigitalSetDraw | ( | ) |
Definition at line 276 of file testDigitalSet.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), DGtal::Trace::beginBlock(), DGtal::BIG_DS, DGtal::HyperRectDomain< TSpace >::className(), domain, DGtal::HyperRectDomain< TSpace >::end(), DGtal::Trace::endBlock(), DGtal::HIGH_BEL_DS, DGtal::HIGH_ITER_DS, LibBoard::Board::saveSVG(), LibBoard::Board::scale(), and DGtal::trace.
Referenced by main().
bool testDigitalSetSelector | ( | const DigitalDomain & | domain, |
const std::string & | comment | ||
) |
Definition at line 252 of file testDigitalSet.cpp.
References DGtal::Trace::beginBlock(), domain, DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::HyperRectDomain< TSpace >::lowerBound(), DGtal::trace, and DGtal::HyperRectDomain< TSpace >::upperBound().
Referenced by main().