DGtal 2.1.0
Loading...
Searching...
No Matches
viewer3D-11-extension.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/viewers/PolyscopeViewer.h"
Include dependency graph for viewer3D-11-extension.cpp:

Go to the source code of this file.

Data Structures

struct  RandomPointExtension
 [viewer3D-extension-derivation] More...
 

Functions

int main ()
 [viewer3D-extension-derivation]
 

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 5127), University of Savoie, France
Date
2017/03/05

Simple example of class PolyscopeViewer.

This file is part of the DGtal library.

Definition in file viewer3D-11-extension.cpp.

Function Documentation

◆ main()

int main ( void  )

[viewer3D-extension-derivation]

[viewer3D-extension-set-extension]

[viewer3D-extension-set-extension]

Definition at line 71 of file viewer3D-11-extension.cpp.

72{
73 Point p1( 0, 0, 0 );
74 Point p2( 5, 5, 5 );
75 Point p3( 2, 3, 4 );
76
77 Domain domain( p1, p2 );
78
79 KSpace K;
80 K.init( p1, p2, true );
81
82 PolyscopeViewer viewer(K);
84 viewer.setCallback( new RandomPointExtension );
86 viewer << domain;
87 viewer << p1 << p2 << p3;
88
89 viewer.show();
90 return 0;
91}
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
[viewer3D-extension-derivation]
KSpace K
Domain domain

References domain, DGtal::KhalimskySpaceND< dim, TInteger >::init(), K, DGtal::PolyscopeViewer< Space, KSpace >::setCallback(), and DGtal::PolyscopeViewer< Space, KSpace >::show().