v_sim.GlExtNodeVectors¶
- Subclasses:
v_sim.GlExtForces,v_sim.GlExtGeodiff,v_sim.GlExtVibrations
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
normalisation factor |
||
r/w |
rendering size |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.GlExtNodeVectors(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
New in version 3.7.
- classmethod new(name)¶
- Parameters:
- Returns:
a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
Creates a new
v_sim.GlExtto draw a box.New in version 3.7.
- getNormalisation()¶
- Returns:
the normalisation factor used by vact.
- Return type:
Gets the normalisation factor, see
v_sim.GlExtNodeVectors.setNormalisation().New in version 3.7.
- setAddLength(addLength)¶
- Parameters:
addLength (
float) – a positive value.- Returns:
Trueif settings has been changed.- Return type:
Change the additional length that is used to draw the tail.
New in version 3.8.
- setArrow(tailLength, tailRadius, tailN, headLength, headRadius, headN)¶
- Parameters:
tailLength (
float) – the length for the tail part of the vector.tailRadius (
float) – the radius for the tail part of the vector.tailN (
int) – the number of polygons to draw the tail part of the vector.headLength (
float) – the length for the head part of the vector.headRadius (
float) – the radius for the head part of the vector.headN (
int) – the number of polygons to draw the head part of the vector.
- Returns:
Trueif setting has been changed.- Return type:
Defines the profile of the arrows representing the vectors.
New in version 3.7.
- setCentering(centering)¶
- Parameters:
centering (
v_sim.GlArrowCentering) – av_sim.GlArrowCenteringid.- Returns:
Trueif setting has been changed.- Return type:
Change how vectors are position with respect to to center of each node.
New in version 3.7.
- setColor(scheme)¶
- Parameters:
scheme (
v_sim.GlExtNodeVectorsColorScheme) – a value.- Returns:
Trueif setting has been changed.- Return type:
If scheme is
v_sim.GlExtNodeVectorsColorScheme.ELEMENT, the vectors are drawn with the color of the currently drawnv_sim.Element. If scheme isv_sim.GlExtNodeVectorsColorScheme.BRIGHT, they are drawn with a highlighted color. If scheme isv_sim.GlExtNodeVectorsColorScheme.ORIENTATION, they are drawn with a hue depending onn orientation.New in version 3.7.
- setLabelThreshold(val)¶
-
Vector norms can be drawn if a threshold value is reach. If val is strictly positive, the norm of each vector is compared to val. If val is negative, the normalised [0;1] norm is compared to -val.
New in version 3.7.
- setNodeRenderer(renderer)¶
- Parameters:
renderer (
v_sim.NodeArrayRenderer) – av_sim.NodeArrayRendererobject.- Returns:
Trueif changed.- Return type:
Use the
v_sim.ElementRendererproperties from renderer to display vector properties.New in version 3.8.
- setNormalisation(norm)¶
- Parameters:
norm (
float) – a floating point value.- Returns:
Trueif setting has been changed.- Return type:
norm governs how the input node vector field is normalised. With a positive value, all node vectors will be normalised by norm. With a negative value, all node vectors are normalised with respect to the biggest one.
New in version 3.7.
- setRenderedSize(scale)¶
- Parameters:
scale (
float) – a floating point value.- Returns:
Trueif setting has been changed.- Return type:
scale governs how large the node vectors are drawn. For a positive value, a vector with a normalised size of 1 (see
v_sim.GlExtNodeVectors.setNormalisation()) will be drawn with the size of scale. For a negative value, a vector of normalised size of 1 will be drawn with a size of -scale times the maximum element size (seev_sim.NodeArrayRenderer.getMaxElementSize()).New in version 3.7.
- setTranslation(trans)¶
- Parameters:
trans (
float) – a positive floating point value.- Returns:
Trueif setting has been changed.- Return type:
Defines a translation with respect to the center of each node. The vector is shifted outwards, following the vector direction by an amount given by the product of trans and the element size currently drawn.
New in version 3.7.
- setVectorThreshold(val)¶
-
Vectors are indeed drawn if a threshold value is reach. If val is strictly positive, the norm of each vector is compared to val. If val is negative, the normalised [0;1] norm is compared to -val.
New in version 3.7.
Property Details¶
- v_sim.GlExtNodeVectors.props.normalisation¶
-
normalisation factor