Qucs-GUI  0.0.19
Public Member Functions | Data Fields | Private Member Functions | Private Attributes
Marker Class Reference

The Marker class implements the marker object used for all the diagram. More...

#include <marker.h>

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

Public Member Functions

 Marker (Graph *pg_=0, int _nn=0, int cx_=0, int cy_=0)
 create a marker based on click position and the branch number.
 ~Marker ()
void createText ()
 (should) create marker label Text the screen position cx and cy from VarPos.
void makeInvalid ()
bool moveLeftRight (bool)
bool moveUpDown (bool)
void paint (ViewPainter *, int, int)
void paintScheme (QPainter *)
void setCenter (int, int, bool)
void Bounding (int &_x1, int &_y1, int &_x2, int &_y2)
QString save ()
bool load (const QString &Line)
bool getSelected (int, int)
MarkersameNewOne (Graph *)
void getTextSize ()
Graph const * graph () const
int precision () const
std::vector< double > const & varPos () const
const Diagramdiag () const
double powFreq () const
double powReal () const
double powImag () const

Data Fields

Graph const * pGraph
QString Text
bool transparent
int Precision
int numMode
double Z0

Private Member Functions

void initText (int)
 compute VarPos from branch number n and click position (cx, cy) this is done by recreating branch samples and comparing against click

Private Attributes

std::vector< double > VarPos
double VarDep [2]
float fCX
float fCY

Detailed Description

The Marker class implements the marker object used for all the diagram.

Definition at line 35 of file marker.h.


Constructor & Destructor Documentation

Marker::Marker ( Graph pg_ = 0,
int  branchNo = 0,
int  cx_ = 0,
int  cy_ = 0 
)

create a marker based on click position and the branch number.

the click position is used to compute the marker position. currently, the marker position is the sampling point closest to the click.

Definition at line 49 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 75 of file marker.cpp.


Member Function Documentation

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

Definition at line 440 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

(should) create marker label Text the screen position cx and cy from VarPos.

does a lot of fancy stuff to be sorted out.

Definition at line 169 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Diagram * Marker::diag ( ) const

Definition at line 541 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 529 of file marker.cpp.

Here is the caller graph for this function:

Definition at line 257 of file marker.cpp.

Here is the caller graph for this function:

Graph const* Marker::graph ( ) const [inline]

Definition at line 56 of file marker.h.

Here is the caller graph for this function:

void Marker::initText ( int  n) [private]

compute VarPos from branch number n and click position (cx, cy) this is done by recreating branch samples and comparing against click

FIXME: should use ScrPoints instead. do not call calcCoordinate from here!

Definition at line 86 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Marker::load ( const QString &  Line)

Definition at line 477 of file marker.cpp.

Definition at line 244 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Marker::moveLeftRight ( bool  left)

Definition at line 267 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Marker::moveUpDown ( bool  up)

Definition at line 296 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Marker::paint ( ViewPainter p,
int  x0,
int  y0 
)

Definition at line 350 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Marker::paintScheme ( QPainter *  p) [virtual]

Reimplemented from Element.

Definition at line 406 of file marker.cpp.

Here is the call graph for this function:

double Marker::powFreq ( ) const [inline]

Definition at line 61 of file marker.h.

Here is the caller graph for this function:

double Marker::powImag ( ) const [inline]

Definition at line 63 of file marker.h.

Here is the caller graph for this function:

double Marker::powReal ( ) const [inline]

Definition at line 62 of file marker.h.

Here is the caller graph for this function:

int Marker::precision ( ) const [inline]

Definition at line 57 of file marker.h.

Here is the caller graph for this function:

Marker * Marker::sameNewOne ( Graph pGraph_)

Definition at line 548 of file marker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Marker::save ( )

Definition at line 457 of file marker.cpp.

Here is the caller graph for this function:

void Marker::setCenter ( int  x,
int  y,
bool  relative 
) [virtual]

Reimplemented from Element.

Definition at line 429 of file marker.cpp.

std::vector<double> const& Marker::varPos ( ) const [inline]

Definition at line 58 of file marker.h.

Here is the caller graph for this function:


Field Documentation

float Marker::fCX [private]

Definition at line 71 of file marker.h.

float Marker::fCY [private]

Definition at line 71 of file marker.h.

Definition at line 79 of file marker.h.

Definition at line 66 of file marker.h.

Definition at line 78 of file marker.h.

QString Marker::Text

Definition at line 74 of file marker.h.

Definition at line 75 of file marker.h.

double Marker::VarDep[2] [private]

Definition at line 70 of file marker.h.

std::vector<double> Marker::VarPos [private]

Definition at line 69 of file marker.h.

double Marker::Z0

Definition at line 83 of file marker.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines