v_sim.GlExtAxes¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
provides the basis-set to draw the axes |
||
r/w |
display orientation information |
||
r/w |
omega defining top |
||
r/w |
phi defining top |
||
r/w |
theta defining top |
||
r/w |
portion of the screen for the axis |
||
r/w |
rendering view for the axes |
||
r/w |
label for the x axis |
||
r/w |
position along x axis |
||
r/w |
label for the y axis |
||
r/w |
position along y axis |
||
r/w |
label for the z axis |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.GlExtAxes(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
New in version 3.7.
- classmethod new(name)¶
- Parameters:
name (
strorNone) – the name to give to the extension (default isv_sim.GL_EXT_AXES_ID).- Returns:
a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
Creates a new
v_sim.GlExtto draw axes.New in version 3.7.
- getGlView()¶
- Returns:
a newly created
v_sim.GlViewas used by the self extension to display the axes.- x:
a location for a position
- y:
a location for a position
- Return type:
(
v_sim.GlView, x:int, y:int)
Creates a
v_sim.GlViewcorresponding to the one that is used to draw the axes. Axes are then position with respect to (x, y) in the main window.New in version 3.9.
- getLabel(dir)¶
- Parameters:
dir (
v_sim.XyzDir) – a direction.- Returns:
the label used for the direction.
- Return type:
Retrieve the label used for direction dir.
New in version 3.9.
- getLengthFactor()¶
- Returns:
the scaling factor.
- Return type:
Retrieve the scaling factor used to draw axis.
New in version 3.8.
- getPosition()¶
- Returns:
- xpos:
a location to store the x position.
- ypos:
a location to store the y position.
- Return type:
Inquire the position of the representation of tha axes.
New in version 3.7.
- setBasis(matrix)¶
- Parameters:
matrix (
float) – the definition of the three basis axis.- Returns:
Trueif the basis is actually changed.- Return type:
The self can represent an arbitrary basis-set, provided by matrix. matrix[{0,1,2}] represents the {x,y,z} axis vector in a cartesian basis-set. See
v_sim.GlExtAxes.setBasisFromBox() if the basis-set should follow the one of a givenv_sim.Box.New in version 3.7.
- setBasisFromBox(box)¶
- Parameters:
box (
v_sim.BoxorNone) – thev_sim.Boxto use as basis-set.- Returns:
Trueif the basis is actually changed.- Return type:
The self can follow the basis-set defined by box. If
Noneis passed, then the orthorombic default basis-set is used.New in version 3.7.
- setLabel(lbl, dir)¶
- Parameters:
lbl (
str) – a string.dir (
v_sim.XyzDir) – an axis direction.
- Returns:
Trueif the label is modified.- Return type:
Set the label lbl for the given axis dir.
New in version 3.8.
- setLengthFactor(factor)¶
- Parameters:
factor (
float) – a floating point value between 0. and 10.- Returns:
Trueif value is indeed changed.- Return type:
Change the scaling factor to draw the axis.
New in version 3.8.
- setOrientationTop(top, dir)¶
- Parameters:
- Returns:
Trueif value is actually changed.- Return type:
Define the camera orientation of the top orientation when self are used to display orientation information.
New in version 3.8.
Property Details¶
- v_sim.GlExtAxes.props.basis¶
-
provides the basis-set to draw the axes
- v_sim.GlExtAxes.props.display_orientation¶
-
display orientation information
- v_sim.GlExtAxes.props.orientation_omega¶
-
omega defining top
- v_sim.GlExtAxes.props.orientation_phi¶
-
phi defining top
- v_sim.GlExtAxes.props.orientation_theta¶
-
theta defining top
- v_sim.GlExtAxes.props.size¶
-
portion of the screen for the axis
- v_sim.GlExtAxes.props.view¶
- Name:
view- Type:
- Default Value:
- Flags:
rendering view for the axes
- v_sim.GlExtAxes.props.x_label¶
-
label for the x axis
- v_sim.GlExtAxes.props.x_pos¶
-
position along x axis
- v_sim.GlExtAxes.props.y_label¶
-
label for the y axis
- v_sim.GlExtAxes.props.y_pos¶
-
position along y axis