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.
eVision.ERGBColor Color (self)
 Color of the brush.
 Color (self, eVision.ERGBColor value)
 Color of the brush.
float Opacity (self)
 Opacity of the brush.
 Opacity (self, float value)
 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

◆ Color() [1/2]

eVision.ERGBColor eVision.EBrush.Color ( self)

Color of the brush.

◆ Color() [2/2]

eVision.EBrush.Color ( self,
eVision.ERGBColor value )

Color of the brush.

◆ 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.

◆ Opacity() [1/2]

float eVision.EBrush.Opacity ( self)

Opacity of the brush.

◆ Opacity() [2/2]

eVision.EBrush.Opacity ( self,
float value )

Opacity of the brush.

◆ 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