CFx SDK Documentation
2022 SP0
|
#include <CmColorBase.h>
Public Types | |
enum | transparencyMethod { kByLayer = 0 , kByBlock = 1 , kByAlpha = 2 , kErrorValue = 3 } |
Public Member Functions | |
ODRX_HEAP_OPERATORS () | |
OdCmTransparency () | |
OdCmTransparency (transparencyMethod method) | |
OdCmTransparency (OdUInt8 alpha) | |
OdCmTransparency (double alphaPercent) | |
OdCmTransparency (const OdCmTransparency &transparency) | |
~OdCmTransparency () | |
OdCmTransparency & | operator= (const OdCmTransparency &transparency) |
bool | operator== (const OdCmTransparency &transparency) const |
bool | operator!= (const OdCmTransparency &transparency) const |
void | setAlpha (OdUInt8 alpha) |
OdUInt8 | alpha () const |
void | setAlphaPercent (double alphaPercent) |
double | alphaPercent () const |
transparencyMethod | method () const |
void | setMethod (transparencyMethod method) |
bool | isByAlpha () const |
bool | isByBlock () const |
bool | isByLayer () const |
bool | isInvalid () const |
bool | isClear () const |
bool | isSolid () const |
OdUInt32 | serializeOut () const |
void | serializeIn (OdUInt32 transparency) |
void | dwgIn (OdDbDwgFiler *pFiler) |
void | dwgOut (OdDbDwgFiler *pFiler) const |
<group OdCm_Classes>
This class implements the Transparency object, which provides the transparency information about OdGiDrawable objects.
<link cm_transparency_method.html, Methods of the Transparency Definition>
Definition at line 1616 of file CmColorBase.h.
Enumerator | |
---|---|
kByLayer | |
kByBlock | |
kByAlpha | |
kErrorValue |
Definition at line 1621 of file CmColorBase.h.
|
inline |
Definition at line 1632 of file CmColorBase.h.
|
inline |
Definition at line 1633 of file CmColorBase.h.
|
inline |
Definition at line 1634 of file CmColorBase.h.
|
inline |
Definition at line 1635 of file CmColorBase.h.
|
inline |
Definition at line 1636 of file CmColorBase.h.
|
inline |
Definition at line 1638 of file CmColorBase.h.
|
inline |
Returns the alpha value in range 0 to 255 of the transparency object.
Definition at line 1703 of file CmColorBase.h.
|
inline |
Returns the alpha value in range 0.0 to 1.0 of the transparency object.
Definition at line 1749 of file CmColorBase.h.
void OdCmTransparency::dwgIn | ( | OdDbDwgFiler * | pFiler | ) |
Reads the .dwg file format data of this object from the specified file.
pFiler | [in] Pointer to the filer from which the data are to be read. |
void OdCmTransparency::dwgOut | ( | OdDbDwgFiler * | pFiler | ) | const |
Writes the .dwg file format data of this object to the specified filer.
pFiler | [in] Pointer to the filer to which the data are to be written. |
|
inline |
Checks whether the transparency method is byAlpha for the transparency object and returns true if and only if the transparency method is set to kByAlpha, otherwise it returns false.
Definition at line 1816 of file CmColorBase.h.
|
inline |
Checks whether the transparency method is byBlock for the transparency object and returns true if and only if the transparency method is set to kByBlock, otherwise it returns false.
Definition at line 1828 of file CmColorBase.h.
|
inline |
Checks whether the transparency method is byLayer for the transparency object and returns true if and only if the transparency method is set to kByLayer, otherwise it returns false.
Definition at line 1840 of file CmColorBase.h.
|
inline |
Checks whether the transparency method is byAlpha and object is totally clarity for the transparency object. It returns true if and only if the transparency method is set to kByAlpha and Alpha == 0, otherwise it returns false.
<link cm_transparency_alpha.html, Transparency Functionality as an Alpha-value>
Definition at line 1867 of file CmColorBase.h.
|
inline |
Checks whether the transparency method is error value for the transparency object and returns true if and only if the transparency method is set to kErrorValuer, otherwise it returns false.
Definition at line 1852 of file CmColorBase.h.
|
inline |
Checks whether the transparency method is byAlpha and object is totally opaque for the transparency object. It returns true if and only if the transparency method is set to kByAlpha and Alpha == 255, otherwise it returns false.
<link cm_transparency_alpha.html, Transparency Functionality as an Alpha-value>
Definition at line 1882 of file CmColorBase.h.
|
inline |
Returns the transparency method of the transparency object as a value of the transparencyMethod enumeration.
Value Description kByLayer 0 Transparency is specified by the layer object to which the object is resided. kByBlock 1 Transparency is specified by the block object in which the object is contained. kByAlpha 2 Transparency is specified by an Alpha-value.
Definition at line 1774 of file CmColorBase.h.
OdCmTransparency::ODRX_HEAP_OPERATORS | ( | ) |
|
inline |
Compares two transparency objects as integer values and returns true when their values are not equal, or false when their values are equal.
Definition at line 1666 of file CmColorBase.h.
|
inline |
Definition at line 1640 of file CmColorBase.h.
|
inline |
Compares two transparency objects as integer values and returns true when their values are equal, or false when their values are not equal.
Definition at line 1653 of file CmColorBase.h.
Sets the transparency method and transparency components as an integer value for the transparency object.
transparency | [in] A packed 32-bits integer value that specifies the transparency method and transparency components. |
<link cm_transparency_integer.html, Transparency Functionality as an Integer-value>
Definition at line 1911 of file CmColorBase.h.
|
inline |
Returns the packed 32-bits integer value that stores the transparency method and transparency components.
<link cm_transparency_integer.html, Transparency Functionality as an Integer-value>
Definition at line 1896 of file CmColorBase.h.
Sets the alpha value and switches the transparency method to kByAlpha for the transparency object.
alpha | [in] Alpha as an integer value in range 0 to 255. |
Definition at line 1684 of file CmColorBase.h.
|
inline |
Sets the alpha value in percent and switches the transparency method to kByAlpha for the transparency object.
alphaPercent | [in] Alpha as a double value in range 0.0 (=0) to 1.0 (=255). |
Definition at line 1725 of file CmColorBase.h.
|
inline |
Sets the transparency method for the transparency object.
method | [in] Transparency method as the transparencyMethod enumeration. |
Value Description kByLayer 0 Transparency is specified by the layer object to which the object is resided. kByBlock 1 Transparency is specified by the block object in which the object is contained. kByAlpha 2 Transparency is specified by an Alpha-value.
Definition at line 1800 of file CmColorBase.h.