MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.ViewportProperty_Color Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, Color def_)
 
None __init__ (self, ViewportProperty_Color arg0)
 
Color get (self)
 
Color get (self)
 
Color get (self, ViewportId id, bool_output isDef=None)
 
Color operator (self, ViewportId id)
 
bool reset (self, ViewportId id)
 
bool reset (self)
 
None set (self, Color def_)
 
None set (self, Color v, ViewportId id)
 

Detailed Description

Generated from:  MR::ViewportProperty<MR::Color>

storage of some viewport-dependent property,
which has some default value for all viewports and special values for some specific viewports

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.ViewportProperty_Color.__init__ ( self)

◆ __init__() [2/3]

None meshlib.mrmeshpy.ViewportProperty_Color.__init__ ( self,
Color def_ )

◆ __init__() [3/3]

None meshlib.mrmeshpy.ViewportProperty_Color.__init__ ( self,
ViewportProperty_Color arg0 )
Implicit copy constructor.

Member Function Documentation

◆ get() [1/3]

Color meshlib.mrmeshpy.ViewportProperty_Color.get ( self)
gets default property value

◆ get() [2/3]

Color meshlib.mrmeshpy.ViewportProperty_Color.get ( self)

◆ get() [3/3]

Color meshlib.mrmeshpy.ViewportProperty_Color.get ( self,
ViewportId id,
bool_output isDef = None )
gets property value for given viewport: specific if available otherwise default one;
\\param isDef receives true if this viewport does not have specific value and default one is returned

◆ operator()

Color meshlib.mrmeshpy.ViewportProperty_Color.operator ( self,
ViewportId id )
returns direct access to value associated with given viewport (or default value if !id)

◆ reset() [1/2]

bool meshlib.mrmeshpy.ViewportProperty_Color.reset ( self)
forgets specific property value for all viewports;
returns true if any specific value was removed

◆ reset() [2/2]

bool meshlib.mrmeshpy.ViewportProperty_Color.reset ( self,
ViewportId id )
forgets specific property value for given viewport (or all viewports if !id);
returns true if any specific value was removed

◆ set() [1/2]

None meshlib.mrmeshpy.ViewportProperty_Color.set ( self,
Color def_ )
sets default property value

◆ set() [2/2]

None meshlib.mrmeshpy.ViewportProperty_Color.set ( self,
Color v,
ViewportId id )
sets specific property value for given viewport (or default value if !id)

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