FXGLCone.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *                        O p e n G L   C o n e    O b j e c t                   *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1999,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (at your option) any later version.            *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXGLCone.h,v 1.17 2006/01/22 17:58:02 fox Exp $                          *
00023 ********************************************************************************/
00024 #ifndef FX_DISABLEGL
00025 
00026 #if FX_GRAPHINGMODULE
00027 
00028 #ifndef FXGLCONE_H
00029 #define FXGLCONE_H
00030 
00031 #ifndef FXGLSHAPE_H
00032 #include "FXGLShape.h"
00033 #endif
00034 
00035 namespace FX {
00036 
00037 
00039 class FXGRAPHINGMODULEAPI FXGLCone : public FXGLShape {
00040   FXDECLARE(FXGLCone)
00041 public:
00042   FXfloat height;
00043   FXfloat radius;
00044 protected:
00045   FXGLCone();
00046   virtual void drawshape(FXGLViewer* viewer);
00047 public:
00048 
00050   FXGLCone(FXfloat x,FXfloat y,FXfloat z,FXfloat h=1.0f,FXfloat r=1.0f);
00051 
00053   FXGLCone(FXfloat x,FXfloat y,FXfloat z,FXfloat h,FXfloat r,const FXMaterial& mtl);
00054 
00056   FXGLCone(const FXGLCone& orig);
00057 
00059   virtual FXGLObject* copy();
00060 
00062   void setRadius(FXfloat r){ radius=r; }
00063   FXfloat getRadius() const { return radius; }
00064 
00066   void setHeight(FXfloat h){ height=h; }
00067   FXfloat getHeight() const { return height; }
00068 
00070   virtual void save(FXStream& store) const;
00071 
00073   virtual void load(FXStream& store);
00074 
00076   virtual ~FXGLCone();
00077   };
00078 
00079 }
00080 
00081 #endif
00082 #endif
00083 #endif

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:22 2009 for TnFOX by doxygen v1.4.7