eVision Python API
Loading...
Searching...
No Matches
eVision.EPen Class Reference

Pen. More...

Public Member Functions

None __init__ (self)
 Constructs an eVision.EPen.
None __init__ (self, eVision.ERGBColor color, int width, eVision.EPenStyle style)
 Constructs an eVision.EPen.
None __init__ (self, eVision.ERGBColor color)
 Constructs an eVision.EPen.
None __init__ (self, eVision.ERGBColor color, float opacity, int width, eVision.EPenStyle style)
 Constructs an eVision.EPen.
None __init__ (self, eVision.ERGBColor color, float opacity, int width)
 Constructs an eVision.EPen.
None __init__ (self, eVision.ERGBColor color, float opacity)
 Constructs an eVision.EPen.
None __init__ (self, eVision.EBrush brush, int width, eVision.EPenStyle style)
 Constructs an eVision.EPen.
None __init__ (self, eVision.EBrush brush, int width)
 Constructs an eVision.EPen.
None __init__ (self, eVision.EBrush brush)
 Constructs an eVision.EPen.
None __init__ (self, eVision.EPen other)
bool IsValid (self)
 Whether the pen is valid, i.e.
None Serialize (self, eVision.ESerializer|None serializer)
 Serializes the eVision.EPen.
None Load (self, str path)
 Loads the eVision.EPen.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.EPen.
None Save (self, str path)
 Saves the eVision.EPen.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.EPen.

Properties

 Brush = property(_Brush__getter, _Brush__setter)
 Brush used to draw the content of the pen.
 Width = property(_Width__getter, _Width__setter)
 Width of the pen.
 Style = property(_Style__getter, _Style__setter)
 Style of the pen.

Detailed Description

Pen.

Remarks:

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/10]

None eVision.EPen.__init__ ( self)

Constructs an eVision.EPen.

◆ __init__() [2/10]

None eVision.EPen.__init__ ( self,
eVision.ERGBColor color,
int width,
eVision.EPenStyle style )

Constructs an eVision.EPen.

Parameters
colorColor of the pen.
widthWidth of the pen.
styleStyle of the pen.

◆ __init__() [3/10]

None eVision.EPen.__init__ ( self,
eVision.ERGBColor color )

Constructs an eVision.EPen.

Parameters
colorColor of the pen.

◆ __init__() [4/10]

None eVision.EPen.__init__ ( self,
eVision.ERGBColor color,
float opacity,
int width,
eVision.EPenStyle style )

Constructs an eVision.EPen.

Parameters
colorColor of the pen.
opacityopacity of the pen.
widthWidth of the pen.
styleStyle of the pen.

◆ __init__() [5/10]

None eVision.EPen.__init__ ( self,
eVision.ERGBColor color,
float opacity,
int width )

Constructs an eVision.EPen.

Parameters
colorColor of the pen.
opacityopacity of the pen.
widthWidth of the pen.

◆ __init__() [6/10]

None eVision.EPen.__init__ ( self,
eVision.ERGBColor color,
float opacity )

Constructs an eVision.EPen.

Parameters
colorColor of the pen.
opacityopacity of the pen.

◆ __init__() [7/10]

None eVision.EPen.__init__ ( self,
eVision.EBrush brush,
int width,
eVision.EPenStyle style )

Constructs an eVision.EPen.

Parameters
brushBrush of the pen.
widthWidth of the pen.
styleStyle of the pen.

◆ __init__() [8/10]

None eVision.EPen.__init__ ( self,
eVision.EBrush brush,
int width )

Constructs an eVision.EPen.

Parameters
brushBrush of the pen.
widthWidth of the pen.

◆ __init__() [9/10]

None eVision.EPen.__init__ ( self,
eVision.EBrush brush )

Constructs an eVision.EPen.

Parameters
brushBrush of the pen.

◆ __init__() [10/10]

None eVision.EPen.__init__ ( self,
eVision.EPen other )
Parameters
otherOther instance

Member Function Documentation

◆ IsValid()

bool eVision.EPen.IsValid ( self)

Whether the pen is valid, i.e.

when its brush is valid and its width is bigger than 0.

◆ Load() [1/2]

None eVision.EPen.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.EPen.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.EPen.Load ( self,
str path )

Loads the eVision.EPen.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Save() [1/2]

None eVision.EPen.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.EPen.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

None eVision.EPen.Save ( self,
str path )

Saves the eVision.EPen.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Serialize()

None eVision.EPen.Serialize ( self,
eVision.ESerializer | None serializer )

Serializes the eVision.EPen.

Deprecated

Use eVision.EPen.Save or eVision.EPen.Load instead.

Deprecated in version 24.10. Scheduled to be removed in version 27.6.

Parameters
serializerSerializer

Property Documentation

◆ Brush

eVision.EPen.Brush = property(_Brush__getter, _Brush__setter)
static

Brush used to draw the content of the pen.

◆ Style

eVision.EPen.Style = property(_Style__getter, _Style__setter)
static

Style of the pen.

◆ Width

eVision.EPen.Width = property(_Width__getter, _Width__setter)
static

Width of the pen.