My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Wire Class Reference

#include <wire.h>

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

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 Attributes

NodePort1
 
NodePort2
 
- Public Attributes inherited from Conductor
WireLabelLabel
 
- Public Attributes 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.

Here is the caller graph for this function:

bool Wire::isHorizontal ( )

Definition at line 123 of file wire.cpp.

Here is the caller graph for this function:

bool Wire::load ( const QString &  _s)

Definition at line 167 of file wire.cpp.

Here is the call graph for this function:

void Wire::paint ( ViewPainter p)

Definition at line 108 of file wire.cpp.

Here is the call graph for this function:

void Wire::paintScheme ( QPainter *  p)
virtual

Reimplemented from Element.

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.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data 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: