v_sim.GlExtBox¶
- 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 box |
||
r/w |
rendering line stipple pattern of extension |
||
r/w |
color of the primary cell sides |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.GlExtBox(**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_BOX_ID).- 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.
- getExpandStipple()¶
- Returns:
the value of current box line pattern.
- Return type:
Read the line stipple pattern used for box (expanded part).
- getSideRGB()¶
- Returns:
all the colour values of the current box line.
- Return type:
Read the colour components of the sides of the box (in [0;1]).
- setBasis(orig, mat)¶
- Parameters:
- Returns:
Trueif value is actually changed.- Return type:
Define the box to draw with a simple matrix basis-set and an origin.
New in version 3.7.
- setBox(boxObj)¶
- Parameters:
boxObj (
v_sim.Box) – the box to get the definition of.- Returns:
- Return type:
Attach the
v_sim.Boxto draw the frame of.New in version 3.7.
- setExpandStipple(stipple)¶
- Parameters:
stipple (
int) – a pattern for line stipple in OpenGL.- Returns:
Trueif value is actually changed.- Return type:
Method used to change the value of the parameter box_line_stipple (expanded part).
- setSideRGB(rgba, mask)¶
- Parameters:
rgba ([
float]) – a four floats array with values (0 <= values <= 1) for the red, the green, the blue color and the alpha channel. Only values specified by the mask are really relevant.mask (
int) – usev_sim.COLOR_MASK_R,v_sim.COLOR_MASK_G,v_sim.COLOR_MASK_B,v_sim.COLOR_MASK_Aor a combinaison to indicate what values in the rgba array must be taken into account.
- Returns:
Trueif value is actually changed.- Return type:
Change the colour to represent the side of the super-cell. A channel alpha of zero, means that the box is rendered as wire-frame only. The sides are indeed drawn only if the box has expansion.
New in version 3.7.
Property Details¶
- v_sim.GlExtBox.props.basis¶
-
provides the basis-set to draw the box
- v_sim.GlExtBox.props.expand_stipple¶
-
rendering line stipple pattern of extension
- v_sim.GlExtBox.props.side_color¶
- Name:
side-color- Type:
- Default Value:
- Flags:
color of the primary cell sides