DGtal  1.4.beta
demo-kernel-2.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/viewers/Viewer3D.h"
Include dependency graph for demo-kernel-2.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

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
2011/03/05

An example file named demo-kernel-domain.

This file is part of the DGtal library.

Definition in file demo-kernel-2.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 56 of file demo-kernel-2.cpp.

57 {
58  QApplication application(argc,argv);
59  typedef DGtal::SpaceND<3, DGtal::int32_t> MySpace;
60  typedef MySpace::Point MyPoint;
61  typedef HyperRectDomain<MySpace> MyDomain;
62  MyPoint p1( 0, 0, 0 );
63  MyPoint p2( 5, 5 ,5 );
64  MyPoint p3( 2, 3, 4 );
65  MyDomain domain( p1, p2 );
66  Viewer3D<> viewer; // for 3D visualization
67  viewer.show();
68  viewer << domain;
69  viewer << p1 << p2 << p3;
70  viewer<< Viewer3D<>::updateDisplay;
71  return application.exec();
72 }
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
MyPointD Point
Definition: testClone2.cpp:383
Domain domain

References domain, and DGtal::Viewer3D< TSpace, TKSpace >::show().