Open CASCADE Technology
7.1.0.beta
|
Represents a set of styling settings applicable to a (sub)shape. More...
#include <XCAFPrs_Style.hxx>
Public Member Functions | |
XCAFPrs_Style () | |
Standard_Boolean | IsSetColorSurf () const |
Quantity_Color | GetColorSurf () const |
void | SetColorSurf (const Quantity_Color &col) |
void | UnSetColorSurf () |
Manage surface color setting. More... | |
Standard_Boolean | IsSetColorCurv () const |
Quantity_Color | GetColorCurv () const |
void | SetColorCurv (const Quantity_Color &col) |
void | UnSetColorCurv () |
Manage curve color setting. More... | |
void | SetVisibility (const Standard_Boolean visibility) |
Standard_Boolean | IsVisible () const |
Manage visibility Note: Setting visibility to False makes colors undefined This is necessary for HashCode. More... | |
Standard_Boolean | IsEqual (const XCAFPrs_Style &other) const |
Returs True if styles are the same Methods for using Style as key in maps. More... | |
Standard_Boolean | operator== (const XCAFPrs_Style &other) const |
Static Public Member Functions | |
static Standard_Integer | HashCode (const XCAFPrs_Style &S, const Standard_Integer Upper) |
Returns a HasCode value for the Key <K> in the range 0..Upper. More... | |
static Standard_Boolean | IsEqual (const XCAFPrs_Style &S1, const XCAFPrs_Style &S2) |
Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary. More... | |
Represents a set of styling settings applicable to a (sub)shape.
XCAFPrs_Style::XCAFPrs_Style | ( | ) |
Quantity_Color XCAFPrs_Style::GetColorCurv | ( | ) | const |
Quantity_Color XCAFPrs_Style::GetColorSurf | ( | ) | const |
|
static |
Returns a HasCode value for the Key <K> in the range 0..Upper.
Standard_Boolean XCAFPrs_Style::IsEqual | ( | const XCAFPrs_Style & | other | ) | const |
Returs True if styles are the same Methods for using Style as key in maps.
|
static |
Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Standard_Boolean XCAFPrs_Style::IsSetColorCurv | ( | ) | const |
Standard_Boolean XCAFPrs_Style::IsSetColorSurf | ( | ) | const |
Standard_Boolean XCAFPrs_Style::IsVisible | ( | ) | const |
Manage visibility Note: Setting visibility to False makes colors undefined This is necessary for HashCode.
|
inline |
void XCAFPrs_Style::SetColorCurv | ( | const Quantity_Color & | col | ) |
void XCAFPrs_Style::SetColorSurf | ( | const Quantity_Color & | col | ) |
void XCAFPrs_Style::SetVisibility | ( | const Standard_Boolean | visibility | ) |
void XCAFPrs_Style::UnSetColorCurv | ( | ) |
Manage curve color setting.
void XCAFPrs_Style::UnSetColorSurf | ( | ) |
Manage surface color setting.