v_sim.PairWire¶
- Implementations:
 
Methods¶
class  | 
|
class  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
wire shade  | 
||
r/w  | 
wire stipple  | 
||
r/w  | 
wire width  | 
Signals¶
None
Fields¶
None
Class Details¶
- class v_sim.PairWire¶
 - Bases:
 - Structure:
 
Interface object.
New in version 3.8.
- classmethod getDefaultStipple()¶
 - Returns:
 the default stipple pattern.
- Return type:
 
Retrieves the default stipple pattern.
New in version 3.8.
- classmethod getDefaultWidth()¶
 - Returns:
 the default width.
- Return type:
 
Retrieves the default width.
New in version 3.8.
- getShade()¶
 - Returns:
 the
v_sim.Shadescheme if used, orNone.- Return type:
 
Colour of wires can depend on length, following a
v_sim.Shadescheme.New in version 3.6.
- getStipple()¶
 - Returns:
 a line pattern (default is 65535).
- Return type:
 
Get the line pattern of self.
- getWidth()¶
 - Returns:
 the width of the given pair.
- Return type:
 
Get the width of the given pair self. If the given pair has no specific width, the defaul value is returned.
- setShade(shade)¶
 - Parameters:
 shade (
v_sim.ShadeorNone) – av_sim.Shadeobject (can beNone).- Returns:
 Trueif shade is changed.- Return type:
 
If shade is not
None, make the colour of each pair varies with its length according to shade colour scheme.New in version 3.6.
- setStipple(stipple)¶
 - Parameters:
 stipple (
int) – a pattern.- Returns:
 Trueif the value is different from previous.- Return type:
 
Change the line pattern of self.
- setWidth(val)¶
 - Parameters:
 val (
int) – a positive integer.- Returns:
 Trueif the value is different from previous.- Return type:
 
This method allows to change the width of line for a specific pair. When a pair is rendered via with a line, it first checks if that pairs has a specific width value set by this method. If not, it uses the default value.
- do_get_shade() virtual¶
 - Return type:
 
a method to get the shading colourisation of a wire.
- do_set_shade(val) virtual¶
 - Parameters:
 val (
v_sim.Shade) –- Return type:
 
a method to set if the wire should be coloured according to its length.
- do_set_stipple(val) virtual¶
 - 
a method to change the stipple scheme of drawn wire
v_sim.PairLink. 
- do_set_width(val) virtual¶
 - 
a method to change the width of drawn wire
v_sim.PairLink. 
Property Details¶
- v_sim.PairWire.props.shade¶
 - Name:
 shade- Type:
 - Default Value:
 - Flags:
 
wire shade
- v_sim.PairWire.props.stipple¶
 - 
wire stipple