BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/Boolean_set_operations_2/Gps_difference_functor.h
Go to the documentation of this file.
00001 // Copyright (c) 2005  Tel-Aviv University (Israel).
00002 // All rights reserved.
00003 //
00004 // This file is part of CGAL (www.cgal.org); you may redistribute it under
00005 // the terms of the Q Public License version 1.0.
00006 // See the file LICENSE.QPL distributed with CGAL.
00007 //
00008 // Licensees holding a valid commercial license may use this file in
00009 // accordance with the commercial license agreement provided with the software.
00010 //
00011 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 //
00014 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_difference_functor.h $
00015 // $Id: Gps_difference_functor.h 28831 2006-02-27 14:28:18Z baruchzu $
00016 // 
00017 //
00018 // Author(s)     : Baruch Zukerman <baruchzu@post.tau.ac.il>
00019 
00020 #ifndef CGAL_GPS_DIFFERENCE_FUNCTOR_H
00021 #define CGAL_GPS_DIFFERENCE_FUNCTOR_H
00022 
00023 #include <CGAL/Boolean_set_operations_2/Gps_base_functor.h>
00024 
00025 CGAL_BEGIN_NAMESPACE
00026 
00027 template <class Arrangement_>
00028 class Gps_difference_functor : public Gps_base_functor<Arrangement_>
00029 {
00030 public:
00031   typedef Arrangement_                                    Arrangement_2;
00032 
00033   typedef typename Arrangement_2::Face_const_handle       Face_const_handle;
00034   typedef typename Arrangement_2::Face_handle             Face_handle;
00035  
00036 
00037 
00038   void create_face (Face_const_handle f1,
00039                     Face_const_handle f2,
00040                     Face_handle res_f)
00041   {
00042      if(f1->contained() && !f2->contained())
00043      {
00044        res_f->set_contained(true);
00045      }
00046   }
00047 
00048 };
00049 
00050 
00051 CGAL_END_NAMESPACE
00052 
00053 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines