1 // Copyright (c) 2012, 2020 Tel-Aviv University (Israel).
2 // All rights reserved.
3 //
4 // This file is part of CGAL (www.cgal.org).
5 //
6 // $URL: https://github.com/CGAL/cgal/blob/v5.3/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/FillFaceCallback.h $
7 // $Id: FillFaceCallback.h 1d3815f 2020-10-02T17:29:03+02:00 Ahmed Essam
8 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
9 //
10 // Author(s): Alex Tsui <alextsui05@gmail.com>
11 //            Ahmed Essam <theartful.ae@gmail.com>
12 
13 #ifndef FILL_FACE_CALLBACK_H
14 #define FILL_FACE_CALLBACK_H
15 
16 #include "Callback.h"
17 #include <CGAL/Object.h>
18 #include <QColor>
19 
20 namespace demo_types
21 {
22 enum class TraitsType : int;
23 }
24 
25 class QGraphicsSceneMouseEvent;
26 
27 /**
28    Supports visualization of point location on arrangements.
29 */
30 class FillFaceCallbackBase : public CGAL::Qt::Callback
31 {
32 public:
33   static FillFaceCallbackBase*
34   create(demo_types::TraitsType, CGAL::Object arr_obj, QObject* parent);
35 
36   void setColor( QColor c );
37   QColor getColor( ) const;
38 
39 protected:
40   FillFaceCallbackBase( QObject* parent );
41 
42   QColor fillColor;
43 };
44 
45 #endif // FILL_FACE_CALLBACK_H
46