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

Patch Class Reference

#include <patch.h>

Inheritance diagram for Patch:

Primitive

List of all members.


Detailed Description

This class is used to crate each patch of the antenna. It inherit its functions of primitive class which is a virtual one. It provides all necessary funtions to process the patches. It class has a label which indicate this primitive is a patch, 4 vertex, end1, end2, end3 and end4 to indicate line position. Tag Number doesn't contain tag number because patches haven't one. Some cards have more parameters that are saved in parameter and parameter1, but these are stored in lines. This class has also functions to modify patch 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 39 of file patch.h.


Public Member Functions

double CalculateMaxModule ()
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.
QVector< double > GetEnd3 ()
 Get end3.
QVector< double > GetEnd4 ()
 Get end4.
QString GetLabel ()
 Get label.
int GetTagNumber ()
 Get tag number.
double GetWidth ()
 This function isn't used yet, but are usefull for futures improvements.
void Move (QVector< double > &pos)
 Patch (QString newLabel, QVector< double > newEnd1, QVector< double > newEnd2, QVector< double > newEnd3, QVector< double > newEnd4, int newTagNumber, int newCardParameter, int newCardParameter1)
 This overloaded constructor provides a fastest way to initialize a new object.
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 SetEnd3 (double x, double y, double z)
 Set end3.
void SetEnd4 (double x, double y, double z)
 Set end4.
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 patch 1.
QVector< double > end2
 End patch 2.
QVector< double > end3
 End patch 3.
QVector< double > end4
 End patch 4.
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