gxtransform.h

Go to the documentation of this file.
00001 
00005 
00006 //
00007 // Copyright (c) 2002-2004 California Institute of Technology
00008 // Copyright (c) 2004-2007 University of Southern California
00009 // Rob Peters <rjpeters at usc dot edu>
00010 //
00011 // created: Wed Nov 20 15:15:24 2002
00012 // commit: $Id: gxtransform.h 10065 2007-04-12 05:54:56Z rjpeters $
00013 // $HeadURL: file:///lab/rjpeters/svnrepo/code/trunk/groovx/src/gfx/gxtransform.h $
00014 //
00015 // --------------------------------------------------------------------
00016 //
00017 // This file is part of GroovX.
00018 //   [http://ilab.usc.edu/rjpeters/groovx/]
00019 //
00020 // GroovX is free software; you can redistribute it and/or modify it
00021 // under the terms of the GNU General Public License as published by
00022 // the Free Software Foundation; either version 2 of the License, or
00023 // (at your option) any later version.
00024 //
00025 // GroovX is distributed in the hope that it will be useful, but
00026 // WITHOUT ANY WARRANTY; without even the implied warranty of
00027 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00028 // General Public License for more details.
00029 //
00030 // You should have received a copy of the GNU General Public License
00031 // along with GroovX; if not, write to the Free Software Foundation,
00032 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00033 //
00035 
00036 #ifndef GROOVX_GFX_GXTRANSFORM_H_UTC20050626084024_DEFINED
00037 #define GROOVX_GFX_GXTRANSFORM_H_UTC20050626084024_DEFINED
00038 
00039 #include "gfx/gbvec.h"
00040 #include "gfx/gxnode.h"
00041 
00042 #include "io/fields.h"
00043 
00044 class GxTransformImpl;
00045 
00046 namespace geom
00047 {
00048   class txform;
00049 }
00050 
00052 
00059 
00060 
00061 class GxTransform : public GxNode, public FieldContainer
00062 {
00063 protected:
00065   GxTransform();
00066 
00067 public:
00069   static GxTransform* make();
00070 
00072   virtual ~GxTransform() throw();
00073 
00074   virtual io::version_id class_version_id() const;
00075   virtual void read_from(io::reader& reader);
00076   virtual void write_to(io::writer& writer) const;
00077 
00078 
00080   GbVec3<double> translation;
00081 
00083   GbVec3<double> scaling;
00084 
00086   GbVec3<double> rotationAxis;
00087 
00088 protected:
00090   double itsRotationAngle;
00091 
00093   int itsMtxMode;
00094 
00096   int itsJackSize;
00097 
00098 public:
00100   static const FieldMap& classFields();
00101 
00103   const geom::txform& getTxform() const;
00104 
00106   virtual void getBoundingCube(Gfx::Bbox& bbox) const;
00107 
00109   virtual void draw(Gfx::Canvas&) const;
00110 
00111 private:
00112   GxTransform(const GxTransform&);
00113   GxTransform& operator=(const GxTransform&);
00114 
00116   GxTransformImpl* const rep;
00117 
00118   friend class GxTransformImpl;
00119 };
00120 
00121 static const char __attribute__((used)) vcid_groovx_gfx_gxtransform_h_utc20050626084024[] = "$Id: gxtransform.h 10065 2007-04-12 05:54:56Z rjpeters $ $HeadURL: file:
00122 #endif // !GROOVX_GFX_GXTRANSFORM_H_UTC20050626084024_DEFINED

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:49:39 2008 by Doxygen version 1.5.5.