Open CASCADE Technology 7.8.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. | |
Standard_Boolean | IsEmpty () const |
Return TRUE if style is empty - does not override any properties. | |
const Handle< XCAFDoc_VisMaterial > & | Material () const |
Return material. | |
void | SetMaterial (const Handle< XCAFDoc_VisMaterial > &theMaterial) |
Set material. | |
Standard_Boolean | IsSetColorSurf () const |
Return TRUE if surface color has been defined. | |
const Quantity_Color & | GetColorSurf () const |
Return surface color. | |
void | SetColorSurf (const Quantity_Color &theColor) |
Set surface color. | |
const Quantity_ColorRGBA & | GetColorSurfRGBA () const |
Return surface color. | |
void | SetColorSurf (const Quantity_ColorRGBA &theColor) |
Set surface color. | |
void | UnSetColorSurf () |
Manage surface color setting. | |
Standard_Boolean | IsSetColorCurv () const |
Return TRUE if curve color has been defined. | |
const Quantity_Color & | GetColorCurv () const |
Return curve color. | |
void | SetColorCurv (const Quantity_Color &col) |
Set curve color. | |
void | UnSetColorCurv () |
Manage curve color setting. | |
void | SetVisibility (const Standard_Boolean theVisibility) |
Assign visibility. | |
Standard_Boolean | IsVisible () const |
Manage visibility. | |
const Handle< Image_Texture > & | BaseColorTexture () const |
Return base color texture. | |
Standard_Boolean | IsEqual (const XCAFPrs_Style &theOther) const |
Returns True if styles are the same Methods for using Style as key in maps. | |
Standard_Boolean | operator== (const XCAFPrs_Style &theOther) const |
Returns True if styles are the same. | |
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
Dumps the content of me into the stream. | |
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 base color texture.
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.
|
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.
|
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 |