HyperspaceExplorer 0.7.1
Object.h
00001 /*
00002 Hyperspace Explorer - visualizing higher-dimensional geometry
00003 Copyright (C) 2010  Lene Preuss <lene.preuss@gmail.com>
00004 
00005 This program is free software; you can redistribute it and/or modify
00006 it under the terms of the GNU General Public License as published by
00007 the Free Software Foundation; either version 2 of the License, or
00008 (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 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, write to the Free Software Foundation, Inc.,
00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018 
00019 */
00020 
00021 #if(!defined OBJECT_H)
00022 #define OBJECT_H
00023 
00024 #include "FunctionHolder.h"
00025 
00026 #include "ParametricFunction.h"
00027 #include "MultiDimensionalVector.h"
00028 
00030 
00037 class Object: public VertexHolder<4, 1, double> {
00038     
00039 public:
00040 
00041     Object (unsigned, unsigned);
00042     virtual ~Object () { }
00043     virtual void ReInit (double, double, double,
00044                          double, double, double,
00045                          double, double, double);
00046     virtual void calibrateColors();
00047 
00048     virtual void Draw (UI::View *);
00049 
00051     virtual unsigned getDefinitionSpaceDimensions() { return 0; }
00052 
00053 protected:
00054     virtual void Initialize();
00055 
00057     VecMath::MultiDimensionalVector<unsigned, 2> Surface;
00058 
00060     void setX(unsigned i, const VecMath::Vector<4, double> &x);
00061 
00062     using VertexHolder<4, 1, double>::setX;
00063 
00064     void clearAndResizeX(unsigned size);
00065     
00066 };
00067 
00068 namespace {
00069   static DisplayableClass displayable_class_object(
00070     "Object", "Geometrical object", "Displayable"
00071   );
00072 }
00073 
00074 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:15 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo