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

#include <rect3ddiagram.h>

Inheritance diagram for Rect3DDiagram:
Diagram Element

Public Member Functions

 Rect3DDiagram (int _cx=0, int _cy=0)
 
 ~Rect3DDiagram ()
 
DiagramnewOne ()
 
int calcDiagram ()
 
void calcLimits ()
 
void calcCoordinate (double *&, double *&, double *&, float *, float *, Axis *)
 
void createAxisLabels ()
 
bool insideDiagram (float, float)
 
- Public Member Functions inherited from Diagram
 Diagram (int _cx=0, int _cy=0)
 
virtual ~Diagram ()
 
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)
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 

Static Public Member Functions

static Elementinfo (QString &, char *&, bool getNewOne=false)
 

Data Fields

tPoint3DMem
 
tPoint3DpMem
 
- Data Fields inherited from Diagram
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 calcData (Graph *)
 
- Protected Member Functions inherited from Diagram
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)
 
int regionCode (float, float)
 
virtual void clip (float *&)
 
void rectClip (float *&)
 

Private Member Functions

int calcAxis (Axis *, int, int, double, double, bool)
 
void createAxis (Axis *, bool, int, int, int, int)
 
void calcCoefficients ()
 
int calcCross (int *, int *)
 
double calcX_2D (double, double, double)
 
double calcY_2D (double, double, double)
 
double calcZ_2D (double, double, double)
 
bool isHidden (int, int, tBound *, char *)
 
void enlargeMemoryBlock (tPoint3D *&)
 
void calcLine (tPoint3D *&, tPoint3D *&, tBound *, char *)
 
void calcCoordinate3D (double, double, double, double, tPoint3D *, tPointZ *)
 
void removeHiddenLines (char *, tBound *)
 
void removeHiddenCross (int, int, int, int, char *, tBound *)
 

Static Private Member Functions

static int comparePoint3D (const void *, const void *)
 
static int comparePointZ (const void *, const void *)
 

Private Attributes

float xorig
 
float yorig
 
double cxx
 
double cxy
 
double cxz
 
double cyx
 
double cyy
 
double cyz
 
double czx
 
double czy
 
double czz
 
double scaleX
 
double scaleY
 

Detailed Description

Definition at line 39 of file rect3ddiagram.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file rect3ddiagram.cpp.

Rect3DDiagram::~Rect3DDiagram ( )

Definition at line 52 of file rect3ddiagram.cpp.

Member Function Documentation

int Rect3DDiagram::calcAxis ( Axis Axis,
int  x,
int  y,
double  xD,
double  phi,
bool  Right 
)
private

Definition at line 626 of file rect3ddiagram.cpp.

void Rect3DDiagram::calcCoefficients ( )
private

Definition at line 58 of file rect3ddiagram.cpp.

void Rect3DDiagram::calcCoordinate ( double *&  xD,
double *&  zD,
double *&  yD,
float *  px,
float *  py,
Axis  
)
virtual

Reimplemented from Diagram.

Definition at line 134 of file rect3ddiagram.cpp.

void Rect3DDiagram::calcCoordinate3D ( double  x,
double  y,
double  zr,
double  zi,
tPoint3D p,
tPointZ pz 
)
private

Definition at line 186 of file rect3ddiagram.cpp.

int Rect3DDiagram::calcCross ( int *  Xses,
int *  Yses 
)
private

Definition at line 97 of file rect3ddiagram.cpp.

void Rect3DDiagram::calcData ( Graph g)
protectedvirtual

Reimplemented from Diagram.

Definition at line 932 of file rect3ddiagram.cpp.

int Rect3DDiagram::calcDiagram ( )
virtual

Reimplemented from Diagram.

Definition at line 781 of file rect3ddiagram.cpp.

void Rect3DDiagram::calcLimits ( )
virtual

Reimplemented from Diagram.

Definition at line 589 of file rect3ddiagram.cpp.

void Rect3DDiagram::calcLine ( tPoint3D *&  p,
tPoint3D *&  MemEnd,
tBound Bounds,
char *  zBuffer 
)
private

Definition at line 260 of file rect3ddiagram.cpp.

double Rect3DDiagram::calcX_2D ( double  x,
double  y,
double  z 
)
private

Definition at line 76 of file rect3ddiagram.cpp.

double Rect3DDiagram::calcY_2D ( double  x,
double  y,
double  z 
)
private

Definition at line 82 of file rect3ddiagram.cpp.

double Rect3DDiagram::calcZ_2D ( double  x,
double  y,
double  z 
)
private

Definition at line 88 of file rect3ddiagram.cpp.

int Rect3DDiagram::comparePoint3D ( const void *  Point1,
const void *  Point2 
)
staticprivate

Definition at line 341 of file rect3ddiagram.cpp.

int Rect3DDiagram::comparePointZ ( const void *  Point1,
const void *  Point2 
)
staticprivate

Definition at line 345 of file rect3ddiagram.cpp.

void Rect3DDiagram::createAxis ( Axis Axis,
bool  Right,
int  x1_,
int  y1_,
int  x2_,
int  y2_ 
)
private

Definition at line 716 of file rect3ddiagram.cpp.

void Rect3DDiagram::createAxisLabels ( )
virtual

Reimplemented from Diagram.

Definition at line 1118 of file rect3ddiagram.cpp.

void Rect3DDiagram::enlargeMemoryBlock ( tPoint3D *&  MemEnd)
private

Definition at line 242 of file rect3ddiagram.cpp.

Element * Rect3DDiagram::info ( QString &  Name,
char *&  BitmapFile,
bool  getNewOne = false 
)
static

Definition at line 1138 of file rect3ddiagram.cpp.

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

Reimplemented from Diagram.

Definition at line 1126 of file rect3ddiagram.cpp.

bool Rect3DDiagram::isHidden ( int  x,
int  y,
tBound Bounds,
char *  zBuffer 
)
private

Definition at line 230 of file rect3ddiagram.cpp.

Diagram * Rect3DDiagram::newOne ( )
virtual

Reimplemented from Diagram.

Definition at line 1132 of file rect3ddiagram.cpp.

void Rect3DDiagram::removeHiddenCross ( int  x1_,
int  y1_,
int  x2_,
int  y2_,
char *  zBuffer,
tBound Bounds 
)
private

Definition at line 559 of file rect3ddiagram.cpp.

void Rect3DDiagram::removeHiddenLines ( char *  zBuffer,
tBound Bounds 
)
private

Definition at line 354 of file rect3ddiagram.cpp.

Field Documentation

double Rect3DDiagram::cxx
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::cxy
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::cxz
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::cyx
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::cyy
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::cyz
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::czx
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::czy
private

Definition at line 81 of file rect3ddiagram.h.

double Rect3DDiagram::czz
private

Definition at line 81 of file rect3ddiagram.h.

tPoint3D* Rect3DDiagram::Mem

Definition at line 54 of file rect3ddiagram.h.

tPoint3D* Rect3DDiagram::pMem

Definition at line 55 of file rect3ddiagram.h.

double Rect3DDiagram::scaleX
private

Definition at line 82 of file rect3ddiagram.h.

double Rect3DDiagram::scaleY
private

Definition at line 82 of file rect3ddiagram.h.

float Rect3DDiagram::xorig
private

Definition at line 80 of file rect3ddiagram.h.

float Rect3DDiagram::yorig
private

Definition at line 80 of file rect3ddiagram.h.


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