My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Diagram Class Reference

#include <diagram.h>

Inheritance diagram for Diagram:
Inheritance graph
[legend]
Collaboration diagram for Diagram:
Collaboration graph
[legend]

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 (QPainter *)
 
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 ()
 

Public Attributes

QString Name
 
QPen GridPen
 
QPtrList< GraphGraphs
 
QPtrList< struct ArcArcs
 
QPtrList< LineLines
 
QPtrList< TextTexts
 
int x3
 
int y3
 
Axis xAxis
 
Axis yAxis
 
Axis zAxis
 
int State
 
bool hideLines
 
int rotX
 
int rotY
 
int rotZ
 
- Public Attributes 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 *)
 

Detailed Description

Definition at line 57 of file diagram.h.

Constructor & Destructor Documentation

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

Definition at line 65 of file diagram.cpp.

Diagram::~Diagram ( )
virtual

Definition at line 101 of file diagram.cpp.

Member Function Documentation

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

Definition at line 637 of file diagram.cpp.

Here is the caller graph for this function:

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

Definition at line 1797 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1679 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 65 of file diagram.h.

Here is the caller graph for this function:

void Diagram::calcData ( Graph g)
protectedvirtual

Reimplemented in Rect3DDiagram, and TabDiagram.

Definition at line 479 of file diagram.cpp.

Here is the call graph for this function:

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

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

Definition at line 66 of file diagram.h.

Here is the caller graph for this function:

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

Definition at line 1566 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1409 of file diagram.cpp.

Here is the caller graph for this function:

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

Definition at line 1888 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1169 of file diagram.cpp.

Here is the caller graph for this function:

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

Reimplemented in CurveDiagram, and RectDiagram.

Definition at line 410 of file diagram.cpp.

Here is the call graph for this function:

void Diagram::createAxisLabels ( )
protectedvirtual

Reimplemented in Rect3DDiagram, and TabDiagram.

Definition at line 172 of file diagram.cpp.

Here is the call graph for this function:

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

Definition at line 1603 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1429 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Diagram::getAxisLimits ( Graph pg)

Definition at line 676 of file diagram.cpp.

Here is the call graph for this function:

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

Reimplemented from Element.

Definition at line 1198 of file diagram.cpp.

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

Definition at line 646 of file diagram.cpp.

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

Reimplemented in Rect3DDiagram, CurveDiagram, and RectDiagram.

Definition at line 320 of file diagram.cpp.

Here is the caller graph for this function:

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

Definition at line 1257 of file diagram.cpp.

Here is the call graph for this function:

void Diagram::loadGraphData ( const QString &  defaultDataSet)

Definition at line 739 of file diagram.cpp.

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

Definition at line 1064 of file diagram.cpp.

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

Definition at line 843 of file diagram.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Diagram * Diagram::newOne ( )
virtual

Reimplemented in Rect3DDiagram, PSDiagram, CurveDiagram, PolarDiagram, RectDiagram, SmithDiagram, TabDiagram, TimingDiagram, and TruthDiagram.

Definition at line 1205 of file diagram.cpp.

Here is the caller graph for this function:

void Diagram::paint ( ViewPainter p)
virtual

Reimplemented in TabDiagram, and TimingDiagram.

Definition at line 107 of file diagram.cpp.

Here is the call graph for this function:

void Diagram::paintScheme ( QPainter *  p)
virtual

Reimplemented from Element.

Definition at line 165 of file diagram.cpp.

Here is the caller graph for this function:

void Diagram::recalcGraphData ( )

Definition at line 784 of file diagram.cpp.

Here is the caller graph for this function:

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

Definition at line 330 of file diagram.cpp.

Here is the caller graph for this function:

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

Definition at line 302 of file diagram.cpp.

Here is the caller graph for this function:

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

Definition at line 657 of file diagram.cpp.

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

Definition at line 1151 of file diagram.cpp.

Here is the caller graph for this function:

QString Diagram::save ( )

Definition at line 1211 of file diagram.cpp.

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

Reimplemented from Element.

Definition at line 1187 of file diagram.cpp.

void Diagram::updateGraphData ( )

Definition at line 815 of file diagram.cpp.

Here is the caller graph for this function:

Member Data Documentation

QPtrList<struct Arc> Diagram::Arcs

Definition at line 93 of file diagram.h.

QPtrList<Graph> Diagram::Graphs

Definition at line 92 of file diagram.h.

QPen Diagram::GridPen

Definition at line 90 of file diagram.h.

bool Diagram::hideLines

Definition at line 101 of file diagram.h.

QPtrList<Line> Diagram::Lines

Definition at line 94 of file diagram.h.

QString Diagram::Name

Definition at line 89 of file diagram.h.

int Diagram::rotX

Definition at line 102 of file diagram.h.

int Diagram::rotY

Definition at line 102 of file diagram.h.

int Diagram::rotZ

Definition at line 102 of file diagram.h.

int Diagram::State

Definition at line 99 of file diagram.h.

QPtrList<Text> Diagram::Texts

Definition at line 95 of file diagram.h.

int Diagram::x3

Definition at line 97 of file diagram.h.

Axis Diagram::xAxis

Definition at line 98 of file diagram.h.

int Diagram::y3

Definition at line 97 of file diagram.h.

Axis Diagram::yAxis

Definition at line 98 of file diagram.h.

Axis Diagram::zAxis

Definition at line 98 of file diagram.h.


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