Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields | Protected Member Functions | Private Attributes
Diagram Class Reference

#include <diagram.h>

Inheritance diagram for Diagram:
Element CurveDiagram PolarDiagram PSDiagram Rect3DDiagram RectDiagram SmithDiagram TabDiagram TimingDiagram TruthDiagram

Public Member Functions

 Diagram (int _cx=0, int _cy=0)
 
virtual ~Diagram ()
 
virtual DiagramnewOne ()
 
virtual int calcDiagram ()
 
virtual void calcCoordinate (double *&, double *&, double *&, float *, float *, Axis *)
 
virtual void calcLimits ()
 
virtual void paint (ViewPainter *)
 
void setCenter (int, int, bool relative=false)
 
void getCenter (int &, int &)
 
void paintScheme (Schematic *)
 
void Bounding (int &, int &, int &, int &)
 
bool getSelected (int, int)
 
bool resizeTouched (float, float, float)
 
QString save ()
 
bool load (const QString &, QTextStream *)
 
void getAxisLimits (Graph *)
 
void updateGraphData ()
 
void loadGraphData (const QString &)
 
void recalcGraphData ()
 
int loadVarData (const QString &, Graph *)
 
int loadIndepVarData (const QString &, char *, Axis *, Graph *)
 
bool sameDependencies (Graph *, Graph *)
 
int checkColumnWidth (const QString &, const QFontMetrics &, int, int, int)
 
virtual bool insideDiagram (float, float)
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 

Data Fields

QString Name
 
QPen GridPen
 
Q3PtrList< GraphGraphs
 
Q3PtrList< struct ArcArcs
 
Q3PtrList< LineLines
 
Q3PtrList< TextTexts
 
int x3
 
int y3
 
Axis xAxis
 
Axis yAxis
 
Axis zAxis
 
int State
 
bool hideLines
 
int rotX
 
int rotY
 
int rotZ
 
- Data Fields inherited from Element
bool isSelected
 
int Type
 
int cx
 
int cy
 
int x1
 
int y1
 
int x2
 
int y2
 

Protected Member Functions

void calcSmithAxisScale (Axis *, int &, int &)
 
void createSmithChart (Axis *, int Mode=7)
 
void calcPolarAxisScale (Axis *, double &, double &, double &)
 
void createPolarDiagram (Axis *, int Mode=3)
 
bool calcAxisScale (Axis *, double &, double &, double &, double &, double)
 
bool calcAxisLogScale (Axis *, int &, double &, double &, double &, int)
 
bool calcYAxis (Axis *, int)
 
virtual void createAxisLabels ()
 
int regionCode (float, float)
 
virtual void clip (float *&)
 
void rectClip (float *&)
 
virtual void calcData (Graph *)
 

Private Attributes

int Bounding_x1
 
int Bounding_x2
 
int Bounding_y1
 
int Bounding_y2
 

Detailed Description

Definition at line 60 of file diagram.h.

Constructor & Destructor Documentation

Diagram::Diagram ( int  _cx = 0,
int  _cy = 0 
)

Definition at line 45 of file diagram.cpp.

Diagram::~Diagram ( )
virtual

Definition at line 81 of file diagram.cpp.

Member Function Documentation

void Diagram::Bounding ( int &  _x1,
int &  _y1,
int &  _x2,
int &  _y2 
)

Definition at line 622 of file diagram.cpp.

bool Diagram::calcAxisLogScale ( Axis Axis,
int &  z,
double &  zD,
double &  zDstep,
double &  corr,
int  len 
)
protected

Definition at line 1783 of file diagram.cpp.

bool Diagram::calcAxisScale ( Axis Axis,
double &  GridNum,
double &  zD,
double &  zDstep,
double &  GridStep,
double  Dist 
)
protected

Definition at line 1665 of file diagram.cpp.

virtual void Diagram::calcCoordinate ( double *&  ,
double *&  ,
double *&  ,
float *  ,
float *  ,
Axis  
)
inlinevirtual

Reimplemented in Rect3DDiagram, PSDiagram, SmithDiagram, CurveDiagram, PolarDiagram, and RectDiagram.

Definition at line 68 of file diagram.h.

void Diagram::calcData ( Graph g)
protectedvirtual

Reimplemented in Rect3DDiagram, and TabDiagram.

Definition at line 464 of file diagram.cpp.

virtual int Diagram::calcDiagram ( )
inlinevirtual
virtual void Diagram::calcLimits ( )
inlinevirtual

Reimplemented in Rect3DDiagram, PSDiagram, SmithDiagram, CurveDiagram, PolarDiagram, and RectDiagram.

Definition at line 69 of file diagram.h.

void Diagram::calcPolarAxisScale ( Axis Axis,
double &  numGrids,
double &  GridStep,
double &  zD 
)
protected

Definition at line 1552 of file diagram.cpp.

void Diagram::calcSmithAxisScale ( Axis Axis,
int &  GridX,
int &  GridY 
)
protected

