DGtal 1.3.0
|
#include <iostream>
#include <random>
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/parametric/AccFlower2D.h"
#include "DGtal/shapes/parametric/Astroid2D.h"
#include "DGtal/shapes/parametric/Ball2D.h"
#include "DGtal/shapes/parametric/Ellipse2D.h"
#include "DGtal/shapes/parametric/Flower2D.h"
#include "DGtal/shapes/parametric/Lemniscate2D.h"
#include "DGtal/shapes/parametric/NGon2D.h"
#include "DGtal/shapes/implicit/ImplicitBall.h"
#include "DGtal/shapes/implicit/ImplicitHyperCube.h"
#include "DGtal/shapes/implicit/ImplicitNorm1Ball.h"
#include "DGtal/shapes/implicit/ImplicitRoundedHyperCube.h"
Go to the source code of this file.
Typedefs | |
typedef Z2i::Space | Space |
typedef Z2i::Point | Point |
typedef Z2i::RealPoint | RealPoint |
typedef AccFlower2D< Space > | AccFlower |
typedef Astroid2D< Space > | Astroid |
typedef Ball2D< Space > | Ball |
typedef Ellipse2D< Space > | Ellipse |
typedef Flower2D< Space > | Flower |
typedef Lemniscate2D< Space > | Lemniscate |
typedef NGon2D< Space > | NGon |
typedef ImplicitBall< Space > | BallImplicit |
typedef ImplicitHyperCube< Space > | HyperCubeImplicit |
typedef ImplicitNorm1Ball< Space > | Norm1BallImplicit |
typedef ImplicitRoundedHyperCube< Space > | RoundedHyperCubeImplicit |
Functions | |
template<typename Shape > | |
Shape | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
AccFlower | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
Astroid | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
Ball | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
Ellipse | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
Flower | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
Lemniscate | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
NGon | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
BallImplicit | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
HyperCubeImplicit | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
Norm1BallImplicit | createShape (const RealPoint ¢er, const RealPoint &radii) |
template<> | |
RoundedHyperCubeImplicit | createShape (const RealPoint ¢er, const RealPoint &radii) |
std::uniform_real_distribution< double > | unif (-1000000., 1000000.) |
TEMPLATE_TEST_CASE ("Star shapes", "move() method", AccFlower, Astroid, Ball, Ellipse, Flower, Lemniscate, NGon, BallImplicit, HyperCubeImplicit, Norm1BallImplicit, RoundedHyperCubeImplicit) | |
Variables | |
std::default_random_engine | re |
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 the moveTo() method of star shapes.
This file is part of the DGtal library.
Definition in file testShapeMoveCenter.cpp.
typedef AccFlower2D<Space> AccFlower |
Definition at line 56 of file testShapeMoveCenter.cpp.
Definition at line 57 of file testShapeMoveCenter.cpp.
Definition at line 58 of file testShapeMoveCenter.cpp.
typedef ImplicitBall<Space> BallImplicit |
Definition at line 64 of file testShapeMoveCenter.cpp.
Definition at line 59 of file testShapeMoveCenter.cpp.
Definition at line 60 of file testShapeMoveCenter.cpp.
typedef ImplicitHyperCube<Space> HyperCubeImplicit |
Definition at line 65 of file testShapeMoveCenter.cpp.
typedef Lemniscate2D<Space> Lemniscate |
Definition at line 61 of file testShapeMoveCenter.cpp.
Definition at line 62 of file testShapeMoveCenter.cpp.
typedef ImplicitNorm1Ball<Space> Norm1BallImplicit |
Definition at line 66 of file testShapeMoveCenter.cpp.
typedef Z2i::Point Point |
Definition at line 53 of file testShapeMoveCenter.cpp.
typedef Z2i::RealPoint RealPoint |
Definition at line 54 of file testShapeMoveCenter.cpp.
Definition at line 67 of file testShapeMoveCenter.cpp.
typedef Z2i::Space Space |
Definition at line 52 of file testShapeMoveCenter.cpp.
Definition at line 73 of file testShapeMoveCenter.cpp.
Definition at line 79 of file testShapeMoveCenter.cpp.
Definition at line 85 of file testShapeMoveCenter.cpp.
Definition at line 91 of file testShapeMoveCenter.cpp.
Definition at line 97 of file testShapeMoveCenter.cpp.
Lemniscate createShape | ( | const RealPoint & | center, |
const RealPoint & | radii | ||
) |
Definition at line 103 of file testShapeMoveCenter.cpp.
Definition at line 109 of file testShapeMoveCenter.cpp.
BallImplicit createShape | ( | const RealPoint & | center, |
const RealPoint & | radii | ||
) |
Definition at line 115 of file testShapeMoveCenter.cpp.
HyperCubeImplicit createShape | ( | const RealPoint & | center, |
const RealPoint & | radii | ||
) |
Definition at line 121 of file testShapeMoveCenter.cpp.
Norm1BallImplicit createShape | ( | const RealPoint & | center, |
const RealPoint & | radii | ||
) |
Definition at line 127 of file testShapeMoveCenter.cpp.
RoundedHyperCubeImplicit createShape | ( | const RealPoint & | center, |
const RealPoint & | radii | ||
) |
Definition at line 133 of file testShapeMoveCenter.cpp.
TEMPLATE_TEST_CASE | ( | "Star shapes" | , |
"move() method" | , | ||
AccFlower | , | ||
Astroid | , | ||
Ball | , | ||
Ellipse | , | ||
Flower | , | ||
Lemniscate | , | ||
NGon | , | ||
BallImplicit | , | ||
HyperCubeImplicit | , | ||
Norm1BallImplicit | , | ||
RoundedHyperCubeImplicit | |||
) |
Definition at line 141 of file testShapeMoveCenter.cpp.
std::uniform_real_distribution< double > unif | ( | - | 1000000., |
1000000. | |||
) |
Referenced by notNullRealPoint(), notNullValue(), TEMPLATE_TEST_CASE(), and TEST_CASE().
std::default_random_engine re |
Definition at line 139 of file testShapeMoveCenter.cpp.
Referenced by notNullRealPoint(), notNullValue(), LibBoard::Ellipse::rotate(), TEMPLATE_TEST_CASE(), TEST_CASE(), testCurvature2d(), testEstimatorCache(), testGaussianCurvature3d(), testMeanCurvature3d(), and testPrincipalCurvatures3d().