v_sim.GlExtScale¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
id of the current arrow |
||
r/w |
label of the current arrow |
||
r/w |
length of the current arrow |
||
r/w |
orientation of the current arrow |
||
r/w |
orientation of the current arrow |
||
r/w |
orientation of the current arrow |
||
r/w |
origin of the current arrow |
||
r/w |
origin of the current arrow |
||
r/w |
origin of the current arrow |
||
r |
number of stored arrows |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.GlExtScale(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All fields are private, use the access routines.
New in version 3.3.
- classmethod new(name)¶
- Parameters:
name (
strorNone) – a name for thev_sim.GlExt.- Returns:
a newly created
v_sim.GlExtScaleobject.- Return type:
Create a new arrow set without any elements. Add arrows with
v_sim.GlExtScale.add().New in version 3.3.
- add(origin, orientation, length, legend)¶
- Parameters:
- Returns:
the id of the newly added arrow.
- Return type:
Create a new arrow pointing somewhere in the box with a label. If legend is
None, then the label will be the value of the length.New in version 3.7.
- getLegend(i)¶
- Parameters:
i (
int) – the ith arrow.- Returns:
a string (private, do not free it).
- Return type:
A
v_sim.GlExtScalecan have a legend. This is not actualy the string printed on screen but the one used to generate it.New in version 3.3.
- getLength(i)¶
- Parameters:
i (
int) – the ith arrow.- Returns:
a positive floating point value or a negative value if i is not in the arrow list.
- Return type:
A
v_sim.GlExtScaleis characterised by its length.New in version 3.3.
- getNArrows()¶
- Returns:
the number of stored arrows.
- Return type:
A
v_sim.GlExtScaleis characterised by a set of arrows.New in version 3.7.
- getOrientation(i)¶
- Parameters:
i (
int) – the ith arrow.- Returns:
three floating point values.
- Return type:
A
v_sim.GlExtScaleis characterised by its orientation in cartesian coordinates.New in version 3.3.
- getOrigin(i)¶
- Parameters:
i (
int) – the ith arrow.- Returns:
three floating point values.
- Return type:
A
v_sim.GlExtScaleis characterised by its origin in cartesian coordinates.New in version 3.3.
- remove(i)¶
- Parameters:
i (
int) – an index, as returned byv_sim.GlExtScale.add().- Returns:
Trueif the i index was actually used.- Return type:
Remove from the list of drawn scale, the one defined by index i.
New in version 3.9.
- setLegend(i, value)¶
- Parameters:
- Returns:
Trueif the legend was actually changed.- Return type:
Routine that changes the legend of the scale. If value is
Nonethen the length of the scale is printed.New in version 3.3.
- setLength(i, lg)¶
- Parameters:
- Returns:
Trueif the length was actually changed.- Return type:
Routine that changes the length of the scale. If i is zero and self has currently no arrow, a default one is created.
New in version 3.3.
- setOrientation(i, xyz, mask)¶
- Parameters:
i (
int) – the ith arrow ;xyz ([
float]) – a vector in cartesian coordinates ;mask (
int) – relevant values in xyz, seev_sim.XYZ_MASK_X…
- Returns:
Trueif the orientation was actually changed.- Return type:
Routine that changes the direction of the scale.
New in version 3.3.
- setOrigin(i, xyz, mask)¶
- Parameters:
i (
int) – the ith arrow ;xyz ([
float]) – a vector in cartesian coordinates ;mask (
int) – relevant values in xyz, seev_sim.XYZ_MASK_X…
- Returns:
Trueif the origin was actually changed.- Return type:
Routine that changes the origin of the scale.
New in version 3.3.
Property Details¶
- v_sim.GlExtScale.props.current¶
-
id of the current arrow
- v_sim.GlExtScale.props.current_label¶
-
label of the current arrow
- v_sim.GlExtScale.props.current_length¶
-
length of the current arrow
- v_sim.GlExtScale.props.current_orientation_x¶
-
orientation of the current arrow
- v_sim.GlExtScale.props.current_orientation_y¶
-
orientation of the current arrow
- v_sim.GlExtScale.props.current_orientation_z¶
-
orientation of the current arrow
- v_sim.GlExtScale.props.current_origin_x¶
-
origin of the current arrow
- v_sim.GlExtScale.props.current_origin_y¶
-
origin of the current arrow
- v_sim.GlExtScale.props.current_origin_z¶
-
origin of the current arrow