//
// This file is part of Open CASCADE Technology software library.
//
-// This library is free software; you can redistribute it and / or modify it
-// under the terms of the GNU Lesser General Public version 2.1 as published
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
// Modified 30-03-98 : ZOV ; PRO6774 (reconstruction of the class hierarchy and suppressing useless methods)
+#include <V3d_AmbientLight.hxx>
-#include <V3d.hxx>
-#include <V3d_AmbientLight.ixx>
-#include <Visual3d_Light.hxx>
+IMPLEMENT_STANDARD_RTTIEXT(V3d_AmbientLight,V3d_Light)
-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_Color& theColor)
+: V3d_Light (theViewer)
+{
+ SetType (V3d_AMBIENT);
+ SetColor (theColor);
}
-