28 #include <QTextStream>
31 #define MIN_SCROLLBAR_SIZE 8
33 #define INVALID_STR QObject::tr(" <invalid>")
37 #define FIT_MEMORY_SIZE \
40 tmp = p - g->ScrPoints; \
41 p = p_end = g->ScrPoints = (float*)realloc(g->ScrPoints, Size*sizeof(float)); \
68 (
double* &,
double* &,
double* &,
float*,
float*,
Axis*) {};
72 void setCenter(
int,
int,
bool relative=
false);
75 void Bounding(
int&,
int&,
int&,
int&);
79 bool load(
const QString&, QTextStream*);
96 Q3PtrList<struct Arc>
Arcs;
119 virtual void clip(
float* &);
Diagram(int _cx=0, int _cy=0)
virtual bool insideDiagram(float, float)
void getCenter(int &, int &)
Defines drawing elements for schematics.
int regionCode(float, float)
bool load(const QString &, QTextStream *)
virtual void createAxisLabels()
bool sameDependencies(Graph *, Graph *)
void setCenter(int, int, bool relative=false)
void getAxisLimits(Graph *)
virtual void calcLimits()
virtual void clip(float *&)
virtual void calcCoordinate(double *&, double *&, double *&, float *, float *, Axis *)
bool getSelected(int, int)
void createSmithChart(Axis *, int Mode=7)
void createPolarDiagram(Axis *, int Mode=3)
int loadVarData(const QString &, Graph *)
Q3PtrList< Graph > Graphs
Q3PtrList< struct Arc > Arcs
void Bounding(int &, int &, int &, int &)
int checkColumnWidth(const QString &, const QFontMetrics &, int, int, int)
bool calcAxisLogScale(Axis *, int &, double &, double &, double &, int)
Superclass of all schematic drawing elements.
virtual void paint(ViewPainter *)
virtual void calcData(Graph *)
bool calcAxisScale(Axis *, double &, double &, double &, double &, double)
virtual Diagram * newOne()
void loadGraphData(const QString &)
void calcSmithAxisScale(Axis *, int &, int &)
virtual int calcDiagram()
int loadIndepVarData(const QString &, char *, Axis *, Graph *)
void calcPolarAxisScale(Axis *, double &, double &, double &)
bool calcYAxis(Axis *, int)
void paintScheme(Schematic *)
bool resizeTouched(float, float, float)