Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] QGraphicsView and CGAL::Arangement_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] QGraphicsView and CGAL::Arangement_2


Chronological Thread 
  • From: changwon lee <>
  • To:
  • Subject: Re: [cgal-discuss] QGraphicsView and CGAL::Arangement_2
  • Date: Tue, 11 Jun 2013 12:40:34 +0900

Hello

I met same problem during CGAL 4.2 demo compilation with visual studio 2010.
solution is
in Arrangement_on_surface_with_history_2.h

  typedef Arrangement_on_surface_with_history_2<Geometry_traits_2,
                                                Base_topology_traits>  Self;
  typedef Self OuterSelf;  //define another Self

---------------
  class Curve_halfedges : public Curve_2,
                          public In_place_list_base<Curve_halfedges>
  {
    friend class Curve_halfedges_observer;
    friend class Arrangement_on_surface_with_history_2<GeomTraits_, TopTraits_>;
    friend class Arr_with_history_accessor<OuterSelf>;

because Self is also defined in base class Curve_2 (it is private)

regards

On 2013-05-28 오후 11:27, Asher Kamiraze wrote:
Hi all,

The demo compiles fine on linux. However, on Windows, VC2010, I have a compilation error (the same in many files):

2>C:/Program Files/CGAL-4.2/include\CGAL/Arrangement_on_surface_with_history_2.h(185): error C2248: 'CGAL::internal::Filtered_bbox_circular_arc_2_base<CK,Base_CK>::Self' : cannot access private typedef declared in class 'CGAL::internal::Filtered_bbox_circular_arc_2_base<CK,Base_CK>'
2>          with
2>          [
2>              CK=CGAL::Filtered_bbox_circular_kernel_2<CGAL::internal::CK1>,
2>              Base_CK=CGAL::internal::Circular_kernel_base_ref_count<CGAL::Filtered_bbox_circular_kernel_2<CGAL::internal::CK1>,CGAL::Cartesian_base_ref_count<NT,CGAL::Filtered_bbox_circular_kernel_2<CGAL::internal::CK1>>,CGAL::internal::Algebraic_k1>
2>          ]
2>          C:/Program Files/CGAL-4.2/include\CGAL/Circular_kernel_2/Circular_arc_2.h(734) : see declaration of 'CGAL::internal::Filtered_bbox_circular_arc_2_base<CK,Base_CK>::Self'
2>          with
2>          [
2>              CK=CGAL::Filtered_bbox_circular_kernel_2<CGAL::internal::CK1>,
2>              Base_CK=CGAL::internal::Circular_kernel_base_ref_count<CGAL::Filtered_bbox_circular_kernel_2<CGAL::internal::CK1>,CGAL::Cartesian_base_ref_count<NT,CGAL::Filtered_bbox_circular_kernel_2<CGAL::internal::CK1>>,CGAL::internal::Algebraic_k1>
2>          ]
2>          C:/Program Files/CGAL-4.2/include\CGAL/Arrangement_on_surface_with_history_2.h(538) : see reference to class template instantiation 'CGAL::Arrangement_on_surface_with_history_2<GeomTraits_,TopTraits_>::Curve_halfedges' being compiled
2>          with
2>          [
2>              GeomTraits_=Arc_traits,
2>              TopTraits_=CGAL::Arr_bounded_planar_topology_traits_2<Arc_traits,Arc_dcel>
2>          ]
2>          C:/Program Files/CGAL-4.2/include\CGAL/Arrangement_with_history_2.h(48) : see reference to class template instantiation 'CGAL::Arrangement_on_surface_with_history_2<GeomTraits_,TopTraits_>' being compiled
2>          with
2>          [
2>              GeomTraits_=Arc_traits,
2>              TopTraits_=CGAL::Arr_bounded_planar_topology_traits_2<Arc_traits,Arc_dcel>
2>          ]
2>          c:\users\asherk\work\dev\cgal_demo\arrangement_on_surface_2\ArrangementTypes.h(276) : see reference to class template instantiation 'CGAL::Arrangement_with_history_2<GeomTraits_,Dcel_>' being compiled
2>          with
2>          [
2>              GeomTraits_=Arc_traits,
2>              Dcel_=Arc_dcel
2>          ]
2>  EnvelopeCallback.cpp

I do not clearly see where does the problem come from. Do you have any idea, or already succeeded in compiling this demo on windows with vc2010?

Best regards,

Asher


2013/5/28 Asher Kamiraze <>
Many thanks Laurent, this is exactly what I was looking for!

Regards,

Asher


2013/5/27 Laurent Rineau (CGAL/GeometryFactory) <>

Le samedi 25 mai 2013 10:51:01 Asher Kamiraze a écrit :
> Hi all,
>
> I am wondering what is the best way to display a CGAL arrangement within
> the Qt grphics view framework. Reading CGAL doc, it seems that only exists
> triangulation and voronoi classes derived from QGraphicsItem.

There must be undocumented code in the Qt4 demo of CGAL arrangements, here:

  demo/Arrangement_on_surface_2

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
Release Manager of the CGAL Project       http://www.cgal.org/


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss








Archive powered by MHonArc 2.6.18.

Top of Page