Top | ![]() |
![]() |
![]() |
![]() |
VisuPointsetVisuPointset — Defines a common interface for objects with points inside a box that can be translated or expanded. |
gboolean | in-the-box | Read / Write |
ToolVector * | reduced-translation | Read / Write |
ToolVector * | translation | Read / Write |
gboolean | use-translation | Read / Write |
VisuPointset is implemented by VisuData, VisuDataAtomic, VisuDataSpin, VisuScalarField, VisuScalarFieldBinaryOp and VisuScalarFieldData.
gboolean visu_pointset_setInTheBox (VisuPointset *self
,gboolean status
);
Update all node positions inside self
to be constrained inside the
box (status
is TRUE), or release all previous position shift to
original position without constrain (status
is FALSE).
Since: 3.8
gboolean visu_pointset_setTranslationActive (VisuPointset *self
,gboolean status
);
Set the if the translations are applied or not to self
.
Since: 3.8
void
visu_pointset_applyTranslation (VisuPointset *self
);
Apply all the translation (node and box) on each node coordinates and reset both translations to zero.
Since: 3.8
void visu_pointset_getTranslation (VisuPointset *self
,float trans[3]
);
Retrieves the translations of self
.
self |
a VisuPointset object. |
|
trans |
a location to store the translation values. |
[array fixed-size=3][out] |
Since: 3.8
gboolean visu_pointset_setTranslation (VisuPointset *self
,float trans[3]
,gboolean withModulo
);
Apply the given translation values to self
. If withModulo
is
given, all points inside the pointset will be shifted inside the
periodic cell.
self |
a VisuPointset object. |
|
trans |
the translations. |
[array fixed-size=3] |
withModulo |
a boolean. |
Since: 3.8
gboolean visu_pointset_setTranslationPeriodic (VisuPointset *self
,float trans[3]
,gboolean withModulo
);
This sets the translations of the specified VisuPointset only in
periodic boundary conditions. Points are also constrainted inside
the box in the periodic directions if withModulo
is TRUE.
self |
a VisuPointset object ; |
|
trans |
an array of floating point values. |
[in][array fixed-size=3] |
withModulo |
a boolean. |
gboolean visu_pointset_setBoxTranslation (VisuPointset *self
,float boxTrans[3]
,gboolean withModulo
);
This sets the translations of the specified VisuPointset only along
periodic axis. The translation boxTrans
gives normalized values
along all box axis. Points are also constrainted inside
the box in the periodic directions if withModulo
is TRUE.
self |
a VisuPointset object ; |
|
boxTrans |
an array of floating point values. |
[in][array fixed-size=3] |
withModulo |
a boolean. |
Since: 3.8
gboolean
visu_pointset_getTranslationPeriodicStatus
(VisuPointset *self
);
Tests if any of the translation in the periodic boundary conditions are not null.
Since: 3.8
struct VisuPointsetInterface { VisuBoxedInterface parent; gboolean (*set_inTheBox) (VisuPointset *self, gboolean status); gboolean (*set_translationActive) (VisuPointset *self, gboolean status); void (*get_translation) (VisuPointset *self, float translation[3]); gboolean (*set_translation) (VisuPointset *self, float translation[3], gboolean withModulo); void (*apply_translation) (VisuPointset *set); };
The different routines common to objects implementing a VisuPointset interface.
VisuBoxedInterface |
yet, its parent. |
|
a routine to translate every content in the box. |
||
a routine to activate or not the translation. |
||
a routine to get the current translation status. |
||
a routine to set the translation status. |
||
a routine to apply the stored translations. |
Since: 3.8
“in-the-box”
property“in-the-box” gboolean
All nodes are constrained in the box.
Flags: Read / Write
Default value: FALSE
“reduced-translation”
property “reduced-translation” ToolVector *
Translations along box axis.
Flags: Read / Write
“translation”
property “translation” ToolVector *
Translations along all axis.
Flags: Read / Write
“use-translation”
property“use-translation” gboolean
Use translations along all axis.
Flags: Read / Write
Default value: FALSE