0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input...
[occt.git] / src / V3d / V3d_AmbientLight.cxx
index c9459f2..7617114 100644 (file)
@@ -4,8 +4,8 @@
 //
 // 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);
 }
-