mirror of https://github.com/CGAL/cgal
parent
9c44fa6a68
commit
d6875b7bcd
|
|
@ -36,9 +36,10 @@
|
|||
#include <CGAL/IO/Qt_widget.h>
|
||||
|
||||
//Qt_widget_layer
|
||||
#include <CGAL/IO/Qt_layer_show_triangulation.h>
|
||||
#include <CGAL/IO/Qt_layer_show_voronoy.h>
|
||||
#include <CGAL/IO/Qt_layer_show_points.h>
|
||||
#include "Qt_layer_show_triangulation.h"
|
||||
#include "Qt_layer_show_voronoy.h"
|
||||
#include "Qt_layer_show_points.h"
|
||||
|
||||
#include <CGAL/IO/Qt_layer_show_mouse_coordinates.h>
|
||||
|
||||
//Qt
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ LINK32=link.exe
|
|||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GR /GX /ZI /Od /I "$(QTDIR)\include" /I "$(CGALROOT)\stlport" /I "$(CGALROOT)\include\cgal\config\msvc" /I "$(CGALROOT)\auxiliary\wingmp\gmp-2.0.2" /I "$(CGALROOT)\include" /I "..\..\..\\Include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "CGAL_USE_QT" /D "QT_DLL" /D "UNICODE" /D "QT_THREAD_SUPPORT" /FR /YX /FD /GZ /c /Tp
|
||||
# ADD CPP /nologo /w /W0 /Gm /GR /GX /ZI /Od /I "$(QTDIR)\include" /I "$(CGALROOT)\stlport" /I "$(CGALROOT)\include\cgal\config\msvc" /I "$(CGALROOT)\auxiliary\wingmp\gmp-2.0.2" /I "$(CGALROOT)\include" /I "..\..\..\\Include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "CGAL_USE_QT" /D "QT_DLL" /D "UNICODE" /D "QT_THREAD_SUPPORT" /FR /YX /FD /GZ /c /Tp
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x40c /d "_DEBUG"
|
||||
|
|
@ -91,11 +91,15 @@ LINK32=link.exe
|
|||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\alpha_shapes_2.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\src\CGALQt\Qt_widget.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Qt_widget_move_point.C
|
||||
SOURCE=..\..\..\src\CGALQt\Qt_widget_layer.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
|
|
@ -113,14 +117,6 @@ SOURCE=.\Qt_widget_toolbar.C
|
|||
|
||||
SOURCE=.\Qt_widget_toolbar_layers.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\src\CGALQt\Qt_widget_layer.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\triangulationdemo.C
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
|
|
@ -146,17 +142,21 @@ InputPath=..\..\..\include\CGAL\IO\Qt_widget.h
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Qt_widget_move_point.h
|
||||
SOURCE=..\..\..\include\CGAL\IO\Qt_widget_handtool.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\include\CGAL\IO\Qt_widget_layer.h
|
||||
|
||||
!IF "$(CFG)" == "demo - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "demo - Win32 Debug"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=.\Qt_widget_move_point.h
|
||||
InputPath=..\..\..\include\CGAL\IO\Qt_widget_layer.h
|
||||
|
||||
"Qt_widget_move_point.moc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(QTDIR)\bin\moc.exe -o "Qt_widget_move_point.moc" "Qt_widget_move_point.h"
|
||||
"../../../src/CGALQt/Qt_widget_layer.moc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(QTDIR)\bin\moc.exe -o "../../../src/CGALQt/Qt_widget_layer.moc" "../../../Include/CGAL/IO/Qt_widget_layer.h"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -223,40 +223,6 @@ InputPath=.\Qt_widget_toolbar.h
|
|||
# Begin Source File
|
||||
|
||||
SOURCE=.\Qt_widget_toolbar_layers.h
|
||||
|
||||
!IF "$(CFG)" == "demo - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "demo - Win32 Debug"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=.\Qt_widget_toolbar_layers.h
|
||||
|
||||
"Qt_widget_toolbar_layers.moc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(QTDIR)\bin\moc.exe -o "Qt_widget_toolbar_layers.moc" "Qt_widget_toolbar_layers.h"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\include\CGAL\IO\Qt_widget_layer.h
|
||||
|
||||
!IF "$(CFG)" == "demo - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "demo - Win32 Debug"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=..\..\..\include\CGAL\IO\Qt_widget_layer.h
|
||||
|
||||
"../../../src/CGALQt/Qt_widget_layer.moc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(QTDIR)\bin\moc.exe -o "../../../src/CGALQt/Qt_widget_layer.moc" "../../../Include/CGAL/IO/Qt_widget_layer.h"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
|
|
|||
|
|
@ -99,6 +99,14 @@ SOURCE=..\..\..\src\CGALQt\Qt_widget.C
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\src\CGALQt\Qt_widget_layer.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Qt_widget_move_list_point.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\src\CGALQt\Qt_widget_standard_toolbar.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
@ -109,10 +117,6 @@ SOURCE=..\..\..\src\CGALQt\Qt_widget_tool.C
|
|||
|
||||
SOURCE=.\Qt_widget_toolbar.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\src\CGALQt\Qt_widget_layer.C
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
|
|
@ -146,6 +150,25 @@ SOURCE=..\..\..\include\CGAL\IO\Qt_Widget_Handtool.h
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Qt_widget_move_list_point.h
|
||||
|
||||
!IF "$(CFG)" == "demo - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "demo - Win32 Debug"
|
||||
|
||||
# Begin Custom Build
|
||||
InputPath=.\Qt_widget_move_list_point.h
|
||||
|
||||
"Qt_widget_move_list_point.moc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
$(QTDIR)\bin\moc.exe -o "Qt_widget_move_list_point.moc" "Qt_widget_move_list_point.h"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\include\CGAL\IO\Qt_Widget_standard_toolbar.h
|
||||
|
||||
!IF "$(CFG)" == "demo - Win32 Release"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,61 @@
|
|||
// ============================================================================
|
||||
//
|
||||
// Copyright (c) 1997-2000 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// file : include/CGAL/IO/Qt_layer_show_points.h
|
||||
// package : Qt_widget
|
||||
// author(s) : Radu Ursu
|
||||
// release :
|
||||
// release_date :
|
||||
//
|
||||
// coordinator : Laurent Rineau <rineau@clipper.ens.fr>
|
||||
//
|
||||
// ============================================================================
|
||||
|
||||
#ifndef CGAL_QT_LAYER_SHOW_POINTS_H
|
||||
#define CGAL_QT_LAYER_SHOW_POINTS_H
|
||||
|
||||
#include <CGAL/IO/Qt_widget_layer.h>
|
||||
#include <qobject.h>
|
||||
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
template <class T>
|
||||
class Qt_layer_show_points : public Qt_widget_layer {
|
||||
public:
|
||||
typedef typename T::Point Point;
|
||||
typedef typename T::Segment Segment;
|
||||
typedef typename T::Vertex Vertex;
|
||||
typedef typename T::Vertex_iterator Vertex_iterator;
|
||||
|
||||
Qt_layer_show_points(T &t) : tr(t){};
|
||||
|
||||
void draw(Qt_widget &widget)
|
||||
{
|
||||
Vertex v;
|
||||
Vertex_iterator it = tr.vertices_begin(),
|
||||
beyond = tr.vertices_end();
|
||||
widget << CGAL::GREEN << CGAL::PointSize (3)
|
||||
<< CGAL::PointStyle (CGAL::DISC);
|
||||
while(it != beyond)
|
||||
{
|
||||
v = *it;
|
||||
widget << v.point();
|
||||
++it;
|
||||
}
|
||||
};
|
||||
private:
|
||||
T &tr;
|
||||
|
||||
};//end class
|
||||
|
||||
} // namespace CGAL
|
||||
|
||||
#endif // CGAL_QT_LAYER_SHOW_POINTS_H
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
// ============================================================================
|
||||
//
|
||||
// Copyright (c) 1997-2000 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// file : include/CGAL/IO/Qt_layer_show_triangulation.h
|
||||
// package : Qt_widget
|
||||
// author(s) : Radu Ursu
|
||||
// release :
|
||||
// release_date :
|
||||
//
|
||||
// coordinator : Laurent Rineau <rineau@clipper.ens.fr>
|
||||
//
|
||||
// ============================================================================
|
||||
|
||||
#ifndef CGAL_QT_LAYER_SHOW_TRIANGULATION_H
|
||||
#define CGAL_QT_LAYER_SHOW_TRIANGULATION_H
|
||||
|
||||
#include <CGAL/IO/Qt_widget_layer.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
template <class T>
|
||||
class Qt_layer_show_triangulation : public Qt_widget_layer
|
||||
{
|
||||
public:
|
||||
|
||||
Qt_layer_show_triangulation(T &t) : tr(t){};
|
||||
|
||||
|
||||
void draw(Qt_widget &widget)
|
||||
{
|
||||
widget << CGAL::BLUE;
|
||||
widget << tr;
|
||||
};
|
||||
|
||||
private:
|
||||
T &tr;
|
||||
};//end class
|
||||
|
||||
} // namespace CGAL
|
||||
|
||||
#endif // CGAL_QT_LAYER_SHOW_TRIANGULATION_H
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
// ============================================================================
|
||||
//
|
||||
// Copyright (c) 1997-2000 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// file : include/CGAL/IO/Qt_layer_show_voronoy.h
|
||||
// package : Qt_widget
|
||||
// author(s) : Radu Ursu
|
||||
// release :
|
||||
// release_date :
|
||||
//
|
||||
// coordinator : Laurent Rineau <rineau@clipper.ens.fr>
|
||||
//
|
||||
// ============================================================================
|
||||
|
||||
#ifndef CGAL_QT_LAYER_SHOW_VORONOI_H
|
||||
#define CGAL_QT_LAYER_SHOW_VORONOI_H
|
||||
|
||||
|
||||
#include <qobject.h>
|
||||
#include <CGAL/IO/Qt_widget_layer.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
template <class T>
|
||||
class Qt_layer_show_voronoi : public Qt_widget_layer
|
||||
{
|
||||
public:
|
||||
Qt_layer_show_voronoi(T &t1) : tr(t1){};
|
||||
|
||||
void draw(Qt_widget &widget)
|
||||
{
|
||||
widget << CGAL::RED ;
|
||||
tr.draw_dual(widget);
|
||||
};
|
||||
|
||||
private:
|
||||
T &tr;
|
||||
};//end class
|
||||
|
||||
} // namespace CGAL
|
||||
|
||||
#endif // CGAL_QT_LAYER_SHOW_VORONOI_H
|
||||
|
|
@ -27,13 +27,14 @@
|
|||
|
||||
#include <CGAL/IO/Qt_widget.h>
|
||||
|
||||
|
||||
#include <CGAL/IO/Qt_layer_show_triangulation.h>
|
||||
#include <CGAL/IO/Qt_layer_show_voronoy.h>
|
||||
#include <CGAL/IO/Qt_layer_show_points.h>
|
||||
#include <CGAL/IO/Qt_layer_show_nearest_vertex.h>
|
||||
#include <CGAL/IO/Qt_layer_show_mouse_coordinates.h>
|
||||
|
||||
#include "Qt_layer_show_triangulation.h"
|
||||
#include "Qt_layer_show_voronoy.h"
|
||||
#include "Qt_layer_show_points.h"
|
||||
#include "Qt_layer_show_nearest_vertex.h"
|
||||
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qtoolbutton.h>
|
||||
#include <qtoolbar.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue