![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Class for working with STEP rendering properties. Provides functionality to create and manipulate rendering properties used for specifying visual appearance in STEP format. This class handles both parsing of STEP entities and creation of new ones. More...
#include <STEPConstruct_RenderingProperties.hxx>
Public Member Functions | |
| STEPConstruct_RenderingProperties () | |
| Default constructor creating an empty rendering properties object. | |
| STEPConstruct_RenderingProperties (const occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > &theRenderingProperties) | |
| Constructor from STEP rendering properties entity. Extracts color, transparency, and other properties from the STEP entity. | |
| STEPConstruct_RenderingProperties (const Quantity_ColorRGBA &theRGBAColor) | |
| Constructor from RGBA color. Creates rendering properties with the given color and transparency. | |
| STEPConstruct_RenderingProperties (const occ::handle< StepVisual_Colour > &theColor, const double theTransparency) | |
| Constructor from STEP color and transparency value. Creates rendering properties with the given color and transparency. | |
| STEPConstruct_RenderingProperties (const XCAFDoc_VisMaterialCommon &theMaterial) | |
| Constructor from XCAFDoc_VisMaterialCommon. Creates rendering properties using material properties from the OCCT material. | |
| STEPConstruct_RenderingProperties (const occ::handle< XCAFDoc_VisMaterial > &theMaterial) | |
| Constructor from XCAFDoc_VisMaterial. Creates rendering properties using material properties from the OCCT material. | |
| STEPConstruct_RenderingProperties (const Quantity_Color &theSurfaceColor, const double theTransparency=0.0) | |
| Constructor from surface color, transparency, and rendering method. | |
| void | Init (const occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > &theRenderingProperties) |
| Initializes from STEP rendering properties entity. Extracts color, transparency, and other properties from the STEP entity. | |
| void | Init (const Quantity_ColorRGBA &theRGBAColor) |
| Initializes from RGBA color. | |
| void | Init (const occ::handle< StepVisual_Colour > &theColor, const double theTransparency) |
| Initializes from STEP color and transparency value. | |
| void | Init (const XCAFDoc_VisMaterialCommon &theMaterial) |
| Initializes from XCAFDoc_VisMaterialCommon. | |
| void | Init (const occ::handle< XCAFDoc_VisMaterial > &theMaterial) |
| Initializes from XCAFDoc_VisMaterial. | |
| void | Init (const Quantity_Color &theSurfaceColor, const double theTransparency=0.0) |
| Initializes from surface color, transparency and rendering method. | |
| void | SetAmbientReflectance (const double theAmbientReflectance) |
| Sets ambient reflectance value. | |
| void | SetAmbientAndDiffuseReflectance (const double theAmbientReflectance, const double theDiffuseReflectance) |
| Sets ambient and diffuse reflectance values. | |
| void | SetAmbientDiffuseAndSpecularReflectance (const double theAmbientReflectance, const double theDiffuseReflectance, const double theSpecularReflectance, const double theSpecularExponent, const Quantity_Color &theSpecularColour) |
| Sets ambient, diffuse and specular reflectance values. | |
| occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > | CreateRenderingProperties () const |
| Creates and returns rendering properties entity. | |
| occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > | CreateRenderingProperties (const occ::handle< StepVisual_Colour > &theRenderColour) const |
| XCAFDoc_VisMaterialCommon | CreateXCAFMaterial () const |
| Creates and returns XCAF material entity. | |
| Quantity_ColorRGBA | GetRGBAColor () const |
| Creates the ColorRGBA object from the current color and transparency. | |
| Quantity_Color | SurfaceColor () const |
| Returns surface color. | |
| double | Transparency () const |
| Returns transparency value. | |
| StepVisual_ShadingSurfaceMethod | RenderingMethod () const |
| Returns rendering method. | |
| void | SetRenderingMethod (const StepVisual_ShadingSurfaceMethod theRenderingMethod) |
| Sets rendering method. | |
| bool | IsDefined () const |
| Returns whether the rendering properties are defined. | |
| bool | IsMaterialConvertible () const |
| Returns whether material is convertible to STEP. | |
| double | AmbientReflectance () const |
| Returns ambient reflectance value. | |
| bool | IsAmbientReflectanceDefined () const |
| Returns whether ambient reflectance is defined. | |
| double | DiffuseReflectance () const |
| Returns diffuse reflectance value. | |
| bool | IsDiffuseReflectanceDefined () const |
| Returns whether diffuse reflectance is defined. | |
| double | SpecularReflectance () const |
| Returns specular reflectance value. | |
| bool | IsSpecularReflectanceDefined () const |
| Returns whether specular reflectance is defined. | |
| double | SpecularExponent () const |
| Returns specular exponent value. | |
| bool | IsSpecularExponentDefined () const |
| Returns whether specular exponent is defined. | |
| Quantity_Color | SpecularColour () const |
| Returns specular color. | |
| bool | IsSpecularColourDefined () const |
| Returns whether specular color is defined. | |
Class for working with STEP rendering properties. Provides functionality to create and manipulate rendering properties used for specifying visual appearance in STEP format. This class handles both parsing of STEP entities and creation of new ones.
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | ) |
Default constructor creating an empty rendering properties object.
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | const occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > & | theRenderingProperties | ) |
Constructor from STEP rendering properties entity. Extracts color, transparency, and other properties from the STEP entity.
| [in] | theRenderingProperties | rendering properties entity |
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | const Quantity_ColorRGBA & | theRGBAColor | ) |
Constructor from RGBA color. Creates rendering properties with the given color and transparency.
| [in] | theRGBAColor | color with transparency |
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | const occ::handle< StepVisual_Colour > & | theColor, |
| const double | theTransparency ) |
Constructor from STEP color and transparency value. Creates rendering properties with the given color and transparency.
| [in] | theColor | color |
| [in] | theTransparency | transparency value |
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | const XCAFDoc_VisMaterialCommon & | theMaterial | ) |
Constructor from XCAFDoc_VisMaterialCommon. Creates rendering properties using material properties from the OCCT material.
| [in] | theMaterial | common visualization material properties |
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | const occ::handle< XCAFDoc_VisMaterial > & | theMaterial | ) |
Constructor from XCAFDoc_VisMaterial. Creates rendering properties using material properties from the OCCT material.
| [in] | theMaterial | visualization material properties |
| STEPConstruct_RenderingProperties::STEPConstruct_RenderingProperties | ( | const Quantity_Color & | theSurfaceColor, |
| const double | theTransparency = 0.0 ) |
Constructor from surface color, transparency, and rendering method.
| [in] | theSurfaceColor | surface color |
| [in] | theTransparency | transparency value |
| double STEPConstruct_RenderingProperties::AmbientReflectance | ( | ) | const |
Returns ambient reflectance value.
| occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > STEPConstruct_RenderingProperties::CreateRenderingProperties | ( | ) | const |
Creates and returns rendering properties entity.
| occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > STEPConstruct_RenderingProperties::CreateRenderingProperties | ( | const occ::handle< StepVisual_Colour > & | theRenderColour | ) | const |
| [in] | theRenderColour | color to be used for rendering |
| XCAFDoc_VisMaterialCommon STEPConstruct_RenderingProperties::CreateXCAFMaterial | ( | ) | const |
Creates and returns XCAF material entity.
| double STEPConstruct_RenderingProperties::DiffuseReflectance | ( | ) | const |
Returns diffuse reflectance value.
|
inline |
Creates the ColorRGBA object from the current color and transparency.
| void STEPConstruct_RenderingProperties::Init | ( | const occ::handle< StepVisual_Colour > & | theColor, |
| const double | theTransparency ) |
Initializes from STEP color and transparency value.
| [in] | theColor | STEP color entity |
| [in] | theTransparency | transparency value |
| void STEPConstruct_RenderingProperties::Init | ( | const occ::handle< StepVisual_SurfaceStyleRenderingWithProperties > & | theRenderingProperties | ) |
Initializes from STEP rendering properties entity. Extracts color, transparency, and other properties from the STEP entity.
| [in] | theRenderingProperties | rendering properties entity |
| void STEPConstruct_RenderingProperties::Init | ( | const occ::handle< XCAFDoc_VisMaterial > & | theMaterial | ) |
Initializes from XCAFDoc_VisMaterial.
| [in] | theMaterial | visualization material properties |
| void STEPConstruct_RenderingProperties::Init | ( | const Quantity_Color & | theSurfaceColor, |
| const double | theTransparency = 0.0 ) |
Initializes from surface color, transparency and rendering method.
| [in] | theSurfaceColor | surface color |
| [in] | theTransparency | transparency value |
| void STEPConstruct_RenderingProperties::Init | ( | const Quantity_ColorRGBA & | theRGBAColor | ) |
Initializes from RGBA color.
| [in] | theRGBAColor | color with transparency |
| void STEPConstruct_RenderingProperties::Init | ( | const XCAFDoc_VisMaterialCommon & | theMaterial | ) |
Initializes from XCAFDoc_VisMaterialCommon.
| [in] | theMaterial | common visualization material properties |
| bool STEPConstruct_RenderingProperties::IsAmbientReflectanceDefined | ( | ) | const |
Returns whether ambient reflectance is defined.
|
inline |
Returns whether the rendering properties are defined.
| bool STEPConstruct_RenderingProperties::IsDiffuseReflectanceDefined | ( | ) | const |
Returns whether diffuse reflectance is defined.
| bool STEPConstruct_RenderingProperties::IsMaterialConvertible | ( | ) | const |
Returns whether material is convertible to STEP.
| bool STEPConstruct_RenderingProperties::IsSpecularColourDefined | ( | ) | const |
Returns whether specular color is defined.
| bool STEPConstruct_RenderingProperties::IsSpecularExponentDefined | ( | ) | const |
Returns whether specular exponent is defined.
| bool STEPConstruct_RenderingProperties::IsSpecularReflectanceDefined | ( | ) | const |
Returns whether specular reflectance is defined.
|
inline |
Returns rendering method.
| void STEPConstruct_RenderingProperties::SetAmbientAndDiffuseReflectance | ( | const double | theAmbientReflectance, |
| const double | theDiffuseReflectance ) |
Sets ambient and diffuse reflectance values.
| [in] | theAmbientReflectance | ambient reflectance value |
| [in] | theDiffuseReflectance | diffuse reflectance value |
| void STEPConstruct_RenderingProperties::SetAmbientDiffuseAndSpecularReflectance | ( | const double | theAmbientReflectance, |
| const double | theDiffuseReflectance, | ||
| const double | theSpecularReflectance, | ||
| const double | theSpecularExponent, | ||
| const Quantity_Color & | theSpecularColour ) |
Sets ambient, diffuse and specular reflectance values.
| [in] | theAmbientReflectance | ambient reflectance value |
| [in] | theDiffuseReflectance | diffuse reflectance value |
| [in] | theSpecularReflectance | specular reflectance value |
| [in] | theSpecularExponent | specular exponent value |
| [in] | theSpecularColour | specular color |
Sets ambient reflectance value.
| [in] | theAmbientReflectance | ambient reflectance value |
|
inline |
Sets rendering method.
| [in] | theRenderingMethod | rendering method |
| Quantity_Color STEPConstruct_RenderingProperties::SpecularColour | ( | ) | const |
Returns specular color.
| double STEPConstruct_RenderingProperties::SpecularExponent | ( | ) | const |
Returns specular exponent value.
| double STEPConstruct_RenderingProperties::SpecularReflectance | ( | ) | const |
Returns specular reflectance value.
|
inline |
Returns surface color.
|
inline |
Returns transparency value.