H3D API  2.4.1
GeneralPointLight.h
Go to the documentation of this file.
1 // Copyright 2004-2019, SenseGraphics AB
3 //
4 // This file is part of H3D API.
5 //
6 // H3D API is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // H3D API is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with H3D API; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // A commercial license is also available. Please contact us at
21 // www.sensegraphics.com for more information.
22 //
23 //
27 //
29 #ifndef __GENERALPOINTLIGHT_H__
30 #define __GENERALPOINTLIGHT_H__
31 
32 #include <H3D/PointLight.h>
33 
34 namespace H3D {
35 
51  class H3DAPI_API GeneralPointLight : public PointLight {
52  public:
54  GeneralPointLight( Inst< SFNode > _metadata = 0,
55  Inst< SFFloat> _ambientIntensity = 0,
56  Inst< SFColor> _color = 0,
57  Inst< SFFloat> _intensity = 0,
58  Inst< SFBool > _on = 0,
59  Inst< SFVec3f> _attenuation = 0,
60  Inst< SFVec3f> _location = 0,
61  Inst< SFBool > _global = 0,
62  Inst< SFFloat> _radius = 0,
63  Inst< SFColor> _ambientColor = 0,
64  Inst< SFColor> _specularColor = 0,
65  Inst< SFFloat > _specularIntensity = 0 );
66 
68  virtual GLLightInfo getGLLightInfo();
69 
78  H3DUniquePtr< SFColor > ambientColor;
79 
88  H3DUniquePtr< SFColor > specularColor;
89 
97  H3DUniquePtr< SFFloat > specularIntensity;
98 
101  };
102 }
103 
104 #endif
Header file for PointLight, X3D scene-graph node.
The GeneralPointLight node specifies a point light source at a 3D location in the local coordinate sy...
Definition: GeneralPointLight.h:51
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: GeneralPointLight.h:100
H3DUniquePtr< SFColor > ambientColor
The color field specifies the spectral colour properties of the ambient light emission as an RGB valu...
Definition: GeneralPointLight.h:78
H3DUniquePtr< SFFloat > specularIntensity
Specifies the intensity of the specular emission from the light.
Definition: GeneralPointLight.h:97
H3DUniquePtr< SFColor > specularColor
The color field specifies the spectral colour properties of the specular light emission as an RGB val...
Definition: GeneralPointLight.h:88
The PointLight node specifies a point light source at a 3D location in the local coordinate system.
Definition: PointLight.h:70
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194
A structure representing a the OpenGL representation of the specified light source.
Definition: X3DLightNode.h:75