The graphical classes provided in Codac are based on the VIBes viewer: a visualization system that aims at providing people working with intervals a way to display results (boxes, pavings), without worrying about GUI programming. Some methods have been implemented in Codac in order to extend VIBes’ features to tubes purposes.
For the installation of VIBes, please refer to the installation page of this library: Graphical tools.
VIBes is an independent program that has to be launched together with the executable of your project.
The first thing to do is launch VIBes. This will make appear the VIBes window, ready to display things (keep it open!):
To start and end the communications with the server, one should include:
The VIBes API is available for both C++ and Python:
Codac provides custom classes to extend VIBes’ features to appropriate drawings of tubes:
VIBesFig: parent class
VIBesFigTube: view for 1d tubes and/or trajectories
VIBesFigTubeVector: view for n-d tubes and/or trajectories
VIBesFigMap: 2d view of projected tubes and trajectories
VIBesFigPaving: 2d view of projected pavings
The interface of this class comes from the features of VIBes. However, the original VIBes API cannot be directly used on the
Instead, one should use the following features:
creates a figure with:
name: Figure name
position of upper-left corner: \((100,100)\)
view area sets to: \([0,10]\times[0,5]\)
The above commands produce:
The color code use in VIBes is
fill_color may refer to predefined colors or to custom shades.
The default values are black edges and no filling.
Predefined colors are:
For custom colors, the HTML color code can be used. In the following example, the two last digits (
77) add a alpha component to the colors for transparency. These last values may be chosen between
00 (transparency) and