Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
XCAFPrs_Style Class Reference

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

#include <XCAFPrs_Style.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC XCAFPrs_Style ()
Standard_Boolean IsSetColorSurf () const
Quantity_Color GetColorSurf () const
void SetColorSurf (const Quantity_Color &col)
void UnSetColorSurf ()
 Manage surface color setting

Standard_Boolean IsSetColorCurv () const
Quantity_Color GetColorCurv () const
void SetColorCurv (const Quantity_Color &col)
void UnSetColorCurv ()
 Manage curve color setting

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

Standard_Boolean IsEqual (const XCAFPrs_Style &other) const
 Returs True if styles are the same
//! Methods for using Style as key in maps

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.

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.


Constructor & Destructor Documentation


Member Function Documentation

Standard_Boolean XCAFPrs_Style::operator== ( const XCAFPrs_Style other) const [inline]

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