-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'godardma-codac2_dev' into codac2_dev
- Loading branch information
Showing
38 changed files
with
1,609 additions
and
805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
div.rst-content a:visited | ||
{ | ||
color: #2980b9; | ||
text-decoration: none; | ||
} | ||
|
||
div.rst-content li.toctree-l1 > a | ||
{ | ||
font-weight: bold; | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = 'Codac' | ||
copyright = 'Codac Team' | ||
author = 'Codac Team' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [ | ||
'sphinx_rtd_theme', | ||
] | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = [] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_static_path = ['_static'] | ||
html_theme = "sphinx_rtd_theme" | ||
html_logo = "_static/logos/logo_codac.svg" | ||
|
||
# These paths are either relative to html_static_path | ||
# or fully qualified paths (eg. https://...) | ||
html_css_files = [ | ||
'css/custom.css', | ||
] | ||
|
||
html_theme_options = { | ||
'logo_only': True, | ||
'display_version': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Codac manual | ||
============ | ||
|
||
|
||
.. toctree:: | ||
:caption: Overview of Codac | ||
:maxdepth: 3 | ||
|
||
Constraint programming and IA <http://codac.io> | ||
The Codac framework <http://codac.io> | ||
Target audience <http://codac.io> | ||
|
||
|
||
.. toctree:: | ||
:caption: User manual | ||
:maxdepth: 3 | ||
|
||
installation/index.rst | ||
intervals/index.rst | ||
linear/index.rst | ||
functions/index.rst | ||
tubes/index.rst | ||
contractors/index.rst | ||
separators/index.rst | ||
pavers/index.rst | ||
cn/index.rst | ||
geometry/index.rst | ||
ellipsoids/index.rst | ||
topology/index.rst | ||
visualization/index.rst | ||
extensions/index.rst | ||
seealso/index.rst | ||
references/index.rst | ||
|
||
|
||
.. toctree:: | ||
:caption: How-to guides | ||
:maxdepth: 3 | ||
|
||
howto/robotics/index.rst | ||
howto/geometry/index.rst | ||
howto/dynamical/index.rst | ||
|
||
|
||
.. toctree:: | ||
:caption: Development | ||
:maxdepth: 3 | ||
|
||
Changelog <http://codac.io> | ||
C++ API <http://codac.io> | ||
Information for developers <http://codac.io> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* Codac binding (core) | ||
* ---------------------------------------------------------------------------- | ||
* \date 2024 | ||
* \author Simon Rohou, Maël Godard | ||
* \copyright Copyright 2024 Codac Team | ||
* \license GNU Lesser General Public License (LGPL) | ||
*/ | ||
|
||
#include <pybind11/pybind11.h> | ||
#include <pybind11/operators.h> | ||
#include <pybind11/stl.h> | ||
#include <codac2_ColorMap.h> | ||
#include "codac2_py_ColorMap_docs.h" // Generated file from Doxygen XML (doxygen2docstring.py): | ||
|
||
using namespace std; | ||
using namespace codac2; | ||
namespace py = pybind11; | ||
using namespace pybind11::literals; | ||
|
||
void export_ColorMap(py::module& m) | ||
{ | ||
py::class_<ColorMap> exported_colormap(m, "ColorMap", COLORMAP_MAIN); | ||
exported_colormap | ||
|
||
.def(py::init<Model>(), | ||
COLORMAP_COLORMAP_MODEL, | ||
"m"_a=Model::RGB) | ||
|
||
.def("model", &ColorMap::model, | ||
CONST_MODEL_REF_COLORMAP_MODEL_CONST) | ||
|
||
.def("color", &ColorMap::color, | ||
COLOR_COLORMAP_COLOR_FLOAT_CONST, | ||
"r"_a) | ||
|
||
// Predifined color maps | ||
|
||
.def_static("haxby", &ColorMap::haxby, | ||
STATIC_COLORMAP_COLORMAP_HAXBY) | ||
|
||
.def_static("basic", &ColorMap::basic, | ||
STATIC_COLORMAP_COLORMAP_BASIC) | ||
|
||
.def_static("blue_tube", &ColorMap::blue_tube, | ||
STATIC_COLORMAP_COLORMAP_BLUE_TUBE) | ||
|
||
.def_static("red_tube", &ColorMap::red_tube, | ||
STATIC_COLORMAP_COLORMAP_RED_TUBE) | ||
|
||
.def_static("rainbow", &ColorMap::rainbow, | ||
STATIC_COLORMAP_COLORMAP_RAINBOW) | ||
|
||
; | ||
} |
Oops, something went wrong.