Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXGLCone.h
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,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (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                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXGLCONE_H
00022 #define FXGLCONE_H
00023 
00024 #ifndef FXGLSHAPE_H
00025 #include "FXGLShape.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00032 class FXAPI FXGLCone : public FXGLShape {
00033   FXDECLARE(FXGLCone)
00034 public:
00035   FXfloat height;
00036   FXfloat radius;
00037 protected:
00038   FXGLCone();
00039   virtual void drawshape(FXGLViewer* viewer);
00040 public:
00041 
00043   FXGLCone(FXfloat x,FXfloat y,FXfloat z,FXfloat h=1.0f,FXfloat r=1.0f);
00044 
00046   FXGLCone(FXfloat x,FXfloat y,FXfloat z,FXfloat h,FXfloat r,const FXMaterial& mtl);
00047 
00049   FXGLCone(const FXGLCone& orig);
00050 
00052   virtual FXGLObject* copy();
00053 
00055   virtual void setRadius(FXfloat r);
00056   FXfloat getRadius() const { return radius; }
00057 
00059   virtual void setHeight(FXfloat h);
00060   FXfloat getHeight() const { return height; }
00061 
00063   virtual void save(FXStream& store) const;
00064 
00066   virtual void load(FXStream& store);
00067 
00069   virtual ~FXGLCone();
00070   };
00071 
00072 }
00073 
00074 #endif

Copyright © 1997-2011 Jeroen van der Zijp