LightPointSpriteDrawable.h

00001 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
00002  *
00003  * This library is open source and may be redistributed and/or modified under  
00004  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
00005  * (at your option) any later version.  The full license is in LICENSE file
00006  * included with this distribution, and on the openscenegraph.org website.
00007  * 
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
00011  * OpenSceneGraph Public License for more details.
00012 */
00013 
00014 #ifndef OSGSIM_LIGHTPOINTSPRITEDRAWABLE
00015 #define OSGSIM_LIGHTPOINTSPRITEDRAWABLE 1
00016 
00017 #include <osgSim/Export>
00018 
00019 #include <osg/Drawable>
00020 #include "LightPointDrawable.h"
00021 #include <osg/PointSprite>
00022 
00023 namespace osgSim {
00024 
00025 
00026 class OSGSIM_EXPORT LightPointSpriteDrawable : public osgSim::LightPointDrawable
00027 {
00028     public :
00029 
00030         LightPointSpriteDrawable();
00031         
00033         LightPointSpriteDrawable(const LightPointSpriteDrawable&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
00034 
00035         virtual osg::Object* cloneType() const { return new LightPointSpriteDrawable(); }
00036         virtual osg::Object* clone(const osg::CopyOp&) const { return new LightPointSpriteDrawable(); }
00037         virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const LightPointSpriteDrawable*>(obj)!=NULL; }
00038         virtual const char* className() const { return "LightPointSpriteDrawable"; }
00039 
00040         
00042         virtual void drawImplementation(osg::State& state) const;
00043 
00044 
00045     protected:
00046     
00047         virtual ~LightPointSpriteDrawable() {}
00048 
00049         osg::ref_ptr<osg::PointSprite>        _sprite;
00050 
00051 };
00052 
00053 }
00054 
00055 #endif
00056 

Generated on Mon Dec 17 09:30:54 2007 for SimGear by  doxygen 1.5.1