Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields
Wire Class Reference

#include <wire.h>

Inheritance diagram for Wire:
Conductor Element

Public Member Functions

 Wire (int _x1=0, int _y1=0, int _x2=0, int _y2=0, Node *n1=0, Node *n2=0)
 
 ~Wire ()
 
void paint (ViewPainter *)
 
void paintScheme (QPainter *)
 
void setCenter (int, int, bool relative=false)
 
void getCenter (int &, int &)
 
bool getSelected (int, int)
 
void setName (const QString &, const QString &, int delta_=0, int x_=0, int y_=0)
 
void rotate ()
 
QString save ()
 
bool load (const QString &)
 
bool isHorizontal ()
 
- Public Member Functions inherited from Element
 Element ()
 
virtual ~Element ()
 
virtual void paintScheme (Schematic *)
 

Data Fields

NodePort1
 
NodePort2
 
- Data Fields inherited from Conductor
WireLabelLabel
 
- 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 31 of file wire.h.

Constructor & Destructor Documentation

Wire::Wire ( int  _x1 = 0,
int  _y1 = 0,
int  _x2 = 0,
int  _y2 = 0,
Node n1 = 0,
Node n2 = 0 
)

Definition at line 21 of file wire.cpp.

Wire::~Wire ( )

Definition at line 37 of file wire.cpp.

Member Function Documentation

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

Reimplemented from Element.

Definition at line 81 of file wire.cpp.

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

Definition at line 89 of file wire.cpp.

bool Wire::isHorizontal ( )

Definition at line 123 of file wire.cpp.

bool Wire::load ( const QString &  _s)

Definition at line 167 of file wire.cpp.

void Wire::paint ( ViewPainter p)

Definition at line 108 of file wire.cpp.

void Wire::paintScheme ( QPainter *  p)

Definition at line 98 of file wire.cpp.

void Wire::rotate ( )

Definition at line 42 of file wire.cpp.

QString Wire::save ( )

Definition at line 151 of file wire.cpp.

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

Reimplemented from Element.

Definition at line 67 of file wire.cpp.

void Wire::setName ( const QString &  Name_,
const QString &  Value_,
int  delta_ = 0,
int  x_ = 0,
int  y_ = 0 
)

Definition at line 129 of file wire.cpp.

Field Documentation

Node* Wire::Port1

Definition at line 43 of file wire.h.

Node * Wire::Port2

Definition at line 43 of file wire.h.


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