1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <V3d_SpotLight.hxx>
18 IMPLEMENT_STANDARD_RTTIEXT(V3d_SpotLight,V3d_PositionLight)
20 // =======================================================================
21 // function : V3d_SpotLight
23 // =======================================================================
24 V3d_SpotLight::V3d_SpotLight (const gp_Pnt& thePos,
25 const V3d_TypeOfOrientation theDirection,
26 const Quantity_Color& theColor)
27 : V3d_PositionLight (Graphic3d_TOLS_SPOT)
31 SetDirection (V3d::GetProjAxis (theDirection));
34 // =======================================================================
35 // function : V3d_SpotLight
37 // =======================================================================
38 V3d_SpotLight::V3d_SpotLight (const gp_Pnt& thePos,
39 const gp_Dir& theDirection,
40 const Quantity_Color& theColor)
41 : V3d_PositionLight (Graphic3d_TOLS_SPOT)
45 SetDirection (theDirection);
48 // =======================================================================
49 // function : SetDirection
51 // =======================================================================
52 void V3d_SpotLight::SetDirection (V3d_TypeOfOrientation theDirection)
54 SetDirection (V3d::GetProjAxis (theDirection));