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

Brush. More...

Public Member Functions

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

Properties

 Color = property(_Color__getter, _Color__setter)
 Color of the brush.
 Opacity = property(_Opacity__getter, _Opacity__setter)
 Opacity of the brush.

Detailed Description

Brush.

Remarks:

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.EBrush.__init__ ( self)

Constructs an eVision.EBrush.

◆ __init__() [2/4]

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

Constructs an eVision.EBrush.

Parameters
colorBrush color
opacityBrush opacity

◆ __init__() [3/4]

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

Constructs an eVision.EBrush.

Parameters
colorBrush color

◆ __init__() [4/4]

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

Member Function Documentation

◆ IsValid()

bool eVision.EBrush.IsValid ( self)

Whether the brush is valid, i.e.

when its color is defined.

◆ Load() [1/2]

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

Loads the eVision.EBrush.

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

Parameters
serializerThe serializer.

◆ Load() [2/2]

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

Loads the eVision.EBrush.

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

Parameters
pathThe file path.

◆ Save() [1/2]

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

Saves the eVision.EBrush.

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

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

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

Saves the eVision.EBrush.

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

Parameters
pathThe file path.

◆ Serialize()

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

Serializes the eVision.EBrush.

Deprecated

Use eVision.EBrush.Save or eVision.EBrush.Load instead.

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

Parameters
serializerSerializer

Property Documentation

◆ Color

eVision.EBrush.Color = property(_Color__getter, _Color__setter)
static

Color of the brush.

◆ Opacity

eVision.EBrush.Opacity = property(_Opacity__getter, _Opacity__setter)
static

Opacity of the brush.