PSQt/include/DragCircle.h

Go to the documentation of this file.
00001 #ifndef PSQT_DRAGCIRCLE_H
00002 #define PSQT_DRAGCIRCLE_H
00003 
00004 //--------------------------
00005 #include "PSQt/DragBase.h"
00006 
00007 //#include <map>
00008 #include <iostream>    // std::cout
00009 #include <fstream>     // std::ifstream(fname)
00010 #include <sstream>     // stringstream
00011  
00012 namespace PSQt {
00013 
00014 //--------------------------
00015 
00016 // @addtogroup PSQt DragCircle
00017 
00018 /**
00019  *  @ingroup PSQt DragCircle
00020  *
00021  *  @brief Derived class from DragBase for draggable circle.
00022  *
00023  *  This software was developed for the LCLS project.  If you use all or 
00024  *  part of it, please give an appropriate acknowledgment.
00025  *
00026  *  @see DragBase, DragStore, WdgImageFigs, WdgImage
00027  *
00028  *  @version $Id: DragCircle.h 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU $
00029  *
00030  *  @author Mikhail Dubrovin
00031  *
00032  *
00033  *
00034  *
00035  *
00036  *  @anchor interface
00037  *  @par<interface> Interface Description
00038  * 
00039  *  @li  Include
00040  *  @code
00041  *  #include "PSQt/DragCircle.h"
00042  *  @endcode
00043  *
00044  *  @li Instatiation
00045  *  \n
00046  *  DragCircle inherits DragBase
00047  */
00048 
00049 //--------------------------
00050 
00051 class DragCircle : public DragBase
00052 {
00053  public:
00054 
00055   /**
00056    *  @brief DragCircle class for draggable circle
00057    *  
00058    *  @param[in] wimg - pointer to WdgImage
00059    *  @param[in] points - array of points which defines initial figure parameters
00060    */ 
00061     DragCircle(WdgImage* wimg=0, const QPointF* points=0); 
00062     virtual ~DragCircle(){}; 
00063 
00064     virtual void draw(const DRAGMODE& mode=DRAW);
00065     virtual bool contains(const QPointF& p);
00066     virtual void move(const QPointF& p);
00067     virtual void moveIsCompleted(const QPointF& p);
00068     virtual void create();
00069 
00070     virtual const QPointF& getCenter();
00071     virtual void print();
00072 
00073  protected:
00074 
00075  private:
00076     virtual const char* _name_(){return "DragCircle";}
00077     QPointF m_rad_raw;
00078 };
00079 
00080 //--------------------------
00081 
00082 } // namespace PSQt
00083 
00084 #endif // PSQT_DRAGCIRCLE_H
00085 //--------------------------
00086 //--------------------------
00087 //--------------------------
00088 

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7