DGtal  1.4.beta
testImplicitFunctionModels.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/shapes/implicit/ImplicitBall.h"
#include "DGtal/shapes/implicit/ImplicitNorm1Ball.h"
#include "DGtal/shapes/implicit/ImplicitHyperCube.h"
#include "DGtal/shapes/implicit/ImplicitRoundedHyperCube.h"
#include "DGtal/shapes/implicit/ImplicitPolynomial3Shape.h"
#include "DGtal/shapes/implicit/CImplicitFunction.h"
#include "DGtal/shapes/implicit/CImplicitFunctionDiff1.h"
#include "DGtal/helpers/StdDefs.h"
Include dependency graph for testImplicitFunctionModels.cpp:

Go to the source code of this file.

Functions

bool testImplicitFunctionModels ()
 
int main (int, char **)
 

Detailed Description

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/.

Author
Jacques-Olivier Lachaud (jacqu.nosp@m.es-o.nosp@m.livie.nosp@m.r.la.nosp@m.chaud.nosp@m.@uni.nosp@m.v-sav.nosp@m.oie..nosp@m.fr ) Laboratory of Mathematics (CNRS, UMR 5807), University of Savoie, France
Date
2012/02/28

Functions for testing class ImplicitFunctionModels.

This file is part of the DGtal library.

Definition in file testImplicitFunctionModels.cpp.

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Definition at line 84 of file testImplicitFunctionModels.cpp.

85 {
86  trace.beginBlock ( "Testing class ImplicitFunctionModels" );
87  bool res = testImplicitFunctionModels(); // && ... other tests
88  trace.emphase() << ( res ? "Passed." : "Error." ) << endl;
89  trace.endBlock();
90  return res ? 0 : 1;
91 }
void beginBlock(const std::string &keyword="")
std::ostream & emphase()
double endBlock()
Trace trace
Definition: Common.h:153
bool testImplicitFunctionModels()

References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), testImplicitFunctionModels(), and DGtal::trace.

◆ testImplicitFunctionModels()

bool testImplicitFunctionModels ( )

Tests models of CImplicitFunction.

Definition at line 56 of file testImplicitFunctionModels.cpp.

57 {
58  typedef ImplicitBall<Z2i::Space> _ImplicitBall2D;
59  typedef ImplicitBall<Z3i::Space> _ImplicitBall3D;
60  typedef ImplicitNorm1Ball<Z2i::Space> _ImplicitNorm1Ball2D;
61  typedef ImplicitNorm1Ball<Z3i::Space> _ImplicitNorm1Ball3D;
62  typedef ImplicitHyperCube<Z2i::Space> _ImplicitHyperCube2D;
63  typedef ImplicitHyperCube<Z3i::Space> _ImplicitHyperCube3D;
64  typedef ImplicitRoundedHyperCube<Z2i::Space> _ImplicitRoundedHyperCube2D;
65  typedef ImplicitRoundedHyperCube<Z3i::Space> _ImplicitRoundedHyperCube3D;
66  typedef ImplicitPolynomial3Shape<Z3i::Space> _ImplicitPolynomial3Shape;
67  BOOST_CONCEPT_ASSERT(( concepts::CImplicitFunction< _ImplicitBall2D > ));
68  BOOST_CONCEPT_ASSERT(( concepts::CImplicitFunction< _ImplicitBall3D > ));
76  //BOOST_CONCEPT_ASSERT(( CImplicitFunctionDiff1< _ImplicitBall2D > ));
78  return true;
79 }
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
Definition: ImplicitBall.h:65
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create an hypercube in n...
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball for the L_...
Aim: model of CEuclideanOrientedShape concepts to create a shape from a polynomial.
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a rounded hypercu...
Aim: Describes a 1-differentiable function of the form f(x), where x is some real point in the given ...
Aim: Describes any function of the form f(x), where x is some real point in the given space,...

Referenced by main().