⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 traits_base_2.h

📁 很多二维 三维几何计算算法 C++ 类库
💻 H
字号:
// Copyright (c) 2003,2004,2005,2006  INRIA Sophia-Antipolis (France) and// Notre Dame University (U.S.A.).  All rights reserved.//// This file is part of CGAL (www.cgal.org); you may redistribute it under// the terms of the Q Public License version 1.0.// See the file LICENSE.QPL distributed with CGAL.//// Licensees holding a valid commercial license may use this file in// accordance with the commercial license agreement provided with the software.//// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.//// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Traits_base_2.h $// $Id: Traits_base_2.h 35201 2006-11-16 12:42:59Z hemmer $// //// Author(s)     : Menelaos Karavelas <mkaravel@cse.nd.edu>#ifndef CGAL_SEGMENT_DELAUNAY_GRAPH_2_TRAITS_BASE_2_H#define CGAL_SEGMENT_DELAUNAY_GRAPH_2_TRAITS_BASE_2_H#include <CGAL/Segment_Delaunay_graph_2/basic.h>#ifndef CGAL_REP_CLASS_DEFINED#error  no representation class defined#endif  // CGAL_REP_CLASS_DEFINED#if defined CGAL_CARTESIAN_H || defined CGAL_SIMPLE_CARTESIAN_H#include <CGAL/Segment_Delaunay_graph_2/Predicates_C2.h>#include <CGAL/Segment_Delaunay_graph_2/Constructions_C2.h>#endif#include <CGAL/Segment_Delaunay_graph_2/Kernel_wrapper_2.h>CGAL_BEGIN_NAMESPACE//-----------------------------------------------------------------------//-----------------------------------------------------------------------//-----------------------------------------------------------------------//-----------------------------------------------------------------------// the Traits class//-----------------------------------------------------------------------//-----------------------------------------------------------------------//-----------------------------------------------------------------------//-----------------------------------------------------------------------template<class R, class MTag, class ITag>class Segment_Delaunay_graph_traits_base_2{public:  //-----------------------------------------------------------------------  //                  TYPE DEFINITIONS  //-----------------------------------------------------------------------  // BASIC TYPES  //------------    typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Kernel_wrapper_2<R,ITag>  Kernel;  typedef Kernel                                              K;  typedef R                                                   Rep;  typedef MTag                                                Method_tag;  // the following tag controls how support intersections in the  // traits. If it is Tag_true then we fully support intersections.  // If it is Tag_true it is assumed that no intersections appear in  // the data and so there is limited support for intersections.  typedef ITag                                    Intersections_tag;  typedef typename Kernel::Point_2                Point_2;  typedef typename Kernel::Line_2                 Line_2;  typedef typename Kernel::Segment_2              Segment_2;  typedef typename Kernel::Ray_2                  Ray_2;  //  typedef typename Kernel::Circle_2               Circle_2;  typedef typename Kernel::Site_2                 Site_2;  typedef typename Kernel::Object_2               Object_2;  typedef typename Kernel::FT                     FT;  typedef typename Kernel::RT                     RT;protected:  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Internal::Arrangement_enum  Arrangement_enum;public:  // OBJECT CONSTRUCTION & ASSIGNMENT  //-------------------------------  typedef typename Kernel::Construct_object_2     Construct_object_2;  typedef typename Kernel::Assign_2               Assign_2;  // CONSTRUCTIONS  //--------------  // vertex and Voronoi circle  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Construct_svd_vertex_2<K,MTag>  Construct_svd_vertex_2;  /*  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Construct_svd_circle_2<K,MTag>  Construct_svd_circle_2;  */  // PREDICATES  //-----------  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Compare_x_2<K>  Compare_x_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Compare_y_2<K>  Compare_y_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Orientation_C2<K>  Orientation_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Are_same_points_C2<K>  Equal_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Are_parallel_C2<K>  Are_parallel_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Oriented_side_of_bisector_C2<K,MTag>  Oriented_side_of_bisector_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Vertex_conflict_C2<K,MTag>  Vertex_conflict_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Finite_edge_interior_conflict_C2<K,MTag>  Finite_edge_interior_conflict_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Infinite_edge_interior_conflict_C2<K,MTag>  Infinite_edge_interior_conflict_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Is_degenerate_edge_C2<K,MTag>  Is_degenerate_edge_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Arrangement_type_C2<K>  Arrangement_type_2;  typedef  CGAL_SEGMENT_DELAUNAY_GRAPH_2_NS::Oriented_side_C2<K,MTag>  Oriented_side_2;public:  //-----------------------------------------------------------------------  //                  ACCESS TO OBJECTS  //-----------------------------------------------------------------------  // OBJECT CONSTRUCTION & ASSIGNMENT  //---------------------------------  Assign_2  assign_2_object() const {    return Assign_2();  }  Construct_object_2  construct_object_2_object() const {     return Construct_object_2();  }  // CONSTRUCTIONS  //--------------  Construct_svd_vertex_2  construct_svd_vertex_2_object() const {     return Construct_svd_vertex_2();  }  /*  Construct_svd_circle_2  construct_svd_circle_2_object() const {    return Construct_svd_circle_2();  }  */  // PREDICATES  //-----------  Compare_x_2  compare_x_2_object() const {    return Compare_x_2();  }  Compare_y_2  compare_y_2_object() const {    return Compare_y_2();  }  Orientation_2  orientation_2_object() const {    return Orientation_2();  }  Equal_2  equal_2_object() const {    return Equal_2();  }  Are_parallel_2  are_parallel_2_object() const {    return Are_parallel_2();  }  Oriented_side_of_bisector_2  oriented_side_of_bisector_2_object() const {    return Oriented_side_of_bisector_2();  }  Vertex_conflict_2  vertex_conflict_2_object() const {    return Vertex_conflict_2();  }  Finite_edge_interior_conflict_2  finite_edge_interior_conflict_2_object() const {    return Finite_edge_interior_conflict_2();  }  Infinite_edge_interior_conflict_2  infinite_edge_interior_conflict_2_object() const {    return Infinite_edge_interior_conflict_2();  }  Is_degenerate_edge_2  is_degenerate_edge_2_object() const {    return Is_degenerate_edge_2();  }  Arrangement_type_2  arrangement_type_2_object() const {    return Arrangement_type_2();  }  Oriented_side_2  oriented_side_2_object() const {    return Oriented_side_2();  }};CGAL_END_NAMESPACE#endif // CGAL_SEGMENT_DELAUNAY_GRAPH_2_TRAITS_BASE_2_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -