Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Error occured when drawing arcs with CGAL::Qt::CircularArcGraphicsItem
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Error occured when drawing arcs with CGAL::Qt::CircularArcGraphicsItem
- Date: Mon, 01 Oct 2012 14:19:40 +0200
- Organization: GeometryFactory
With the information provided I would say that you are trying to copy an object of type CircularArcGraphicsItem<T> that is non copyable.
Sebastien.
On 10/01/2012 02:10 PM, Wang Hetao wrote:
Here is the compiling output:
make: Entering directory
`/home/taotao/codecs/dt_perturb_area-build-desktop-PATH___Qt___'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++
-I../dt_perturb_area -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4 -I. -I../dt_perturb_area -I. -o main.o
../dt_perturb_area/main.cpp
In file included from ../dt_perturb_area/main.cpp:2:0:
../dt_perturb_area/Point_Arrangement.hpp: In constructor
'Point_Arrangement::Point_Arrangement(const Point_info&)':
../dt_perturb_area/Point_Arrangement.hpp:47:48: warning: comparison between
signed and unsigned integer expressions [-Wsign-compare]
../dt_perturb_area/Point_Arrangement.hpp: In member function 'Point
Point_Arrangement::perturb_to_arc()':
../dt_perturb_area/Point_Arrangement.hpp:112:44: warning: comparison between
signed and unsigned integer expressions [-Wsign-compare]
../dt_perturb_area/Point_Arrangement.hpp: In member function 'double
Point_Arrangement::get_max_perturb_dist()':
../dt_perturb_area/Point_Arrangement.hpp:144:44: warning: comparison between
signed and unsigned integer expressions [-Wsign-compare]
In file included from
/usr/local/include/CGAL/Qt/CircularArcGraphicsItem.h:27:0,
from ../dt_perturb_area/main.cpp:23:
/usr/include/qt4/QtCore/qobject.h: In copy constructor
'CGAL::Qt::GraphicsItem::GraphicsItem(const CGAL::Qt::GraphicsItem&)':
/usr/include/qt4/QtCore/qobject.h:333:5: error: 'QObject::QObject(const
QObject&)' is private
/usr/local/include/CGAL/Qt/GraphicsItem.h:38:23: error: within this context
/usr/include/qt4/QtGui/qgraphicsitem.h:471:5: error:
'QGraphicsItem::QGraphicsItem(const QGraphicsItem&)' is private
/usr/local/include/CGAL/Qt/GraphicsItem.h:38:23: error: within this context
In file included from ../dt_perturb_area/main.cpp:23:0:
/usr/local/include/CGAL/Qt/CircularArcGraphicsItem.h: In copy constructor
'CGAL::Qt::CircularArcGraphicsItem<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Qt::CircularArcGraphicsItem<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
::CircularArcGraphicsItem(const
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>/usr/local/include/CGAL/Qt/CircularArcGraphicsItem.h:38:7: note: synthesized
&)':
method 'CGAL::Qt::GraphicsItem::GraphicsItem(const CGAL::Qt::GraphicsItem&)'
first required here
../dt_perturb_area/main.cpp: In function 'const CircularArcGraphicsItem
construct_arc(const CK_arc&, int)':
../dt_perturb_area/main.cpp:113:12: note: synthesized method
'CGAL::Qt::CircularArcGraphicsItem<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Qt::CircularArcGraphicsItem<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
::CircularArcGraphicsItem(const
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>../dt_perturb_area/main.cpp: In function 'double
&)' first required here
get_perturb_range_area(const
std::vector<CGAL::Circular_arc_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>../dt_perturb_area/main.cpp:161:36: warning: comparison between signed and
&, const Point&)':
unsigned integer expressions [-Wsign-compare]
../dt_perturb_area/main.cpp: In function 'int main(int, char**)':
../dt_perturb_area/main.cpp:194:37: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
../dt_perturb_area/main.cpp:242:51: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
In file included from /usr/local/include/CGAL/user_classes.h:29:0,
from
/usr/local/include/CGAL/Kernel/global_functions_2.h:33,
from /usr/local/include/CGAL/Kernel/global_functions.h:31,
from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:30,
from /usr/local/include/CGAL/Simple_cartesian.h:28,
from
/usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from ../dt_perturb_area/Common_definations.h:4,
from ../dt_perturb_area/main.cpp:1:
/usr/local/include/CGAL/Point_2.h: In constructor
'CGAL::Point_2<R_>::Point_2(const T1&, const T2&) [with T1 =
CGAL::Sqrt_extension<CGAL::Quotient<CGAL::MP_Float>,
CGAL::Quotient<CGAL::MP_Float>, CGAL::Boolean_tag<true>,
CGAL::Boolean_tag<true> >, T2 =
CGAL::Sqrt_extension<CGAL::Quotient<CGAL::MP_Float>,
CGAL::Quotient<CGAL::MP_Float>, CGAL::Boolean_tag<true>,
CGAL::Boolean_tag<true> >, R_ =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>../dt_perturb_area/main.cpp:102:98: instantiated from here
]':
/usr/local/include/CGAL/Point_2.h:81:67: error: no match for call to
'(CGAL::Cartesian_base_ref_count<CGAL::Quotient<CGAL::MP_Float>,
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::CartesianKernelFunctors::Construct_point_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
::Construct_point_2 {aka
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Sqrt_extension<CGAL::Quotient<CGAL::MP_Float>,
}) (CGAL::Return_base_tag, const
CGAL::Quotient<CGAL::MP_Float>, CGAL::Boolean_tag<true>,
CGAL::Boolean_tag<true> >&, const
CGAL::Sqrt_extension<CGAL::Quotient<CGAL::MP_Float>,
CGAL::Quotient<CGAL::MP_Float>, CGAL::Boolean_tag<true>,
CGAL::Boolean_tag<true> >&)'
/usr/local/include/CGAL/Cartesian/function_objects.h:2832:9: note:
candidates are:
/usr/local/include/CGAL/Cartesian/function_objects.h:2842:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Rep
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(CGAL::Return_base_tag,
CGAL::Origin) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::PointC2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Rep =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>/usr/local/include/CGAL/Cartesian/function_objects.h:2842:5: note:
]
candidate expects 2 arguments, 3 provided
/usr/local/include/CGAL/Cartesian/function_objects.h:2846:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Rep
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(CGAL::Return_base_tag,
const RT&, const RT&) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::PointC2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Rep =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Quotient<CGAL::MP_Float>]
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::RT =
/usr/local/include/CGAL/Cartesian/function_objects.h:2846:5: note: no
known conversion for argument 2 from 'const
CGAL::Sqrt_extension<CGAL::Quotient<CGAL::MP_Float>,
CGAL::Quotient<CGAL::MP_Float>, CGAL::Boolean_tag<true>,
CGAL::Boolean_tag<true> >' to 'const RT& {aka const
CGAL::Quotient<CGAL::MP_Float>&}'
/usr/local/include/CGAL/Cartesian/function_objects.h:2850:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Rep
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(CGAL::Return_base_tag,
const RT&, const RT&, const RT&) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::PointC2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Rep =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Quotient<CGAL::MP_Float>]
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::RT =
/usr/local/include/CGAL/Cartesian/function_objects.h:2850:5: note:
candidate expects 4 arguments, 3 provided
/usr/local/include/CGAL/Cartesian/function_objects.h:2854:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(const
Line_2&) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Point_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Line_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Line_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>/usr/local/include/CGAL/Cartesian/function_objects.h:2854:5: note:
]
candidate expects 1 argument, 3 provided
/usr/local/include/CGAL/Cartesian/function_objects.h:2863:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(const
Line_2&, int) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Point_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Line_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Line_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>/usr/local/include/CGAL/Cartesian/function_objects.h:2863:5: note:
]
candidate expects 2 arguments, 3 provided
/usr/local/include/CGAL/Cartesian/function_objects.h:2873:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(CGAL::Origin)
const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Point_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>/usr/local/include/CGAL/Cartesian/function_objects.h:2873:5: note:
]
candidate expects 1 argument, 3 provided
/usr/local/include/CGAL/Cartesian/function_objects.h:2877:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(const RT&,
const RT&) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Point_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Quotient<CGAL::MP_Float>]
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::RT =
/usr/local/include/CGAL/Cartesian/function_objects.h:2877:5: note:
candidate expects 2 arguments, 3 provided
/usr/local/include/CGAL/Cartesian/function_objects.h:2881:5: note:
CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2
CGAL::CartesianKernelFunctors::Construct_point_2<K>::operator()(const RT&,
const RT&, const RT&) const [with K =
CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Point_2<CGAL::Filtered_bbox_circular_kernel_2<CGAL::Circular_kernel_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float>
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::Point_2 =
, CGAL::Algebraic_kernel_for_circles_2_2<CGAL::Quotient<CGAL::MP_Float>CGAL::Quotient<CGAL::MP_Float>]
, CGAL::CartesianKernelFunctors::Construct_point_2<K>::RT =
/usr/local/include/CGAL/Cartesian/function_objects.h:2881:5: note: no
known conversion for argument 1 from 'CGAL::Return_base_tag' to 'const RT&
{aka const CGAL::Quotient<CGAL::MP_Float>&}'
I don't know why, maybe this is a CGAL bug.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Error-occured-when-drawing-arcs-with-CGAL-Qt-CircularArcGraphicsItem-tp4655929.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Error occured when drawing arcs with CGAL::Qt::CircularArcGraphicsItem, Wang Hetao, 10/01/2012
- Re: [cgal-discuss] Error occured when drawing arcs with CGAL::Qt::CircularArcGraphicsItem, Sebastien Loriot (GeometryFactory), 10/01/2012
Archive powered by MHonArc 2.6.18.