Top | ![]() |
![]() |
![]() |
![]() |
VisuPairCylinderVisuPairCylinder — An interface defining all the properties required to draw a VisuPair as a cylinder. |
enum | VisuPairCylinderColorId |
#define | VISU_PAIR_CYLINDER_RADIUS_MIN |
#define | VISU_PAIR_CYLINDER_RADIUS_MAX |
struct | VisuPairCylinderInterface |
VisuPairCylinder |
VisuPairCylinder interface introduces the "radius" property for the cylinder rendering. Cylinders can also be rendered with a solid color or with colors depending on the VisuElement their are linking.
gfloat visu_pair_cylinder_getDefaultRadius ();
Get the default value for cylinder radius.
VisuPairCylinderColorId visu_pair_cylinder_getDefaultColorType ();
Get the color scheme.
gboolean visu_pair_cylinder_setColorType (VisuPairCylinder *data
,VisuPairCylinderColorId val
);
It set the color scheme for cylinder pairs. It can be 0 or 1.
VisuPairCylinderColorId
visu_pair_cylinder_getColorType (VisuPairCylinder *data
);
Get the color type value for the specified pair.
gboolean visu_pair_cylinder_setRadius (VisuPairCylinder *data
,gfloat val
);
This method allows to change the radius value of a specific pair. When a pair is rendered via a cylinder, it first checks if that pairs has a specific radius value set by this method. If not, it uses the default value.
gfloat
visu_pair_cylinder_getRadius (VisuPairCylinder *data
);
Get the radius value for the specified pair.
Possible flags to colourise the cylinder pairs.
color is chosen by the user. |
||
color is chosen according to the color of the VisuElement the pair is linked to. |
||
number of choices for the colourisation. |
#define VISU_PAIR_CYLINDER_RADIUS_MIN 0.01f
Minimum value for the radius of cylinder pairs.
#define VISU_PAIR_CYLINDER_RADIUS_MAX 3.f
Maximum value for the radius of cylinder pairs.
struct VisuPairCylinderInterface { GTypeInterface parent; gfloat (*get_radius) (VisuPairCylinder *self); gboolean (*set_radius) (VisuPairCylinder *self, gfloat val); VisuPairCylinderColorId (*get_colorType) (VisuPairCylinder *self); gboolean (*set_colorType) (VisuPairCylinder *self, VisuPairCylinderColorId val); };
Interface for class that can represent VisuPairLink as cylinders.
GTypeInterface |
its parent. |
|
a method to get the radius. |
||
a method to change the radius of drawn cylinder VisuPairLink. |
||
a method to get the coloring scheme. |
||
a method to change the coloring scheme. |
Since: 3.8