Open CASCADE Technology 7.8.2.dev
XCAFPrs_Style Class Reference

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_ColorGetColorSurf () const
 Return surface color.
 
void SetColorSurf (const Quantity_Color &theColor)
 Set surface color.
 
const Quantity_ColorRGBAGetColorSurfRGBA () 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_ColorGetColorCurv () 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.
 

Protected Attributes

Handle< XCAFDoc_VisMaterialmyMaterial
 
Quantity_ColorRGBA myColorSurf
 
Quantity_Color myColorCurv
 
Standard_Boolean myHasColorSurf
 
Standard_Boolean myHasColorCurv
 
Standard_Boolean myIsVisible
 

Detailed Description

Represents a set of styling settings applicable to a (sub)shape.

Constructor & Destructor Documentation

◆ XCAFPrs_Style()

XCAFPrs_Style::XCAFPrs_Style ( )

Empty constructor - colors are unset, visibility is TRUE.

Member Function Documentation

◆ BaseColorTexture()

const Handle< Image_Texture > & XCAFPrs_Style::BaseColorTexture ( ) const
inline

Return base color texture.

◆ DumpJson()

void XCAFPrs_Style::DumpJson ( Standard_OStream & theOStream,
Standard_Integer theDepth = -1 ) const

Dumps the content of me into the stream.

◆ GetColorCurv()

const Quantity_Color & XCAFPrs_Style::GetColorCurv ( ) const
inline

Return curve color.

◆ GetColorSurf()

const Quantity_Color & XCAFPrs_Style::GetColorSurf ( ) const
inline

Return surface color.

◆ GetColorSurfRGBA()

const Quantity_ColorRGBA & XCAFPrs_Style::GetColorSurfRGBA ( ) const
inline

Return surface color.

◆ IsEmpty()

Standard_Boolean XCAFPrs_Style::IsEmpty ( ) const
inline

Return TRUE if style is empty - does not override any properties.

◆ IsEqual()

Standard_Boolean XCAFPrs_Style::IsEqual ( const XCAFPrs_Style & theOther) const
inline

Returns True if styles are the same Methods for using Style as key in maps.

◆ IsSetColorCurv()

Standard_Boolean XCAFPrs_Style::IsSetColorCurv ( ) const
inline

Return TRUE if curve color has been defined.

◆ IsSetColorSurf()

Standard_Boolean XCAFPrs_Style::IsSetColorSurf ( ) const
inline

Return TRUE if surface color has been defined.

◆ IsVisible()

Standard_Boolean XCAFPrs_Style::IsVisible ( ) const
inline

Manage visibility.

◆ Material()

const Handle< XCAFDoc_VisMaterial > & XCAFPrs_Style::Material ( ) const
inline

Return material.

◆ operator==()

Standard_Boolean XCAFPrs_Style::operator== ( const XCAFPrs_Style & theOther) const
inline

Returns True if styles are the same.

◆ SetColorCurv()

void XCAFPrs_Style::SetColorCurv ( const Quantity_Color & col)

Set curve color.

◆ SetColorSurf() [1/2]

void XCAFPrs_Style::SetColorSurf ( const Quantity_Color & theColor)
inline

Set surface color.

◆ SetColorSurf() [2/2]

void XCAFPrs_Style::SetColorSurf ( const Quantity_ColorRGBA & theColor)

Set surface color.

◆ SetMaterial()

void XCAFPrs_Style::SetMaterial ( const Handle< XCAFDoc_VisMaterial > & theMaterial)
inline

Set material.

◆ SetVisibility()

void XCAFPrs_Style::SetVisibility ( const Standard_Boolean theVisibility)
inline

Assign visibility.

◆ UnSetColorCurv()

void XCAFPrs_Style::UnSetColorCurv ( )

Manage curve color setting.

◆ UnSetColorSurf()

void XCAFPrs_Style::UnSetColorSurf ( )

Manage surface color setting.

Field Documentation

◆ myColorCurv

Quantity_Color XCAFPrs_Style::myColorCurv
protected

◆ myColorSurf

Quantity_ColorRGBA XCAFPrs_Style::myColorSurf
protected

◆ myHasColorCurv

Standard_Boolean XCAFPrs_Style::myHasColorCurv
protected

◆ myHasColorSurf

Standard_Boolean XCAFPrs_Style::myHasColorSurf
protected

◆ myIsVisible

Standard_Boolean XCAFPrs_Style::myIsVisible
protected

◆ myMaterial

Handle< XCAFDoc_VisMaterial > XCAFPrs_Style::myMaterial
protected

The documentation for this class was generated from the following file: