LightPoint
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGSIM_LIGHTPOINT
#define OSGSIM_LIGHTPOINT 1
#include <osgSim/Export>
#include <osgSim/Sector>
#include <osgSim/BlinkSequence>
#include <osg/Quat>
#include <osg/Vec3>
#include <osg/Vec4>
namespace osgSim {
class OSGSIM_EXPORT LightPoint
{
public:
enum BlendingMode
{
ADDITIVE,
BLENDED
};
LightPoint();
LightPoint(const osg::Vec3& position,
const osg::Vec4& color);
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);
LightPoint(const LightPoint& lp);
LightPoint& operator = (const LightPoint& lp);
bool _on;
osg::Vec3 _position;
osg::Vec4 _color;
float _intensity;
float _radius;
osg::ref_ptr<Sector> _sector;
osg::ref_ptr<BlinkSequence> _blinkSequence;
BlendingMode _blendingMode;
};
}
#endif
BlinkSequence
Quat
Sector
Vec3
Vec4
osgSim::BlinkSequence
Definition BlinkSequence:47
osgSim::LightPoint::_radius
float _radius
Definition LightPoint:62
osgSim::LightPoint::LightPoint
LightPoint()
osgSim::LightPoint::BlendingMode
BlendingMode
Definition LightPoint:33
osgSim::LightPoint::ADDITIVE
@ ADDITIVE
Definition LightPoint:34
osgSim::LightPoint::BLENDED
@ BLENDED
Definition LightPoint:35
osgSim::LightPoint::_on
bool _on
Definition LightPoint:58
osgSim::LightPoint::LightPoint
LightPoint(const LightPoint &lp)
osgSim::LightPoint::LightPoint
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)
osgSim::LightPoint::_sector
osg::ref_ptr< Sector > _sector
Definition LightPoint:64
osgSim::LightPoint::_color
osg::Vec4 _color
Definition LightPoint:60
osgSim::LightPoint::_position
osg::Vec3 _position
Definition LightPoint:59
osgSim::LightPoint::_blinkSequence
osg::ref_ptr< BlinkSequence > _blinkSequence
Definition LightPoint:65
osgSim::LightPoint::_intensity
float _intensity
Definition LightPoint:61
osgSim::LightPoint::LightPoint
LightPoint(const osg::Vec3 &position, const osg::Vec4 &color)
osgSim::LightPoint::_blendingMode
BlendingMode _blendingMode
Definition LightPoint:67
osgSim::Sector
Definition Sector:29
osg::ref_ptr
Definition ref_ptr:32
osgSim
Definition BlinkSequence:27
osg::Vec3
Vec3f Vec3
Definition Vec3:21
osg::Vec4
Vec4f Vec4
Definition Vec4:21
Export
OSGSIM_EXPORT
#define OSGSIM_EXPORT
Definition osgSim/Export:38