00001 /* 00002 * Ellipsoid.h 00003 * Copyright (C) James Goppert 2009 <jgoppert@users.sourceforge.net> 00004 * 00005 * Ellipsoid.h is free software: you can redistribute it and/or modify it 00006 * under the terms of the GNU General Public License as published by the 00007 * Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * Ellipsoid.h is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 * See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef Ellipsoid_H 00020 #define Ellipsoid_H 00021 00022 #include "PointCloud.h" 00023 #include "uvsim/utilities/constants.h" 00024 00025 namespace uvsim 00026 { 00027 00028 class Ellipsoid : public PointCloud 00029 { 00030 public: 00031 Ellipsoid(osg::Vec3d radii, osg::Vec3d center, int spriteSize=3, osg::Vec4d color=osg::Vec4d(0,1,0,0)); 00032 virtual ~Ellipsoid(); 00033 osg::ref_ptr<PointCloud> pointCloud; 00034 osg::ref_ptr<osg::Vec3Array> points; 00035 osg::ref_ptr<osg::Vec4Array> colors; 00036 }; 00037 00038 } // uvsim 00039 00040 #endif 00041 00042 // vim:ts=4:sw=4