chassiscircular2.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
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 
00011 #ifndef CHASSISCIRCULAR2_H
00012 #define CHASSISCIRCULAR2_H
00013 
00014 #include "mechanicsitem.h"
00015 
00021 // hmm, doesn't seem to be enabled yet.
00022 
00023 class ChassisCircular2 : public MechanicsItem
00024 {
00025 public:
00026         ChassisCircular2( MechanicsDocument *mechanicsDocument, bool newItem, const char *id = 0 );
00027         ~ChassisCircular2();
00028         
00029         static Item* construct( ItemDocument *itemDocument, bool newItem, const char *id );
00030         static LibraryItem *libraryItem();
00031         
00032         virtual void advance( int phase );
00033         
00034 protected:
00035         virtual void itemResized();
00036         void drawShape( QPainter &p );
00037         
00038         double m_theta1; // Angle of rotation of wheel 1 (used for drawing)
00039         double m_theta2; // Angle of rotation of wheel 1 (used for drawing)
00040         
00041         QRect m_wheel1Pos; // Position of first wheel, with respect to top left of item
00042         QRect m_wheel2Pos; // Position of second wheel, with respect to top left of item
00043 };
00044 
00045 #endif

Generated on Tue May 8 17:05:28 2007 for KTechLab by  doxygen 1.5.1