Top | ![]() |
![]() |
![]() |
![]() |
VisuElementAtomicVisuElementAtomic — a class implementing rendering for VisuRenderingAtomic method. |
gfloat | elipsoid-angle-phi | Read / Write |
gfloat | elipsoid-angle-theta | Read / Write |
gfloat | elipsoid-ratio | Read / Write |
gfloat | radius | Read / Write |
guint | shape | Read / Write |
guint | units | Read / Write |
GObject ╰── ToolDbgObj ╰── VisuElementRenderer ╰── VisuElementAtomic ╰── VisuElementSpin
This class implements the virtual method of VisuElementRenderer class to display nodes as 0D objects at a given point. The specific shape is defined by VisuElementAtomicShapeId enumeration. The size of the 0D object is given by the "radius" property which is a length with a given "units" property.
visu_element_atomic_getFromPool()
is a specific function to
associate a unique VisuElementAtomic to a given VisuElement.
VisuElementAtomic *
visu_element_atomic_new (VisuElement *element
);
Creates a new VisuElementAtomic object used to render element
.
Since: 3.8
VisuElementAtomic *
visu_element_atomic_getFromPool (VisuElement *element
);
Retrieve a VisuElementAtomic representing element
. This
VisuElementAtomic is unique and its parent properties are bound to
the unique VisuElementRenderer for element
.
Since: 3.8
void
visu_element_atomic_bindToPool (VisuElementAtomic *atomic
);
Bind all properties of atomic
to the VisuElementAtomic object
corresponding to the same VisuElement from the pool. The binding
is bidirectional. This method is usefull to create a pool of
objects inheriting from VisuElementAtomic.
Since: 3.8
gfloat
visu_element_atomic_getRadius (const VisuElementAtomic *self
);
Retrieve the radius used to draw self
. The unit of the value is
given by visu_element_atomic_getUnits()
.
Since: 3.8
gboolean visu_element_atomic_setRadius (VisuElementAtomic *self
,gfloat val
);
Change the radius (or long axe) of the representation of self
.
Since: 3.8
ToolUnits
visu_element_atomic_getUnits (const VisuElementAtomic *self
);
The units in which the radius value is given.
Since: 3.8
gboolean visu_element_atomic_setUnits (VisuElementAtomic *self
,ToolUnits val
);
Change the unit in wich the radius is given, see
visu_element_atomic_setRadius()
.
Since: 3.8
VisuElementAtomicShapeId
visu_element_atomic_getShape (const VisuElementAtomic *self
);
Retrieve the VisuElementAtomicShapeId that self
is using for representation.
Since: 3.8
gboolean visu_element_atomic_setShape (VisuElementAtomic *self
,VisuElementAtomicShapeId val
);
Change the representation shape of self
.
Since: 3.8
gfloat
visu_element_atomic_getElipsoidRatio (const VisuElementAtomic *self
);
When self
is used to draw constant elipsoid or torus, this value
is used to adjust the ratio between the two angles.
Since: 3.8
gboolean visu_element_atomic_setElipsoidRatio (VisuElementAtomic *self
,gfloat val
);
Change the ratio between the long axe and the short axe of the representation for shapes that are not isotropic.
Since: 3.8
gfloat
visu_element_atomic_getElipsoidPhi (const VisuElementAtomic *self
);
Retrieve the phi angle used to draw elipsoid shape with this renderer.
Since: 3.8
gboolean visu_element_atomic_setElipsoidPhi (VisuElementAtomic *self
,gfloat val
);
Change the phi angle of the representation for shapes that are not isotropic.
Since: 3.8
gfloat
visu_element_atomic_getElipsoidTheta (const VisuElementAtomic *self
);
Retrieve the theta angle used to draw elipsoid shape with this renderer.
Since: 3.8
gboolean visu_element_atomic_setElipsoidTheta (VisuElementAtomic *self
,gfloat val
);
Change the theta angle of the representation for shapes that are not isotropic.
Since: 3.8
const gchar **
visu_element_atomic_getShapeNames (gboolean asLabel
);
Get the string defining VisuElementAtomicShapeId. If asLabel
is
TRUE
, then the string are translated and stored in UTF8.
Since: 3.8
void
visu_element_atomic_pool_finalize (void
);
Destroy the internal list of known VisuElementAtomic objects, see
visu_element_atomic_getFromPool()
.
[skip]
Since: 3.8
“elipsoid-angle-phi”
property“elipsoid-angle-phi” gfloat
Elipsoid angle phi.
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
“elipsoid-angle-theta”
property“elipsoid-angle-theta” gfloat
Elipsoid angle theta.
Flags: Read / Write
Allowed values: [0,180]
Default value: 90
“elipsoid-ratio”
property“elipsoid-ratio” gfloat
Elipsoid ratio.
Flags: Read / Write
Allowed values: >= 0
Default value: 1
“radius”
property“radius” gfloat
atomic radius.
Flags: Read / Write
Allowed values: >= 0.001
Default value: 1
“shape”
property“shape” guint
atomic shape.
Flags: Read / Write
Allowed values: <= 8
Default value: 0
“units”
property“units” guint
radius units.
Flags: Read / Write
Allowed values: <= 3
Default value: 0