casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DSScreenEllipse.h
Go to the documentation of this file.
00001 //# DSScreenEllipse.h : Implementation of a relative screen pos. DSEllipse
00002 //# Copyright (C) 1998,1999,2000,2001,2002
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id: 
00027 #ifndef TRIALDISPLAY_DSSCREENELLIPSE_H
00028 #define TRIALDISPLAY_DSSCREENELLIPSE_H
00029 
00030 #include <casa/aips.h>
00031 #include <casa/Arrays/Vector.h> 
00032 #include <casa/Arrays/Matrix.h>
00033 
00034 #include <display/DisplayShapes/DSEllipse.h>
00035 #include <display/DisplayShapes/DisplayShapeWithCoords.h>
00036 
00037 // <summary>
00038 // Implementation of a relative screen pos. DSEllipse
00039 // </summary>
00040 
00041 namespace casa { //# NAMESPACE CASA - BEGIN
00042 
00043 class DSPixelEllipse;
00044 class DSWorldEllipse;
00045 class PixelCanvas;
00046 
00047 class DSScreenEllipse : public DSEllipse, public DisplayShapeWithCoords {
00048 
00049 public:
00050   
00051   DSScreenEllipse();
00052   DSScreenEllipse(const Record& setting, PixelCanvas* pc);
00053   DSScreenEllipse(DSPixelEllipse& other, PixelCanvas* pc);
00054   DSScreenEllipse(DSWorldEllipse& other);
00055   
00056   virtual ~DSScreenEllipse();
00057 
00058   virtual void recalculateScreenPosition();
00059   virtual Bool setOptions(const Record& settings);
00060   virtual Record getOptions();
00061 
00062   virtual void move(const Float& dX, const Float& dy);
00063   virtual void setCenter(const Float& xPos, const Float& yPos);
00064   virtual void rotate(const Float& angle);
00065   virtual void changePoint(const Vector<Float>&pos, const Int n);
00066   virtual void changePoint(const Vector<Float>& pos);
00067   // PLUS OTHERS! :)  change point etc
00068   
00069   virtual Record getRawOptions() {
00070     return DSEllipse::getOptions();
00071   }
00072 
00073   virtual void updateRelative();
00074 
00075 private:
00076   PixelCanvas* itsPC;
00077   Vector<Float> itsRelativeCenter;
00078 
00079   Float itsRelWidth;
00080   Float itsRelHeight;
00081   
00082 };
00083 
00084 } //# NAMESPACE CASA - END
00085 
00086 #endif 
00087 
00088 
00089