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
Arrow Class Reference

#include <arrow.h>

Inheritance diagram for Arrow:
Painting Element

Public Member Functions

 Arrow ()
 
 ~Arrow ()
 
void paint (ViewPainter *)
 
void paintScheme (Schematic *)
 
void getCenter (int &, int &)
 
void setCenter (int, int, bool relative=false)
 
PaintingnewOne ()
 
bool load (const QString &)
 
QString save ()
 
QString saveCpp ()
 
QString saveJSON ()
 
void MouseMoving (Schematic *, int, int, int, int, Schematic *, int, int, bool)
 
bool MousePressing ()
 
bool getSelected (float, float, float)
 
void Bounding (int &, int &, int &, int &)
 
bool resizeTouched (float, float, float)
 
void MouseResizeMoving (int, int, Schematic *)
 
void rotate ()
 
void mirrorX ()
 
void mirrorY ()
 
bool Dialog ()
 
void calcArrowHead ()
 
- Public Member Functions inherited from Painting
 Painting ()
 
 ~Painting ()
 
QString toPenString (int)
 
QString toBrushString (int)
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 

Static Public Member Functions

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

Data Fields

QPen Pen
 
int Style
 
double Height
 
double Width
 
double Length
 
double beta
 
int xp1
 
int yp1
 
int xp2
 
int yp2
 
- Data Fields inherited from Painting
QString Name
 
int State
 
- Data Fields inherited from Element
bool isSelected
 
int Type
 
int cx
 
int cy
 
int x1
 
int y1
 
int x2
 
int y2
 

Detailed Description

Definition at line 26 of file arrow.h.

Constructor & Destructor Documentation

Arrow::Arrow ( )

Definition at line 30 of file arrow.cpp.

Arrow::~Arrow ( )

Definition at line 46 of file arrow.cpp.

Member Function Documentation

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

Reimplemented from Painting.

Definition at line 427 of file arrow.cpp.

void Arrow::calcArrowHead ( )

Definition at line 269 of file arrow.cpp.

bool Arrow::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 479 of file arrow.cpp.

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

Reimplemented from Painting.

Definition at line 114 of file arrow.cpp.

bool Arrow::getSelected ( float  fX,
float  fY,
float  w 
)
virtual

Reimplemented from Painting.

Definition at line 333 of file arrow.cpp.

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

Definition at line 135 of file arrow.cpp.

bool Arrow::load ( const QString &  s)
virtual

Reimplemented from Painting.

Definition at line 145 of file arrow.cpp.

void Arrow::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 458 of file arrow.cpp.

void Arrow::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 468 of file arrow.cpp.

void Arrow::MouseMoving ( Schematic paintScale,
int  ,
int  ,
int  gx,
int  gy,
Schematic p,
int  x,
int  y,
bool  drawn 
)
virtual

Reimplemented from Painting.

Definition at line 285 of file arrow.cpp.

bool Arrow::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 317 of file arrow.cpp.

void Arrow::MouseResizeMoving ( int  x,
int  y,
Schematic p 
)
virtual

Reimplemented from Painting.

Definition at line 258 of file arrow.cpp.

Painting * Arrow::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 129 of file arrow.cpp.

void Arrow::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 51 of file arrow.cpp.

void Arrow::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 106 of file arrow.cpp.

bool Arrow::resizeTouched ( float  fX,
float  fY,
float  len 
)
virtual

Reimplemented from Painting.

Definition at line 237 of file arrow.cpp.

void Arrow::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 438 of file arrow.cpp.

QString Arrow::save ( )
virtual

Reimplemented from Painting.

Definition at line 201 of file arrow.cpp.

QString Arrow::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 212 of file arrow.cpp.

QString Arrow::saveJSON ( )
virtual

Reimplemented from Painting.

Definition at line 223 of file arrow.cpp.

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

Reimplemented from Element.

Definition at line 122 of file arrow.cpp.

Field Documentation

double Arrow::beta

Definition at line 59 of file arrow.h.

double Arrow::Height

Definition at line 58 of file arrow.h.

double Arrow::Length

Definition at line 59 of file arrow.h.

QPen Arrow::Pen

Definition at line 56 of file arrow.h.

int Arrow::Style

Definition at line 57 of file arrow.h.

double Arrow::Width

Definition at line 58 of file arrow.h.

int Arrow::xp1

Definition at line 60 of file arrow.h.

int Arrow::xp2

Definition at line 60 of file arrow.h.

int Arrow::yp1

Definition at line 60 of file arrow.h.

int Arrow::yp2

Definition at line 60 of file arrow.h.


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