Logo Search packages:      
Sourcecode: qantenna version File versions  Download package

Line Class Reference

#include <line.h>

Inheritance diagram for Line:

Primitive

List of all members.


Detailed Description

This class is used to crate each line of the antenna. It inherit its functions of primitive class which is a virtual one. It provides all necessary funtions to process the lines. It class has a label which indicate this primitive is a line, 2 vertex, end1 and end2, to indicate line position. Tag Number contains the NEC's line number. Some cards have more parameters that are saved in parameter and parameter1. This class has also functions to modify line position, how are move reflect, and rotate. Other fuction aren't used in the program but complete the class functionality. It's analogous to patch class.

Definition at line 37 of file line.h.


Public Member Functions

double CalculateMaxModule ()
 This finction calculates the maximum module between end1 and end2.
int GetCardParameter ()
 Get card parameter.
int GetCardParameter1 ()
 Get card parameter1.
double GetColor ()
 This function isn't used yet, but are usefull for futures improvements.
QVector< double > GetEnd1 ()
 Get end1.
QVector< double > GetEnd2 ()
 Get end2.
QString GetLabel ()
 Get label.
int GetTagNumber ()
 Get tag number.
double GetWidth ()
 This function isn't used yet, but are usefull for futures improvements.
 Line (QString newLabel, QVector< double > newEnd1, QVector< double > newEnd2, int newTagNumber, int newCardParameter, int newCardParameter1)
 This overloaded constructor provides a fastest way to initialize a new object.
void Move (QVector< double > &pos)
void Reflect (bool x, bool y, bool z)
 This function reflect the line along x (reflection in Y-Z plane), y or z.
void Rotate (QVector< double > &ang)
void SetCardParameter (int newCardParameter)
 Set parameter that are used to process card as GM, GX, and others.
void SetCardParameter1 (int newCardParameter)
 Set parameter that are used to process card as GM, GX, and others.
void SetColor (double newColor)
 This function isn't used yet, but are usefull for futures improvements.
void SetEnd1 (double x, double y, double z)
 Set end1.
void SetEnd2 (double x, double y, double z)
 Set end2.
void SetLabel (QString newLabel)
 Set card label.
void SetTagNumber (int newTagNumber)
 Set tag number.
void SetWidth (double newWidth)
 This function isn't used yet, but are usefull for futures improvements.

Private Member Functions

void Rotate (double vecIn[], double vecOut[], double ang)
 This is an auxiliar function used by Rotate(double ang[]).

Private Attributes

int cardParameter
 It's a parameter used by some cards as GM, GR, etc.
int cardParameter1
 It's a parameter used by some cards as GM, GR, etc.
double color
QVector< double > end1
 End line 1.
QVector< double > end2
 End line 2.
QString label
 Card label.
int tagNumber
double width
 This parameter isn't used yet but is usefull for future improvements.

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

Generated by  Doxygen 1.6.0   Back to index