mirror of https://github.com/CGAL/cgal
doc draw arrangement; fix to doc face graph with path
This commit is contained in:
parent
3f3a21a949
commit
973fb082d5
|
|
@ -26,11 +26,11 @@ namespace CGAL {
|
||||||
/*! \ingroup PkgArrangementOnSurface2Draw
|
/*! \ingroup PkgArrangementOnSurface2Draw
|
||||||
*
|
*
|
||||||
* opens a new window and draws `arr`, an instance of the `CGAL::Arrangement_2`
|
* opens a new window and draws `arr`, an instance of the `CGAL::Arrangement_2`
|
||||||
* class template. A call to this function is blocking; that is, the program
|
* class template. Parameters of the drawing are taken from the optional graphics scene options parameter.
|
||||||
* continues only after the user closes the window. This function requires
|
|
||||||
* `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is
|
A call to this function blocks the execution of the program until the drawing window is closed. This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined.
|
||||||
* defined. Linking with the cmake target `CGAL::CGAL_Basic_viewer` will link
|
Linking with the cmake target `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.
|
||||||
* with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.
|
|
||||||
*
|
*
|
||||||
* \tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement
|
* \tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement
|
||||||
* traits concept. At this point it must be an instance of either
|
* traits concept. At this point it must be an instance of either
|
||||||
|
|
@ -44,9 +44,39 @@ namespace CGAL {
|
||||||
* \sa `ArrangementDcel`
|
* \sa `ArrangementDcel`
|
||||||
* \sa `ArrangementTraits_2`
|
* \sa `ArrangementTraits_2`
|
||||||
*/
|
*/
|
||||||
|
template <typename GeometryTraits_2, typename Dcel, typename GSOptions>
|
||||||
|
void draw(const Arrangement_2<GeometryTraits_2, Dcel>& arr, const GSOptions& gso);
|
||||||
|
|
||||||
|
/*! \ingroup PkgArrangementOnSurface2Draw
|
||||||
|
|
||||||
|
A shortcut to `CGAL::draw(arr, Graphics_scene_options{})`.
|
||||||
|
*/
|
||||||
template <typename GeometryTraits_2, typename Dcel>
|
template <typename GeometryTraits_2, typename Dcel>
|
||||||
void draw(const Arrangement_2<GeometryTraits_2, Dcel>& arr,
|
void draw(const Arrangement_2<GeometryTraits_2, Dcel>& arr);
|
||||||
const char* title = "2D Arrangement Basic Viewer");
|
|
||||||
|
/*! \ingroup PkgArrangementOnSurface2Draw
|
||||||
|
|
||||||
|
adds the vertices, edges and faces of `arr` into the given graphic scene `gs`. Parameters of the cells are taken from the optional graphics scene options parameter `gso`. Note that `gs` is not cleared before being filled (to enable to draw several data structures in the same basic viewer).
|
||||||
|
|
||||||
|
\tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement traits concept. At this point it must be an instance of either `CGAL::Arr_segment_traits_2` or `CGAL::Arr_conic_traits_2`.
|
||||||
|
\tparam Dcel the \dcel type, a model of the `ArrangementDcel` concept.
|
||||||
|
\tparam GSOptions a model of `GraphicsSceneOptions` concept.
|
||||||
|
|
||||||
|
\param arr the 2D arrangement to draw.
|
||||||
|
\param gs the graphic scene to fill.
|
||||||
|
\param gso the graphics scene options parameter.
|
||||||
|
*/
|
||||||
|
template <typename GeometryTraits_2, typename Dcel, typename GSOptions>
|
||||||
|
void add_to_graphics_scene(const Arrangement_2<GeometryTraits_2, Dcel>& arr,
|
||||||
|
CGAL::Graphics_scene& gs, const GSOptions& gso);
|
||||||
|
|
||||||
|
/*! \ingroup PkgArrangementOnSurface2Draw
|
||||||
|
|
||||||
|
A shortcut to `CGAL::add_to_graphics_scene(arr, gs, Graphics_scene_options{})`.
|
||||||
|
*/
|
||||||
|
template <typename GeometryTraits_2, typename Dcel>
|
||||||
|
void add_to_graphics_scene(const Arrangement_2<GeometryTraits_2, Dcel>& arr,
|
||||||
|
CGAL::Graphics_scene& gs);
|
||||||
|
|
||||||
} /* namespace CGAL */
|
} /* namespace CGAL */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ void draw(const Mesh& amesh,
|
||||||
/*!
|
/*!
|
||||||
\ingroup PkgDrawFaceGraphWithPaths
|
\ingroup PkgDrawFaceGraphWithPaths
|
||||||
|
|
||||||
A shortcut to `CGAL::draw(mesh, paths, Graphics_scene_options_face_graph_with_paths{})`.
|
A shortcut to `CGAL::draw(amesh, apaths, Graphics_scene_options_face_graph_with_paths{})`.
|
||||||
*/
|
*/
|
||||||
template<class Mesh>
|
template<class Mesh>
|
||||||
void draw(const Mesh& amesh,
|
void draw(const Mesh& amesh,
|
||||||
|
|
@ -62,20 +62,20 @@ adds the vertices, edges and faces of `amesh`, either a 2D linear cell complex o
|
||||||
\param apaths the paths to draw, which should lie on `amesh`.
|
\param apaths the paths to draw, which should lie on `amesh`.
|
||||||
*/
|
*/
|
||||||
template <class Mesh, class GSOptions>
|
template <class Mesh, class GSOptions>
|
||||||
void add_to_graphics_scene(const Mesh& mesh,
|
void add_to_graphics_scene(const Mesh& amesh,
|
||||||
CGAL::Graphics_scene& graphics_scene,
|
CGAL::Graphics_scene& gs,
|
||||||
const GSOptions& gso,
|
const GSOptions& gso,
|
||||||
const std::vector<Surface_mesh_topology::Path_on_surface<Mesh>>& paths);
|
const std::vector<Surface_mesh_topology::Path_on_surface<Mesh>>& apaths);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\ingroup PkgDrawFaceGraphWithPaths
|
\ingroup PkgDrawFaceGraphWithPaths
|
||||||
|
|
||||||
A shortcut to `CGAL::add_to_graphics_scene(mesh, graphics_scene, Graphics_scene_options_face_graph_with_paths{}, paths)`.
|
A shortcut to `CGAL::add_to_graphics_scene(amesh, gs, Graphics_scene_options_face_graph_with_paths{}, apaths)`.
|
||||||
*/
|
*/
|
||||||
template <class Mesh>
|
template <class Mesh>
|
||||||
void add_to_graphics_scene(const Mesh& mesh,
|
void add_to_graphics_scene(const Mesh& amesh,
|
||||||
CGAL::Graphics_scene& graphics_scene,
|
CGAL::Graphics_scene& gs,
|
||||||
const std::vector<Surface_mesh_topology::Path_on_surface<Mesh>>& paths);
|
const std::vector<Surface_mesh_topology::Path_on_surface<Mesh>>& apaths);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\ingroup PkgDrawFaceGraphWithPaths
|
\ingroup PkgDrawFaceGraphWithPaths
|
||||||
|
|
@ -83,8 +83,8 @@ void add_to_graphics_scene(const Mesh& mesh,
|
||||||
Same function than <a href="#XXXX"><b>add_to_graphics_scene()</b></a> but taking the paths from a list instead from an std::vector.
|
Same function than <a href="#XXXX"><b>add_to_graphics_scene()</b></a> but taking the paths from a list instead from an std::vector.
|
||||||
*/
|
*/
|
||||||
template <class Mesh, class GSOptions>
|
template <class Mesh, class GSOptions>
|
||||||
void add_to_graphics_scene(const Mesh& mesh,
|
void add_to_graphics_scene(const Mesh& amesh,
|
||||||
CGAL::Graphics_scene& graphics_scene,
|
CGAL::Graphics_scene& gs,
|
||||||
const GSOptions& gso,
|
const GSOptions& gso,
|
||||||
std::initializer_list<Path_on_surface<Mesh> > apaths);
|
std::initializer_list<Path_on_surface<Mesh> > apaths);
|
||||||
|
|
||||||
|
|
@ -94,8 +94,8 @@ void add_to_graphics_scene(const Mesh& mesh,
|
||||||
Same function than <a href="#XXXX"><b>add_to_graphics_scene()</b></a> but taking the paths from a list instead from an std::vector.
|
Same function than <a href="#XXXX"><b>add_to_graphics_scene()</b></a> but taking the paths from a list instead from an std::vector.
|
||||||
*/
|
*/
|
||||||
template <class Mesh>
|
template <class Mesh>
|
||||||
void add_to_graphics_scene(const Mesh& mesh,
|
void add_to_graphics_scene(const Mesh& amesh,
|
||||||
CGAL::Graphics_scene& graphics_scene,
|
CGAL::Graphics_scene& gs,
|
||||||
std::initializer_list<Path_on_surface<Mesh> > apaths);
|
std::initializer_list<Path_on_surface<Mesh> > apaths);
|
||||||
|
|
||||||
} /* namespace CGAL */
|
} /* namespace CGAL */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue