v_sim.SurfaceResource¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
rendering color |
||
r/w/co |
label of the resource |
||
r/w |
masked or not |
||
r/w |
rendering material |
||
r/w |
rendered or not |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.SurfaceResource(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This structure defines some drawing properties of a set of
v_sim.Surface.- classmethod new_fromCopy(surf_name, orig)¶
- Parameters:
surf_name (
str) – a label.orig (
v_sim.SurfaceResource) – av_sim.SurfaceResourceobejct.
- Returns:
a newly created
v_sim.SurfaceResourceobject.- Return type:
Copy constructor of
v_sim.SurfaceResourceobjects.New in version 3.8.
- classmethod new_fromName(surf_name, new_surf)¶
- Parameters:
- Returns:
the resource (created or retrieved).
- Return type:
This returns the resource information matching the given surf_name. If the resource doesn’t exist, it is created and new is set to
True. If the given name (surf_name) isNone, then a new resource is created, but it is not stored and will not be shared by surfaces.
- getColor()¶
- Returns:
a color.
- Return type:
Retrieves the color of self.
New in version 3.8.
- getMaskable()¶
- Returns:
a boolean.
- Return type:
Retrieves if self is sensitive to masking properties.
New in version 3.8.
- getMaterial()¶
- Returns:
a material.
- Return type:
Retrieves the material of self.
New in version 3.8.
Property Details¶
- v_sim.SurfaceResource.props.color¶
- Name:
color- Type:
- Default Value:
- Flags:
rendering color
- v_sim.SurfaceResource.props.label¶
- Name:
label- Type:
- Default Value:
- Flags:
label of the resource
- v_sim.SurfaceResource.props.maskable¶
-
masked or not
- v_sim.SurfaceResource.props.material¶
-
rendering material