1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
// Copyright (c) 2011 CNRS and LIRIS' Establishments (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v6.1.1/Linear_cell_complex/demo/Linear_cell_complex/Viewer.h $
// $Id: demo/Linear_cell_complex/Viewer.h 08b27d3db14 $
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Guillaume Damiand <guillaume.damiand@liris.cnrs.fr>
// Kumar Snehasish <kumar.snehasish@gmail.com>
// Mostafa Ashraf <mostaphaashraf1996@gmail.com>
//
#ifndef VIEWER_H
#define VIEWER_H
#include "typedefs.h"
#include <CGAL/draw_linear_cell_complex.h>
#include <CGAL/Qt/Basic_viewer.h>
class Viewer : public CGAL::Basic_viewer
{
Q_OBJECT
typedef CGAL::Basic_viewer Base;
public:
Viewer(QWidget* parent);
void setScene(Scene* scene_, bool doredraw=true);
void keyPressEvent(QKeyEvent *e);
virtual QString helpString() const;
public Q_SLOTS:
void sceneChanged();
private:
CGAL::Graphics_scene_options<LCC,
Dart_const_descriptor,
Dart_const_descriptor,
Dart_const_descriptor,
Dart_const_descriptor> m_gs_options;
CGAL::Graphics_scene m_graphic_buffer;
Scene* scene;
bool m_previous_scene_empty;
};
#endif
|