C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
attr_color.h File Reference

Attributes. Color. Thickness of drawing lines. Style of drawing lines. Properties for OpenGL. More...

#include <attr_elementary_attribute.h>
#include <mb_variables.h>
#include <tool_uuid.h>
#include <array>

Classes

class  MbRGBA
 Color value in the RGBA color model. More...
 
class  MbColor
 Color. More...
 
class  MbWidth
 Thickness of drawing lines. More...
 
class  MbStyle
 Style of drawing lines. More...
 
class  MbVisual
 Material properties. More...
 
class  MbWireCount
 The number of u-mesh and v-mesh drawing lines. More...
 

Functions

SPtr< MbVisualColorToVisual (const MbColor &cAttr)
 Convert MbColor attribute into MbVisual attribute. More...
 
SPtr< MbVisualColorToVisual (const MbColor &cAttr, const MbVisual &vAttr)
 Convert color attributes into MbVisual attribute. More...
 
SPtr< MbVisualColorToVisual (const SPtr< MbColor > &cAttr, const SPtr< MbVisual > &vAttr)
 Convert color attributes into MbVisual attribute. More...
 
uint32 RGB2uint32 (double r, double g, double b)
 Convert a color by 3 components in uint32. More...
 
uint32 RGB2uint32 (float r, float g, float b, float a)
 Convert a color by 3 components in uint32. More...
 
template<typename float_t >
void uint322RGB (uint32 color, float_t &r, float_t &g, float_t &b)
 Convert unit32 to 3 components of color. More...
 
uint32 HSV2uint32 (double h, double s, double v)
 Convert a color from HSV model in uint32. More...
 

Detailed Description

Attributes. Color. Thickness of drawing lines. Style of drawing lines. Properties for OpenGL.