Open CASCADE Technology
7.5.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 | IsEmpty () const |
Return TRUE if style is empty - does not override any properties. More... | |
const Handle< XCAFDoc_VisMaterial > & | Material () const |
Return material. More... | |
void | SetMaterial (const Handle< XCAFDoc_VisMaterial > &theMaterial) |
Set material. 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... | |
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
Dumps the content of me into the stream. More... | |
Static Public Member Functions | |
static Standard_Integer | HashCode (const XCAFPrs_Style &theStyle, const Standard_Integer theUpperBound) |
Computes a hash code for the given set of styling settings, in the range [1, theUpperBound]. More... | |
static Standard_Boolean | IsEqual (const XCAFPrs_Style &theS1, const XCAFPrs_Style &theS2) |
Returns True when the two keys are the same. More... | |
Represents a set of styling settings applicable to a (sub)shape.
XCAFPrs_Style::XCAFPrs_Style | ( | ) |
Empty constructor - colors are unset, visibility is TRUE.
void XCAFPrs_Style::DumpJson | ( | Standard_OStream & | theOStream, |
Standard_Integer | theDepth = -1 |
||
) | const |
Dumps the content of me into the stream.
|
inline |
Return curve color.
|
inline |
Return surface color.
|
inline |
Return surface color.
|
inlinestatic |
Computes a hash code for the given set of styling settings, in the range [1, theUpperBound].
theStyle | the set of styling settings which hash code is to be computed |
theUpperBound | the upper bound of the range a computing hash code must be within |
|
inline |
Return TRUE if style is empty - does not override any properties.
|
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 |
Return material.
|
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 |
Set material.
|
inline |
Assign visibility.
void XCAFPrs_Style::UnSetColorCurv | ( | ) |
Manage curve color setting.
void XCAFPrs_Style::UnSetColorSurf | ( | ) |
Manage surface color setting.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |