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

#include <ellipse.h>

Inheritance diagram for Ellipse:
Painting Element

Public Member Functions

 Ellipse (bool _filled=false)
 
 ~Ellipse ()
 
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 paint (ViewPainter *)
 
void MouseMoving (Schematic *, int, int, int, int, Schematic *, int, int, bool)
 
bool MousePressing ()
 
bool getSelected (float, float, float)
 
bool resizeTouched (float, float, float)
 
void MouseResizeMoving (int, int, Schematic *)
 
void rotate ()
 
void mirrorX ()
 
void mirrorY ()
 
bool Dialog ()
 
- Public Member Functions inherited from Painting
 Painting ()
 
 ~Painting ()
 
virtual void Bounding (int &, int &, int &, int &)
 
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)
 
static Elementinfo_filled (QString &, char *&, bool getNewOne=false)
 

Data Fields

QPen Pen
 
QBrush Brush
 
bool filled
 
- 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 ellipse.h.

Constructor & Destructor Documentation

Ellipse::Ellipse ( bool  _filled = false)

Definition at line 27 of file ellipse.cpp.

Ellipse::~Ellipse ( )

Definition at line 39 of file ellipse.cpp.

Member Function Documentation

bool Ellipse::Dialog ( )
virtual

Reimplemented from Painting.

Definition at line 368 of file ellipse.cpp.

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

Reimplemented from Painting.

Definition at line 74 of file ellipse.cpp.

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

Reimplemented from Painting.

Definition at line 313 of file ellipse.cpp.

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

Definition at line 95 of file ellipse.cpp.

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

Definition at line 105 of file ellipse.cpp.

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

Reimplemented from Painting.

Definition at line 115 of file ellipse.cpp.

void Ellipse::mirrorX ( )
virtual

Reimplemented from Painting.

Definition at line 353 of file ellipse.cpp.

void Ellipse::mirrorY ( )
virtual

Reimplemented from Painting.

Definition at line 360 of file ellipse.cpp.

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

Reimplemented from Painting.

Definition at line 258 of file ellipse.cpp.

bool Ellipse::MousePressing ( )
virtual

Reimplemented from Painting.

Definition at line 292 of file ellipse.cpp.

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

Reimplemented from Painting.

Definition at line 236 of file ellipse.cpp.

Painting * Ellipse::newOne ( )
virtual

Reimplemented from Painting.

Definition at line 89 of file ellipse.cpp.

void Ellipse::paint ( ViewPainter p)
virtual

Reimplemented from Painting.

Definition at line 44 of file ellipse.cpp.

void Ellipse::paintScheme ( Schematic p)
virtual

Reimplemented from Element.

Definition at line 68 of file ellipse.cpp.

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

Reimplemented from Painting.

Definition at line 214 of file ellipse.cpp.

void Ellipse::rotate ( )
virtual

Reimplemented from Painting.

Definition at line 342 of file ellipse.cpp.

QString Ellipse::save ( )
virtual

Reimplemented from Painting.

Definition at line 168 of file ellipse.cpp.

QString Ellipse::saveCpp ( )
virtual

Reimplemented from Painting.

Definition at line 182 of file ellipse.cpp.

QString Ellipse::saveJSON ( )
virtual

Reimplemented from Painting.

Definition at line 197 of file ellipse.cpp.

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

Reimplemented from Element.

Definition at line 82 of file ellipse.cpp.

Field Documentation

QBrush Ellipse::Brush

Definition at line 55 of file ellipse.h.

bool Ellipse::filled

Definition at line 56 of file ellipse.h.

QPen Ellipse::Pen

Definition at line 54 of file ellipse.h.


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