mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 05:24:02 +00:00
69 lines
2.4 KiB
Python
Executable File
69 lines
2.4 KiB
Python
Executable File
#! /usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
# ===========================================================================
|
|
# Copyright (c) 1995-2010 Barend Gehrels, Geodan, Amsterdam, the Netherlands.
|
|
# Copyright (c) 2008-2010 Bruno Lalande, Paris, France.
|
|
# Copyright (c) 2009-2010 Mateusz Loskot (mateusz@loskot.net), London, UK
|
|
#
|
|
# Use, modification and distribution is subject to the Boost Software License,
|
|
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)9
|
|
# ============================================================================
|
|
|
|
|
|
import os, sys
|
|
|
|
|
|
cmd="doxygen_xml2qbk doxy/doxygen_output/xml/%s.xml ../../../ boost/geometry/geometry.hpp boost/geometry/geometries/geometries.hpp boost/geometry/multi/multi.hpp > reference/%s.qbk"
|
|
|
|
def call_doxygen():
|
|
os.chdir("doxy");
|
|
os.system("doxygen")
|
|
os.chdir("..")
|
|
|
|
def group_to_quickbook(section):
|
|
os.system(cmd % ("group__" + section.replace("_", "__"), section))
|
|
|
|
def model_to_quickbook(classname, section):
|
|
os.system(cmd % ("classboost_1_1geometry_1_1model_1_1" + classname, section))
|
|
|
|
|
|
call_doxygen()
|
|
|
|
algorithms = ["append", "assign", "make", "clear"
|
|
, "area", "buffer", "centroid", "combine", "convert"
|
|
, "convex_hull", "difference", "disjoint", "dissolve", "distance"
|
|
, "envelope", "equals", "for_each", "intersection", "intersects"
|
|
, "length", "num_geometries", "num_interior_rings", "num_points"
|
|
, "overlaps", "perimeter", "reverse", "simplify", "sym_difference"
|
|
, "transform", "union", "unique", "within"]
|
|
access_functions = ["get", "set", "exterior_ring", "interior_rings"
|
|
, "num_points", "num_interior_rings", "num_geometries"]
|
|
|
|
for a in algorithms:
|
|
group_to_quickbook(a)
|
|
|
|
for a in access_functions:
|
|
group_to_quickbook(a)
|
|
|
|
group_to_quickbook("arithmetic")
|
|
group_to_quickbook("register")
|
|
|
|
model_to_quickbook("point", "point")
|
|
model_to_quickbook("d2_1_1point__xy", "point_xy")
|
|
model_to_quickbook("linestring", "linestring")
|
|
model_to_quickbook("box", "box")
|
|
model_to_quickbook("polygon", "polygon")
|
|
model_to_quickbook("segment", "segment")
|
|
model_to_quickbook("multi__linestring", "multi_linestring")
|
|
model_to_quickbook("multi__point", "multi_point")
|
|
model_to_quickbook("multi__polygon", "multi_polygon")
|
|
model_to_quickbook("linear__ring", "ring")
|
|
model_to_quickbook("referring__segment", "referring_segment")
|
|
|
|
|
|
|
|
#model_to_quickbook("structboost_1_1geometry_1_1closing__iterator", "closing_iterator")
|
|
|
|
os.system("bjam")
|