MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstColor:

Public Member Functions

Color __add__ (self, ConstColor b)
bool __eq__ (self, ConstColor b)
int __getitem__ (self, int e)
 __init__ (self, *args, **kwargs)
Color __mul__ (self, float a)
bool __ne__ (self, ConstColor b)
Color __rmul__ (self, float b)
Color __sub__ (self, ConstColor b)
Color __truediv__ (self, float a)
int getUInt32 (self)
bool isTranslucent (self)
Color scaledAlpha (self, float m)
int a (self)
int b (self)
int g (self)
int r (self)

Static Public Member Functions

Color black ()
Color blue ()
Color brown ()
Color gray ()
Color green ()
Color purple ()
Color red ()
Color transparent ()
int valToUint8 (int val)
int valToUint8 (float val)
Color white ()
Color yellow ()

Static Protected Attributes

typing _offsetof_a = 3
typing _offsetof_b = 2
typing _offsetof_g = 1
typing _offsetof_r = 0

Detailed Description

Generated from:  MR::Color
Aliases:  Vector_Color_FaceId_const_pointer, Vector_Color_FaceId_const_reference, Vector_Color_FaceId_pointer, Vector_Color_FaceId_reference, Vector_Color_FaceId_value_type, Vector_Color_Id_EdgeTag_const_pointer, Vector_Color_Id_EdgeTag_const_reference, Vector_Color_Id_EdgeTag_pointer, Vector_Color_Id_EdgeTag_reference, Vector_Color_Id_EdgeTag_value_type, Vector_Color_UndirectedEdgeId_const_pointer, Vector_Color_UndirectedEdgeId_const_reference, Vector_Color_UndirectedEdgeId_pointer, Vector_Color_UndirectedEdgeId_reference, Vector_Color_UndirectedEdgeId_value_type, Vector_Color_VertId_const_pointer, Vector_Color_VertId_const_reference, Vector_Color_VertId_pointer, Vector_Color_VertId_reference, Vector_Color_VertId_value_type, std_vector_Color_Allocator_Color_const_pointer, std_vector_Color_Allocator_Color_const_reference, std_vector_Color_Allocator_Color_pointer, std_vector_Color_Allocator_Color_reference, std_vector_Color_Allocator_Color_value_type

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstColor.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstColor) -> None

2. __init__(self: meshlib.mrmeshpy.ConstColor, : meshlib.mrmeshpy.ConstNoInit) -> None

3. __init__(self: meshlib.mrmeshpy.ConstColor, r: int, g: int, b: int, a: int) -> None

4. __init__(self: meshlib.mrmeshpy.ConstColor, r: int, g: int, b: int) -> None

5. __init__(self: meshlib.mrmeshpy.ConstColor, r: float, g: float, b: float, a: float) -> None

6. __init__(self: meshlib.mrmeshpy.ConstColor, r: float, g: float, b: float) -> None

7. __init__(self: meshlib.mrmeshpy.ConstColor, vec: meshlib.mrmeshpy.ConstVector4i) -> None

8. __init__(self: meshlib.mrmeshpy.ConstColor, vec: meshlib.mrmeshpy.ConstVector4f) -> None

9. __init__(self: meshlib.mrmeshpy.ConstColor, arg0: meshlib.mrmeshpy.Color) -> None

Implicit copy constructor.

10. __init__(self: meshlib.mrmeshpy.ConstColor, : meshlib.mrmeshpy.Color) -> None

Member Function Documentation

◆ __add__()

Color mrmeshpy.ConstColor.__add__ ( self,
ConstColor b )

◆ __eq__()

bool mrmeshpy.ConstColor.__eq__ ( self,
ConstColor b )

◆ __getitem__()

int mrmeshpy.ConstColor.__getitem__ ( self,
int e )

◆ __mul__()

Color mrmeshpy.ConstColor.__mul__ ( self,
float a )

◆ __ne__()

bool mrmeshpy.ConstColor.__ne__ ( self,
ConstColor b )

◆ __rmul__()

Color mrmeshpy.ConstColor.__rmul__ ( self,
float b )

◆ __sub__()

Color mrmeshpy.ConstColor.__sub__ ( self,
ConstColor b )

◆ __truediv__()

Color mrmeshpy.ConstColor.__truediv__ ( self,
float a )

◆ a()

int mrmeshpy.ConstColor.a ( self)

◆ b()

int mrmeshpy.ConstColor.b ( self)

◆ black()

Color mrmeshpy.ConstColor.black ( )
static

◆ blue()

Color mrmeshpy.ConstColor.blue ( )
static

◆ brown()

Color mrmeshpy.ConstColor.brown ( )
static

◆ g()

int mrmeshpy.ConstColor.g ( self)

◆ getUInt32()

int mrmeshpy.ConstColor.getUInt32 ( self)

◆ gray()

Color mrmeshpy.ConstColor.gray ( )
static

◆ green()

Color mrmeshpy.ConstColor.green ( )
static

◆ isTranslucent()

bool mrmeshpy.ConstColor.isTranslucent ( self)
returns true if the color is neither fully opaque nor fully transparent, so it has to be blended with the colors behind

◆ purple()

Color mrmeshpy.ConstColor.purple ( )
static

◆ r()

int mrmeshpy.ConstColor.r ( self)

◆ red()

Color mrmeshpy.ConstColor.red ( )
static

◆ scaledAlpha()

Color mrmeshpy.ConstColor.scaledAlpha ( self,
float m )

◆ transparent()

Color mrmeshpy.ConstColor.transparent ( )
static

◆ valToUint8() [1/2]

int mrmeshpy.ConstColor.valToUint8 ( float val)
static

◆ valToUint8() [2/2]

int mrmeshpy.ConstColor.valToUint8 ( int val)
static

◆ white()

Color mrmeshpy.ConstColor.white ( )
static

◆ yellow()

Color mrmeshpy.ConstColor.yellow ( )
static

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstColor._offsetof_a = 3
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstColor._offsetof_b = 2
staticprotected

◆ _offsetof_g

typing mrmeshpy.ConstColor._offsetof_g = 1
staticprotected

◆ _offsetof_r

typing mrmeshpy.ConstColor._offsetof_r = 0
staticprotected

The documentation for this class was generated from the following file: