qucs_s/qucs/diagrams/rectdiagram.h

45 lines
1.7 KiB
C++

/***************************************************************************
rectdiagram.h
---------------
begin : Thu Oct 2 2003
copyright : (C) 2003 by Michael Margraf
email : michael.margraf@alumni.tu-berlin.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef RECTDIAGRAM_H
#define RECTDIAGRAM_H
#include "diagram.h"
class RectDiagram : public Diagram {
public:
RectDiagram(int _cx=0, int _cy=0);
~RectDiagram();
Diagram* newOne();
static Element* info(QString&, char* &, bool getNewOne=false);
int calcDiagram();
void calcLimits();
void calcCoordinate(const double*, const double*, const double*, float*, float*, Axis const*) const;
MappedPoint pointToValue(const QPointF& point) override;
void setLimitsBySelectionRect(QRectF) override;
void finishMarkerCoordinates(float&, float&) const;
bool insideDiagram(float, float) const;
protected:
void clip(Graph::iterator &) const;
};
#endif