CFx SDK Documentation  2020SP3
Public Member Functions | Public Attributes | List of all members
OdGiIntRGB Struct Reference

#include <GiPalette.h>

Public Member Functions

 OdGiIntRGB (OdInt32 _r, OdInt32 _g, OdInt32 _b)
 
 OdGiIntRGB ()
 
 OdGiIntRGB (ODCOLORREF cref)
 
OdInt32 red () const
 
OdInt32 green () const
 
OdInt32 blue () const
 
void setRed (OdInt32 _r)
 
void setGreen (OdInt32 _g)
 
void setBlue (OdInt32 _b)
 
void setRGB (OdInt32 _r, OdInt32 _g, OdInt32 _b)
 
void setColor (ODCOLORREF cref)
 
ODCOLORREF color () const
 

Public Attributes

OdInt32 r
 
OdInt32 g
 
OdInt32 b
 

Detailed Description

This class represents RGB color components as set of 32bit integers. Corresponding C++ library: TD_Gi <group OdGi_Classes>

Definition at line 38 of file GiPalette.h.

Constructor & Destructor Documentation

◆ OdGiIntRGB() [1/3]

OdGiIntRGB::OdGiIntRGB ( OdInt32  _r,
OdInt32  _g,
OdInt32  _b 
)
inline

Definition at line 42 of file GiPalette.h.

◆ OdGiIntRGB() [2/3]

OdGiIntRGB::OdGiIntRGB ( )
inline

Definition at line 45 of file GiPalette.h.

◆ OdGiIntRGB() [3/3]

OdGiIntRGB::OdGiIntRGB ( ODCOLORREF  cref)
inline

Definition at line 46 of file GiPalette.h.

Member Function Documentation

◆ blue()

OdInt32 OdGiIntRGB::blue ( ) const
inline

Returns blue color component.

Definition at line 62 of file GiPalette.h.

◆ color()

ODCOLORREF OdGiIntRGB::color ( ) const
inline

Returns color as ODCOLORREF.

Definition at line 98 of file GiPalette.h.

◆ green()

OdInt32 OdGiIntRGB::green ( ) const
inline

Returns green color component.

Definition at line 58 of file GiPalette.h.

◆ red()

OdInt32 OdGiIntRGB::red ( ) const
inline

Returns red color component.

Definition at line 54 of file GiPalette.h.

◆ setBlue()

void OdGiIntRGB::setBlue ( OdInt32  _b)
inline

Resets blue color component.

Parameters
_b[in] New value for blue color component.

Definition at line 78 of file GiPalette.h.

◆ setColor()

void OdGiIntRGB::setColor ( ODCOLORREF  cref)
inline

Resets all color components from ODCOLORREF.

Parameters
cref[in] Input color.

Definition at line 91 of file GiPalette.h.

◆ setGreen()

void OdGiIntRGB::setGreen ( OdInt32  _g)
inline

Resets green color component.

Parameters
_g[in] New value for green color component.

Definition at line 73 of file GiPalette.h.

◆ setRed()

void OdGiIntRGB::setRed ( OdInt32  _r)
inline

Resets red color component.

Parameters
_r[in] New value for red color component.

Definition at line 68 of file GiPalette.h.

◆ setRGB()

void OdGiIntRGB::setRGB ( OdInt32  _r,
OdInt32  _g,
OdInt32  _b 
)
inline

Resets red, green and blue color components together.

Parameters
_r[in] New value for red color component.
_g[in] New value for green color component.
_b[in] New value for blue color component.

Definition at line 85 of file GiPalette.h.

Member Data Documentation

◆ b

OdInt32 OdGiIntRGB::b

Definition at line 40 of file GiPalette.h.

◆ g

OdInt32 OdGiIntRGB::g

Definition at line 40 of file GiPalette.h.

◆ r

OdInt32 OdGiIntRGB::r

Definition at line 40 of file GiPalette.h.


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