v_sim.GlExtNodes¶
- Subclasses:
None
Methods¶
- Inherited:
v_sim.GlExt (60), GObject.Object (37), v_sim.NodeArrayRenderer (8)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
v_sim.GlExt (6), GObject.Object (7), v_sim.NodeArrayRenderer (6)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.GlExtNodes(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
New in version 3.7.
- classmethod new()¶
- Returns:
a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
Creates a new
v_sim.GlExtto draw a set of nodes. It can be used also for picking, seev_sim.GlExtNodes.getSelection().New in version 3.7.
- getSelection(x, y)¶
- Parameters:
- Returns:
-1 if no node found, or its id.
- Return type:
Get the id of a
v_sim.Nodeon top of the z-buffer.New in version 3.7.
- getSelectionByRegion(x1, y1, x2, y2)¶
- Parameters:
- Returns:
an empty list if no node found, or a newly created list of ids if any.
- Return type:
[
int]
Get the
v_sim.Nodeids in the picked region defined by (x1, y1) - (x2, y2).New in version 3.7.
- renderAsBalls(factor)¶
- Parameters:
factor (
float) – a positive factor.
Setup all atomic rendering to use spheres. The radius of the spheres are taken as the covalent radius, times factor. All elements are made visible and their color is set to the default color for this element in the periodic table.
New in version 3.9.
- setMaterialEffect(effect)¶
- Parameters:
effect (
v_sim.ElementRendererEffects) – av_sim.ElementRendererEffectsid.- Returns:
Trueif the effect has been changed.- Return type:
Changes the effect applied on the color used to render
v_sim.Element.New in version 3.7.