Coin Logo http://www.sim.no
http://www.coin3d.org

SoDirectionalLight.h
1 #ifndef COIN_SODIRECTIONALLIGHT_H
2 #define COIN_SODIRECTIONALLIGHT_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
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 Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, 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/SoLight.h>
29 #include <Inventor/fields/SoSFVec3f.h>
30 
31 class COIN_DLL_API SoDirectionalLight : public SoLight {
32  typedef SoLight inherited;
33 
34  SO_NODE_HEADER(SoDirectionalLight);
35 
36 public:
37  static void initClass(void);
38  SoDirectionalLight(void);
39 
41 
42  virtual void GLRender(SoGLRenderAction * action);
43 
44 protected:
45  virtual ~SoDirectionalLight();
46 };
47 
48 #endif // !COIN_SODIRECTIONALLIGHT_H
SoSFVec3f
The SoSFVec3f class is a container for an SbVec3f vector.
Definition: SoSFVec3f.h:31
SoDirectionalLight
The SoDirectionalLight class is a node type for specifying directional light sources.
Definition: SoDirectionalLight.h:31
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
SbColor4f::setRGB
SbColor4f & setRGB(const SbColor &col)
Definition: SbColor4f.cpp:198
SoDirectionalLight::SoDirectionalLight
SoDirectionalLight(void)
Definition: SoDirectionalLight.cpp:118
SoDirectionalLight::~SoDirectionalLight
virtual ~SoDirectionalLight()
Definition: SoDirectionalLight.cpp:128
SbVec4f::getValue
const float * getValue(void) const
Definition: SbVec4f.cpp:157
SbColor4f
The SbColor4f class contains the red, green, blue and alpha components which make up a color value.
Definition: SbColor4f.h:32
SoNode::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNode.cpp:904
SoNode::VRML1
@ VRML1
Definition: SoNode.h:61
SoLight::color
SoSFColor color
Definition: SoLight.h:42
SoDirectionalLight::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoDirectionalLight.cpp:143
SoDirectionalLight::direction
SoSFVec3f direction
Definition: SoDirectionalLight.h:40
SoDebugError::postWarning
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
SoLight::intensity
SoSFFloat intensity
Definition: SoLight.h:41
SoBase
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SbColor4f::getValue
const float * getValue() const
Definition: SbColor4f.cpp:145
SbVec3f::normalize
float normalize(void)
Definition: SbVec3f.cpp:436
SoLight
The SoLight class is the base class for light emitting nodes.
Definition: SoLight.h:32
SoGLRenderAction
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
SoLight::on
SoSFBool on
Definition: SoLight.h:40
SbVec4f
The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition: SbVec4f.h:34

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17