| Top |
| gfloat | cone-omega | Read / Write |
| gfloat | cone-phi | Read / Write |
| gfloat | cone-theta | Read / Write |
| guint | hiding-mode | Read / Write |
| guint | modulus-scaling | Read / Write |
| gboolean | use-atomic | Read / Write |
| struct | VisuMethodSpin |
| struct | VisuMethodSpinClass |
| enum | VisuMethodSpinDrawingPolicy |
| enum | VisuMethodSpinModulusPolicy |
Defines global properties for the rendering of spin data, like should atomic rendering be used in addition? How to orientate the colourisation cone?
VisuMethodSpin *
visu_method_spin_new (void);
Creates a VisuMethodSpin object.
Since: 3.8
VisuMethodSpin *
visu_method_spin_getDefault (void);
Access the default spin method object.
Since: 3.8
const gfloat * visu_method_spin_getSpinVector (const VisuMethodSpin *method,const VisuDataSpin *dataSpin,const VisuNode *node,gfloat *ratio,gfloat rgb[3],gboolean *withAtomic);
Retrieves the spin of node
in spherical coordinates. According to
rendering policy from method
, ratio
, rgb
and withAtomic
will be
set to their respective values. If no spin should be rendered for
node
, NULL is returned.
method |
a VisuMethodSpin object. |
|
dataSpin |
a VisuDataSpin object. |
|
node |
a VisuNode from |
|
ratio |
the ratio to apply when drawing the spin. |
[out] |
rgb |
a location to store the colour. |
[out] |
withAtomic |
a location to store if atomic rendering is required. |
[out] |
Since: 3.8
struct VisuMethodSpin;
Structure used to define VisuMethodSpin objects.
Since: 3.8
struct VisuMethodSpinClass {
VisuObjectClass parent;
};
A short way to identify _VisuMethodSpinClass structure.
Different policy to render the spin when the modulus is null. This policy is applied for all VisuElement.
“cone-omega” property“cone-omega” gfloat
The omega angle to orientate the colourisation cone.
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
“cone-phi” property“cone-phi” gfloat
The phi angle to orientate the colourisation cone.
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
“cone-theta” property“cone-theta” gfloat
The theta angle to orientate the colourisation cone.
Flags: Read / Write
Allowed values: [0,180]
Default value: 0
“hiding-mode” property“hiding-mode” guint
The hiding policy for spin with a null modulus.
Flags: Read / Write
Allowed values: <= 3
Default value: 0
“modulus-scaling” property“modulus-scaling” guint
The scaling policy based on modulus value.
Flags: Read / Write
Allowed values: <= 3
Default value: 0
“use-atomic” property“use-atomic” gboolean
If atomic rendering is used in addition to spin rendering.
Flags: Read / Write
Default value: FALSE