Definition at line 1395 of file diagram.cpp.

bool Diagram::calcYAxis ( Axis Axis,
int  x0 
)
protected

Definition at line 1874 of file diagram.cpp.

int Diagram::checkColumnWidth ( const QString &  Str,
const QFontMetrics &  metrics,
int  colWidth,
int  x,
int  y 
)

Definition at line 1154 of file diagram.cpp.

void Diagram::clip ( float *&  p)
protectedvirtual

Reimplemented in CurveDiagram, and RectDiagram.

Definition at line 395 of file diagram.cpp.

void Diagram::createAxisLabels ( )
protectedvirtual

Reimplemented in Rect3DDiagram, and TabDiagram.

Definition at line 157 of file diagram.cpp.

void Diagram::createPolarDiagram ( Axis Axis,
int  Mode = 3 
)
protected

Definition at line 1589 of file diagram.cpp.

void Diagram::createSmithChart ( Axis Axis,
int  Mode = 7 
)
protected

Definition at line 1415 of file diagram.cpp.

void Diagram::getAxisLimits ( Graph pg)

Definition at line 661 of file diagram.cpp.

void Diagram::getCenter ( int &  x,
int &  y 
)
virtual

Reimplemented from Element.

Definition at line 1184 of file diagram.cpp.

bool Diagram::getSelected ( int  x_,
int  y_ 
)

Definition at line 631 of file diagram.cpp.

bool Diagram::insideDiagram ( float  x,
float  y 
)
virtual

Reimplemented in Rect3DDiagram, CurveDiagram, and RectDiagram.

Definition at line 305 of file diagram.cpp.

bool Diagram::load ( const QString &  Line,
QTextStream *  stream 
)

Definition at line 1243 of file diagram.cpp.

void Diagram::loadGraphData ( const QString &  defaultDataSet)

Definition at line 724 of file diagram.cpp.

int Diagram::loadIndepVarData ( const QString &  Variable,
char *  FileString,
Axis pa,
Graph pg 
)

Definition at line 1049 of file diagram.cpp.

int Diagram::loadVarData ( const QString &  fileName,
Graph g 
)

Definition at line 828 of file diagram.cpp.

Diagram * Diagram::newOne ( )
virtual
void Diagram::paint ( ViewPainter p)
virtual

Reimplemented in TabDiagram, and TimingDiagram.

Definition at line 87 of file diagram.cpp.

void Diagram::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 150 of file diagram.cpp.

void Diagram::recalcGraphData ( )

Definition at line 769 of file diagram.cpp.

void Diagram::rectClip ( float *&  p)
protected

Definition at line 315 of file diagram.cpp.

int Diagram::regionCode ( float  x,
float  y 
)
protected

Definition at line 287 of file diagram.cpp.

bool Diagram::resizeTouched ( float  fX,
float  fY,
float  len 
)

Definition at line 642 of file diagram.cpp.

bool Diagram::sameDependencies ( Graph g1,
Graph g2 
)

Definition at line 1136 of file diagram.cpp.

QString Diagram::save ( )

Definition at line 1197 of file diagram.cpp.

void Diagram::setCenter ( int  x,
int  y,
bool  relative = false 
)
virtual

Reimplemented from Element.

Definition at line 1173 of file diagram.cpp.

void Diagram::updateGraphData ( )

Definition at line 800 of file diagram.cpp.

Field Documentation

Q3PtrList<struct Arc> Diagram::Arcs

Definition at line 96 of file diagram.h.

int Diagram::Bounding_x1
private

Definition at line 125 of file diagram.h.

int Diagram::Bounding_x2
private

Definition at line 125 of file diagram.h.

int Diagram::Bounding_y1
private

Definition at line 125 of file diagram.h.

int Diagram::Bounding_y2
private

Definition at line 125 of file diagram.h.

Q3PtrList<Graph> Diagram::Graphs

Definition at line 95 of file diagram.h.

QPen Diagram::GridPen

Definition at line 93 of file diagram.h.

bool Diagram::hideLines

Definition at line 104 of file diagram.h.

Q3PtrList<Line> Diagram::Lines

Definition at line 97 of file diagram.h.

QString Diagram::Name

Definition at line 92 of file diagram.h.

int Diagram::rotX

Definition at line 105 of file diagram.h.

int Diagram::rotY

Definition at line 105 of file diagram.h.

int Diagram::rotZ

Definition at line 105 of file diagram.h.

int Diagram::State

Definition at line 102 of file diagram.h.

Q3PtrList<Text> Diagram::Texts

Definition at line 98 of file diagram.h.

int Diagram::x3

Definition at line 100 of file diagram.h.

Axis Diagram::xAxis

Definition at line 101 of file diagram.h.

int Diagram::y3

Definition at line 100 of file diagram.h.

Axis Diagram::yAxis

Definition at line 101 of file diagram.h.

Axis Diagram::zAxis

Definition at line 101 of file diagram.h.


The documentation for this class was generated from the following files: