v_sim.ScalarFieldMethod¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priority  | 
r  | 
Class Details¶
- class v_sim.ScalarFieldMethod(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An opaque structure.
- classmethod getAll()¶
 - Returns:
 returns a list of V_Sim owned
v_sim.ScalarFieldMethodobjects.- Return type:
 
This routine gives access to all the registered load method for scamlar fields.
- classmethod new(descr, patterns, method, priority)¶
 - Parameters:
 descr (
str) – the name of the method ;method (
v_sim.ScalarFieldMethodLoadFunc) – av_sim.ScalarFieldMethodLoadFuncmethod ;priority (
int) – a priority value (the lower value, the higher priority).
- Returns:
 a newly create method to load scalar fields.
- Return type:
 
This routine is used to add a new method to load scalar field. The priority uses the scale of the GLib (
GLib.PRIORITY_DEFAULTis 0,GLib.PRIORITY_LOWis 300 for instance).
- load(filename, options, cancel, callback, *user_data)¶
 - Parameters:
 filename (
str) – a path ;options ({
object:object} orNone) – some key / value options.cancel (
Gio.CancellableorNone) – aGio.Cancellableobject.callback (
Gio.AsyncReadyCallbackorNone) – a method to call on load finished.
- Returns:
 a list of
v_sim.ScalarFieldon success.- Return type:
 
Call the load routine of the given scalar field file format self.
New in version 3.7.
- loadSync(filename, options, cancel)¶
 - Parameters:
 filename (
str) – a path ;options ({
object:object} orNone) – some key / value options.cancel (
Gio.CancellableorNone) – aGio.Cancellableobject.
- Raises:
 - Returns:
 a list of
v_sim.ScalarFieldon success.- Return type:
 
Same as
v_sim.ScalarFieldMethod.load(), but blocking variant.New in version 3.8.