OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osgSim
LightPoint.h
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
25
namespace
osgSim
{
26
27
28
class
OSGSIM_EXPORT
LightPoint
29
{
30
public
:
31
32
enum
BlendingMode
33
{
34
ADDITIVE
,
35
BLENDED
36
};
37
38
LightPoint
();
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
53
LightPoint
(
const
LightPoint
& lp);
54
55
LightPoint
& operator = (
const
LightPoint
& lp);
56
57
58
bool
_on
;
59
osg::Vec3
_position
;
60
osg::Vec4
_color
;
61
float
_intensity
;
62
float
_radius
;
63
64
osg::ref_ptr<Sector>
_sector
;
65
osg::ref_ptr<BlinkSequence>
_blinkSequence
;
66
67
BlendingMode
_blendingMode
;
68
};
69
70
}
71
72
#endif
OSGSIM_EXPORT
#define OSGSIM_EXPORT
Definition:
Export.h:38
osgSim
Definition:
BlinkSequence.h:27
osgSim::LightPoint::_blinkSequence
osg::ref_ptr< BlinkSequence > _blinkSequence
Definition:
LightPoint.h:65
osgSim::LightPoint
Definition:
LightPoint.h:28
osg::ref_ptr
Definition:
ref_ptr.h:25
osgSim::LightPoint::ADDITIVE
Definition:
LightPoint.h:34
osgSim::LightPoint::_position
osg::Vec3 _position
Definition:
LightPoint.h:59
osgSim::LightPoint::_radius
float _radius
Definition:
LightPoint.h:62
osgSim::LightPoint::_sector
osg::ref_ptr< Sector > _sector
Definition:
LightPoint.h:64
osgSim::LightPoint::_color
osg::Vec4 _color
Definition:
LightPoint.h:60
osg::Vec4f
Definition:
Vec4f.h:27
osgSim::LightPoint::_blendingMode
BlendingMode _blendingMode
Definition:
LightPoint.h:67
osgSim::LightPoint::_intensity
float _intensity
Definition:
LightPoint.h:61
osgSim::LightPoint::_on
bool _on
Definition:
LightPoint.h:58
osgSim::Sector
Definition:
Sector.h:28
osgSim::BlinkSequence
Definition:
BlinkSequence.h:46
osg::Vec3f
Definition:
Vec3f.h:28
osgSim::LightPoint::BlendingMode
BlendingMode
Definition:
LightPoint.h:32
Generated on Tue Oct 4 2016 19:20:48 for OSG by
1.8.8