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.
eVision.EBrush Brush (self)
 Brush used to draw the content of the pen.
 Brush (self, eVision.EBrush value)
 Brush used to draw the content of the pen.
int Width (self)
 Width of the pen.
 Width (self, int value)
 Width of the pen.
eVision.EPenStyle Style (self)
 Style of the pen.
 Style (self, eVision.EPenStyle value)
 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

◆ Brush() [1/2]

eVision.EBrush eVision.EPen.Brush ( self)

Brush used to draw the content of the pen.

◆ Brush() [2/2]

eVision.EPen.Brush ( self,
eVision.EBrush value )

Brush used to draw the content of the pen.

◆ 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

◆ Style() [1/2]

eVision.EPenStyle eVision.EPen.Style ( self)

Style of the pen.

◆ Style() [2/2]

eVision.EPen.Style ( self,
eVision.EPenStyle value )

Style of the pen.

◆ Width() [1/2]

int eVision.EPen.Width ( self)

Width of the pen.

◆ Width() [2/2]

eVision.EPen.Width ( self,
int value )

Width of the pen.