mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00

the marker is attached to the graph, the graph knows the diagram. so the extra pointer is redundant/confusing.
43 lines
1.6 KiB
C++
43 lines
1.6 KiB
C++
/***************************************************************************
|
|
curvediagram.h
|
|
----------------
|
|
begin : Sat Apr 9 2005
|
|
copyright : (C) 2005 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 CURVEDIAGRAM_H
|
|
#define CURVEDIAGRAM_H
|
|
|
|
#include "diagram.h"
|
|
|
|
|
|
class CurveDiagram : public Diagram {
|
|
public:
|
|
CurveDiagram(int _cx=0, int _cy=0);
|
|
~CurveDiagram();
|
|
|
|
|
|
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;
|
|
void finishMarkerCoordinates(float&, float&) const;
|
|
bool insideDiagram(float, float) const;
|
|
|
|
protected:
|
|
void clip(Graph::iterator&) const;
|
|
};
|
|
|
|
#endif
|