All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Signals | Public Member Functions | Protected Member Functions
SciFigs::PolarGridPlot Class Reference

A PolarGridPlot is a layer to draw polar colored grids. More...

#include <PolarGridPlot.h>

Inheritance diagram for SciFigs::PolarGridPlot:
SciFigs::GridPlot SciFigs::GraphContentLayer QGpGuiTools::PropertyItem QGpCoreTools::XMLClass

List of all members.

Signals

void clicked (double r, double phi)

Public Member Functions

virtual bool mouseReleaseEvent (QMouseEvent *e, int)
 PolarGridPlot (AxisWindow *parent)
 ~PolarGridPlot ()

Protected Member Functions

virtual void paintData (const LayerPainterRequest &lp, QPainter &p, double dotpercm) const

Detailed Description

A PolarGridPlot is a layer to draw polar colored grids.


Constructor & Destructor Documentation

References TRACE.

                                                :
    GridPlot(parent)
{
  TRACE;
  _theGrid=new Grid2D<double>;
}

References TRACE.

{
  TRACE;
  delete _theGrid;
}

Member Function Documentation

void SciFigs::PolarGridPlot::clicked ( double  r,
double  phi 
) [signal]

Referenced by mouseReleaseEvent().

bool SciFigs::PolarGridPlot::mouseReleaseEvent ( QMouseEvent *  e,
int   
) [virtual]

Reimplemented from SciFigs::GraphContentLayer.

References QGpCoreTools::Point2D::azimuthTo(), clicked(), QGpCoreTools::Point2D::distanceTo(), SciFigs::GraphContentLayer::graphContent(), SciFigs::GraphContent::options(), SciFigs::GraphContentOptions::s2r2D(), and TRACE.

{
  TRACE;
  if(e->buttons() & Qt::LeftButton) {
    Point2D p=graphContent()->options().s2r2D(e->pos());
    Point2D origin(0,0);
    emit clicked(origin.distanceTo(p),origin.azimuthTo(p));
  }
  return true;
}
void SciFigs::PolarGridPlot::paintData ( const LayerPainterRequest lp,
QPainter &  p,
double  dotpercm 
) const [protected, virtual]

Implements SciFigs::GraphContentLayer.

References TRACE.

{
  TRACE;
  // Find the visible limits and draw the grid
  Rect limits;
  grid2DPolarLimits(lp, limits);
  drawGrid2DPolarBlock(lp, p, limits);
  drawCircularGridLines(lp, p,limits);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines