Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

void Graphic3d_MaterialAspect::SetDiffuse ( const Standard_Real  AValue  ) 

Modifies the reflection properties of the surface.
Category: Methods to modify the class definition
Warning: Raises MaterialDefinitionError if <AValue> is a
negative value or greater than 1.0.

Definition at line 573 of file Graphic3d_MaterialAspect.cxx.

References SetMaterialName(), Quantity_Color::SetValues(), and Quantity_Color::Values().

Referenced by MeshVS_ElementalColorPrsBuilder::Build(), MeshVS_VectorPrsBuilder::Build(), and Graphic3d_Group::GroupPrimitivesAspect().


      if ((AValue < 0.0) || (AValue > 1.0))
                  ("Bad value for SetDiffuse < 0. or > 1.0");

      MyDiffuseCoef     = Standard_ShortReal (AValue);
#ifndef BUC60565
        Standard_Real R, G, B;
      MyDiffuseColor.Values (R, G, B, Quantity_TOC_RGB);
                  (R*AValue, G*AValue, B*AValue, Quantity_TOC_RGB);
#ifdef IMP171201
        if( MyDiffuseActivity && 
            (MyMaterialType == Graphic3d_MATERIAL_PHYSIC) )

Generated by  Doxygen 1.6.0   Back to index