| http://www.sim.no/ http://www.coin3d.org/

SoShadowSpotLight.h
1 #ifndef COIN_SOSHADOWSPOTLIGHT_H
2 #define COIN_SOSHADOWSPOTLIGHT_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/nodes/SoSubNode.h>
28 #include <Inventor/nodes/SoSpotLight.h>
29 #include <Inventor/fields/SoSFNode.h>
30 #include <Inventor/fields/SoSFFloat.h>
31
32
33 class COIN_DLL_API SoShadowSpotLight : public SoSpotLight {
34 typedef SoSpotLight inherited;
35
36 SO_NODE_HEADER(SoShadowSpotLight);
37
38 public:
39 static void initClass(void);
40 SoShadowSpotLight(void);
41
42 virtual void GLRender(SoGLRenderAction * action);
43
44 SoSFNode shadowMapScene;
45 SoSFFloat nearDistance;
46 SoSFFloat farDistance;
47
48 protected:
49 virtual ~SoShadowSpotLight();
50 };
51
52 #endif // !COIN_SOSHADOWSPOTLIGHT_H
SO_NODE_HEADER
#define SO_NODE_HEADER(classname)
SoSpotLight::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoSpotLight.cpp:139
SoShadowSpotLight
The SoShadowSpotLight class is a node for setting up a spot light which casts shadows.
Definition: SoShadowSpotLight.h:33
SoSpotLight
The SoSpotLight class is a node type for light sources with a cone shaped lightvolume.Spotlights are light sources with a position and a direction. They can be thought of as a pointlight with a lampshade.
Definition: SoSpotLight.h:32
SoSFNode
The SoSFNode class is a container for a single node.This field container stores a pointer to a Coin n...
Definition: SoSFNode.h:38
SoSFFloat
The SoSFFloat class is a container for a floating point value.This field is used where nodes...
Definition: SoSFFloat.h:30
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.Applying this method at a root n...
Definition: SoGLRenderAction.h:41

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.