openscenegraph
LightPoint
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGSIM_LIGHTPOINT
15#define OSGSIM_LIGHTPOINT 1
16
17#include <osgSim/Export>
18#include <osgSim/Sector>
19#include <osgSim/BlinkSequence>
20
21#include <osg/Quat>
22#include <osg/Vec3>
23#include <osg/Vec4>
24
25namespace osgSim {
26
27
29{
30 public:
31
33 {
35 BLENDED
36 };
37
39
40 LightPoint(const osg::Vec3& position,
41 const osg::Vec4& color);
42
43 LightPoint(bool on,
44 const osg::Vec3& position,
45 const osg::Vec4& color,
46 float intensity=1.0f,
47 float radius=1.0f,
48 Sector* sector=0,
49 BlinkSequence* blinkSequence=0,
50 BlendingMode blendingMode=BLENDED);
51
52
54
55 LightPoint& operator = (const LightPoint& lp);
56
57
58 bool _on;
62 float _radius;
63
66
68};
69
70}
71
72#endif
Definition BlinkSequence:47
Definition LightPoint:29
float _radius
Definition LightPoint:62
BlendingMode
Definition LightPoint:33
@ ADDITIVE
Definition LightPoint:34
bool _on
Definition LightPoint:58
LightPoint(const LightPoint &lp)
LightPoint(bool on, const osg::Vec3 &position, const osg::Vec4 &color, float intensity=1.0f, float radius=1.0f, Sector *sector=0, BlinkSequence *blinkSequence=0, BlendingMode blendingMode=BLENDED)
osg::ref_ptr< Sector > _sector
Definition LightPoint:64
osg::Vec4 _color
Definition LightPoint:60
osg::Vec3 _position
Definition LightPoint:59
osg::ref_ptr< BlinkSequence > _blinkSequence
Definition LightPoint:65
float _intensity
Definition LightPoint:61
LightPoint(const osg::Vec3 &position, const osg::Vec4 &color)
BlendingMode _blendingMode
Definition LightPoint:67
Definition Sector:29
Definition Vec3f:29
Definition Vec4f:28
Definition ref_ptr:32
Definition BlinkSequence:27
#define OSGSIM_EXPORT
Definition osgSim/Export:38