v_sim.Element¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
if element is colorizable |
||
r/w |
if element is maskable |
||
r/w |
if element is rendered |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
A new element is available. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
name |
r |
||
parent |
r |
||
physical |
r |
||
typeNumber |
r |
Class Details¶
- class v_sim.Element(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Structure to stores
v_sim.Elementobjects.- classmethod getAllElements()¶
- Returns:
the list of all known
v_sim.Element.- Return type:
This method returns a list of all the registered
v_sim.Element. The returned list is read-only.
- classmethod lookup(name)¶
- Parameters:
name (
str) – a string.- Returns:
the found
v_sim.ElementorNone.- Return type:
Lookup for element name in the base. Do not create it if not found. To do this, use
v_sim.Element.retrieveFromName().New in version 3.6.
- classmethod new(key)¶
- Parameters:
key (
str) – the name of the new element to create.- Returns:
the newly created
v_sim.Elementor 0 if something goes wrong in the process (if the name already exist for example).- Return type:
Allocate a new visuElement with the specified name. Remember that names must be unique since they identify the element.
- classmethod retrieveFromName(name)¶
- Parameters:
name (
str) – a string that identify thev_sim.Element(in UTF8) ;- Returns:
a
v_sim.Elementassociated to this name.- nw:
a location to store a boolean.
- Return type:
(
v_sim.Element, nw:bool)
Try to find a
v_sim.Elementalready associated to that name or create a new one if none has been found. If nw is notNoneit is set toFalseif name was found.
- atomic_getFromPool()¶
- Returns:
a
v_sim.ElementAtomicfor self.- Return type:
Retrieve a
v_sim.ElementAtomicrepresenting self. Thisv_sim.ElementAtomicis unique and its parent properties are bound to the uniquev_sim.ElementRendererfor self.New in version 3.8.
- getColorizable()¶
-
Retrieve whether
v_sim.Nodeof type self can be colorized by anyv_sim.DataColorizerobject.New in version 3.8.
- getMaskable()¶
-
Retrieve whether
v_sim.Nodeof type self can be hidden by planes or anyv_sim.NodeMaskerobject.New in version 3.8.
- getName()¶
- Returns:
a string owned by V_Sim.
- Return type:
This routines returns the name of the given self.
New in version 3.7.
- getPhysical()¶
-
This routine gets if self is physical or not. A not physical element can be used for instance to represent specific points…
New in version 3.7.
- getRendered()¶
-
Retrieve wether all
v_sim.Nodeof self are currently hidden or not.New in version 3.8.
- renderer_getFromPool()¶
- Returns:
a
v_sim.ElementRendererfor self.- Return type:
Retrieve a
v_sim.ElementRendererrepresenting self. Thisv_sim.ElementRendereris unique.New in version 3.8.
- setColorizable(val)¶
-
Changes if all
v_sim.Nodeof type self can be affected by av_sim.DataColorizerobject.New in version 3.8.
- setMaskable(val)¶
-
Changes if all
v_sim.Nodeof type self can be affected by av_sim.NodeMaskerobject.New in version 3.8.
- setRendered(val)¶
-
Changes if all
v_sim.Nodeof type self are hidden or not.New in version 3.8.
- spin_getFromPool()¶
- Returns:
a
v_sim.ElementSpinfor self.- Return type:
Retrieve a
v_sim.ElementSpinrepresenting self. Thisv_sim.ElementSpinis unique and its parent properties are bound to the uniquev_sim.ElementAtomicfor self.New in version 3.8.
Signal Details¶
- v_sim.Element.signals.ElementNew(element)¶
- Signal Name:
ElementNew- Flags:
- Parameters:
element (
v_sim.Element) – The object which received the signal
A new element is available.
New in version 3.6.
Property Details¶
- v_sim.Element.props.colorizable¶
-
if element is colorizable
- v_sim.Element.props.maskable¶
-
if element is maskable