Open CASCADE Technology
7.2.0
|
Represents a set of styling settings applicable to a (sub)shape. More...
#include <XCAFPrs_Style.hxx>
Public Member Functions | |
XCAFPrs_Style () | |
Empty constructor - colors are unset, visibility is TRUE. More... | |
Standard_Boolean | IsSetColorSurf () const |
Return TRUE if surface color has been defined. More... | |
const Quantity_Color & | GetColorSurf () const |
Return surface color. More... | |
void | SetColorSurf (const Quantity_Color &theColor) |
Set surface color. More... | |
const Quantity_ColorRGBA & | GetColorSurfRGBA () const |
Return surface color. More... | |
void | SetColorSurf (const Quantity_ColorRGBA &theColor) |
Set surface color. More... | |
void | UnSetColorSurf () |
Manage surface color setting. More... | |
Standard_Boolean | IsSetColorCurv () const |
Return TRUE if curve color has been defined. More... | |
const Quantity_Color & | GetColorCurv () const |
Return curve color. More... | |
void | SetColorCurv (const Quantity_Color &col) |
Set curve color. More... | |
void | UnSetColorCurv () |
Manage curve color setting. More... | |
void | SetVisibility (const Standard_Boolean theVisibility) |
Assign visibility. More... | |
Standard_Boolean | IsVisible () const |
Manage visibility. More... | |
Standard_Boolean | IsEqual (const XCAFPrs_Style &theOther) const |
Returns True if styles are the same Methods for using Style as key in maps. More... | |
Standard_Boolean | operator== (const XCAFPrs_Style &theOther) const |
Returns True if styles are the same. More... | |
Static Public Member Functions | |
static Standard_Integer | HashCode (const XCAFPrs_Style &theStyle, const Standard_Integer theUpper) |
Returns a HasCode value. More... | |
static Standard_Boolean | IsEqual (const XCAFPrs_Style &theS1, const XCAFPrs_Style &theS2) |
Returns True when the two keys are the same. More... | |
Protected Attributes | |
Quantity_ColorRGBA | myColorSurf |
Quantity_Color | myColorCurv |
Standard_Boolean | myHasColorSurf |
Standard_Boolean | myHasColorCurv |
Standard_Boolean | myIsVisible |
Represents a set of styling settings applicable to a (sub)shape.
XCAFPrs_Style::XCAFPrs_Style | ( | ) |
Empty constructor - colors are unset, visibility is TRUE.
|
inline |
Return curve color.
|
inline |
Return surface color.
|
inline |
Return surface color.
|
inlinestatic |
Returns a HasCode value.
|
inline |
Returns True if styles are the same Methods for using Style as key in maps.
|
inlinestatic |
Returns True when the two keys are the same.
|
inline |
Return TRUE if curve color has been defined.
|
inline |
Return TRUE if surface color has been defined.
|
inline |
Manage visibility.
|
inline |
Returns True if styles are the same.
void XCAFPrs_Style::SetColorCurv | ( | const Quantity_Color & | col | ) |
Set curve color.
|
inline |
Set surface color.
void XCAFPrs_Style::SetColorSurf | ( | const Quantity_ColorRGBA & | theColor | ) |
Set surface color.
|
inline |
Assign visibility.
void XCAFPrs_Style::UnSetColorCurv | ( | ) |
Manage curve color setting.
void XCAFPrs_Style::UnSetColorSurf | ( | ) |
Manage surface color setting.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |