// Modified 30-03-98 : ZOV ; PRO6774 (reconstruction of the class hierarchy and suppressing useless methods)
-#include <Standard_Type.hxx>
-#include <V3d.hxx>
#include <V3d_AmbientLight.hxx>
-#include <V3d_Viewer.hxx>
-#include <Visual3d_Light.hxx>
-V3d_AmbientLight::V3d_AmbientLight(const Handle(V3d_Viewer)& VM, const Quantity_NameOfColor Name):V3d_Light(VM) {
-
- Quantity_Color C(Name) ;
- MyType = V3d_AMBIENT ;
- MyLight = new Visual3d_Light(C) ;
+// =======================================================================
+// function : V3d_AmbientLight
+// purpose :
+// =======================================================================
+V3d_AmbientLight::V3d_AmbientLight (const Handle(V3d_Viewer)& theViewer,
+ const Quantity_NameOfColor theColor)
+: V3d_Light (theViewer)
+{
+ SetType (V3d_AMBIENT);
+ SetColor (theColor);
}
-