root/OpenSceneGraph/trunk/src/osgSim/LightPoint.cpp @ 13041

Revision 13041, 2.3 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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#include <osgSim/LightPoint>
15
16using namespace osgSim;
17
18LightPoint::LightPoint():
19    _on(true),
20    _position(0.0f,0.0f,0.0f),
21    _color(1.0f,1.0f,1.0f,1.0f),
22    _intensity(1.0f),
23    _radius(1.0f),
24    _sector(0),
25    _blinkSequence(0),
26    _blendingMode(BLENDED)
27{
28}
29
30LightPoint::LightPoint(const osg::Vec3& position,const osg::Vec4& color):
31    _on(true),
32    _position(position),
33    _color(color),
34    _intensity(1.0f),
35    _radius(1.0f),
36    _sector(0),
37    _blinkSequence(0),
38    _blendingMode(BLENDED)
39{
40}
41
42LightPoint::LightPoint(bool                 on,
43                       const osg::Vec3&     position,
44                       const osg::Vec4&     color,
45                       float                intensity,
46                       float                radius,
47                       Sector*              sector,
48                       BlinkSequence*       blinkSequence,
49                       BlendingMode         blendingMode):
50    _on(on),
51    _position(position),
52    _color(color),
53    _intensity(intensity),
54    _radius(radius),
55    _sector(sector),
56    _blinkSequence(blinkSequence),
57    _blendingMode(blendingMode)
58{
59}
60
61LightPoint::LightPoint(const LightPoint& lp):
62    _on(lp._on),
63    _position(lp._position),
64    _color(lp._color),
65    _intensity(lp._intensity),
66    _radius(lp._radius),
67    _sector(lp._sector),
68    _blinkSequence(lp._blinkSequence),
69    _blendingMode(lp._blendingMode)
70{
71}
72
73LightPoint& LightPoint::operator = (const LightPoint& lp)
74{
75    _on = lp._on;
76    _position = lp._position;
77    _color = lp._color;
78    _intensity = lp._intensity;
79    _radius = lp._radius;
80    _sector = lp._sector;
81    _blinkSequence = lp._blinkSequence;
82    _blendingMode = lp._blendingMode;
83
84    return *this;
85}
Note: See TracBrowser for help on using the browser.