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

A framework to define the display of shading.
The attributes which make up this definition include:
More...

#include <Prs3d_ShadingAspect.hxx>

Inheritance diagram for Prs3d_ShadingAspect:
Inheritance graph
[legend]

Public Member Functions

 Prs3d_ShadingAspect ()
 Constructs an empty framework to display shading.

void SetColor (const Quantity_Color &aColor, const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_BOTH_SIDE)
 Change the polygons interior color and material ambient color.

void SetColor (const Quantity_NameOfColor aColor, const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_BOTH_SIDE)
 Change the polygons interior color and material ambient color.

void SetMaterial (const Graphic3d_MaterialAspect &aMaterial, const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_BOTH_SIDE)
 Change the polygons material aspect.

void SetMaterial (const Graphic3d_NameOfMaterial aMaterial, const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_BOTH_SIDE)
void SetTransparency (const Standard_Real aValue, const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_BOTH_SIDE)
 Change the polygons transparency value.
Warning : aValue must be in the range 0,1. 0 is the default (NO transparent)

void SetAspect (const Handle< Graphic3d_AspectFillArea3d > &Asp)
 Change the polygons aspect properties.

Quantity_Color Color (const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_FRONT_SIDE) const
 Returns the polygons color.

Graphic3d_MaterialAspect Material (const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_FRONT_SIDE) const
 Returns the polygons material aspect.

Standard_Real Transparency (const Aspect_TypeOfFacingModel aModel=Aspect_TOFM_FRONT_SIDE) const
 Returns the polygons transparency value.

Handle_Graphic3d_AspectFillArea3d Aspect () const
 Returns the polygons aspect properties.


Detailed Description


Constructor & Destructor Documentation


Member Function Documentation

Handle_Graphic3d_AspectFillArea3d Prs3d_ShadingAspect::Aspect ( ) const

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