Developer documentation | Axl-2.5.1

axlEllipsoid Class Reference

Class axlEllipsoid defines 3D ellipsoids. More...

#include <axlEllipsoid.h>

Inheritance diagram for axlEllipsoid:
axlAbstractData

Public Slots

void onCenterChanged (axlPoint *center)
 
void onSemiXChanged (axlPoint *semiX)
 
void onSemiYChanged (axlPoint *semiY)
 
void onSemiZChanged (axlPoint *semiZ)
 
void calculateYZ (void)
 
void calculateXZ (void)
 
void calculateXY (void)
 
- Public Slots inherited from axlAbstractData
void touchGeometry (void)
 
void touchProperty (void)
 
void touchStructure (void)
 
virtual void touchField (void)
 
void setColor (const QColor &color)
 
void setOpacity (const double &opacity)
 
void setSize (const double &size)
 
void setShader (const QString &shader)
 
void setEditable (bool edit)
 

Public Member Functions

 axlEllipsoid (QObject *parent=0)
 Constructs a axel ellipsoid of with firstPoint and second point are NULL and 1.0 radius with parent parent of QObject type. More...
 
 axlEllipsoid (axlPoint *center, axlPoint *semiX, axlPoint *semiY, axlPoint *semiZ, QObject *parent=0)
 Constructs a axel ellipsoid of two axlPoint center p2 and radius radius with parent parent of QObject type. More...
 
 axlEllipsoid (const axlPoint &center, const axlPoint &semiX, const axlPoint &semiY, const axlPoint &semiZ, QObject *parent=0)
 Constructs a axel ellipsoid from two axlPoint center p2 and radius radius with parent parent. More...
 
 axlEllipsoid (const axlEllipsoid &other)
 Constructs a copy of other with same axlPoints. More...
 
 ~axlEllipsoid (void)
 Destroys the axel ellipsoid. More...
 
virtual QString description (void) const
 
virtual QString identifier (void) const
 
axlPointcenter (void) const
 Returns center of the ellipsoid. More...
 
axlPointsemiX (void) const
 Returns semi x axe value of the ellipsoid. More...
 
axlPointsemiY (void) const
 Returns semi y axe value of the ellipsoid. More...
 
axlPointsemiZ (void) const
 Returns semi z axe value of the ellipsoid. More...
 
void setValues (axlPoint *center, axlPoint *semiX, axlPoint *semiY, axlPoint *semiZ)
 Change center, semi axes x, y, z values and quarternion of this ellipsoid. More...
 
void setCenter (axlPoint *center)
 Change center of this ellipsoid. More...
 
void setSemiX (axlPoint *semiX)
 Change semi axes x value of this ellipsoid. More...
 
void setSemiY (axlPoint *semiY)
 Change semi axes y value of this ellipsoid. More...
 
void setSemiZ (axlPoint *semiZ)
 Change semi axes z value of this ellipsoid. More...
 
void touchCenter (axlPoint center)
 
void touchSemiX (axlPoint semiX)
 
void touchSemiY (axlPoint semiY)
 
void touchSemiZ (axlPoint semiZ)
 
void modifyCenter (double *center)
 modify Center of this Ellipsoid. More...
 
void modifyCenterX (double x)
 modify X Center value of this Ellipsoid. More...
 
void modifyCenterY (double y)
 modify Y Center value of this Ellipsoid. More...
 
void modifyCenterZ (double z)
 modify Z Center value of this Ellipsoid. More...
 
void modifySemiX (double *semiX)
 modify SemiX of this Ellipsoid. More...
 
void modifySemiXX (double x)
 modify X SemiX value of this Ellipsoid. More...
 
void modifySemiXY (double y)
 modify Y SemiX value of this Ellipsoid. More...
 
void modifySemiXZ (double z)
 modify Z SemiX value of this Ellipsoid. More...
 
void modifySemiY (double *semiY)
 modify SemiY of this Ellipsoid. More...
 
void modifySemiYX (double x)
 modify X SemiY value of this Ellipsoid. More...
 
void modifySemiYY (double y)
 modify Y SemiY value of this Ellipsoid. More...
 
void modifySemiYZ (double z)
 modify Z SemiY value of this Ellipsoid. More...
 
void modifySemiZ (double *semiZ)
 modify SemiZ of this Ellipsoid. More...
 
void modifySemiZX (double x)
 modify X SemiZ value of this Ellipsoid. More...
 
void modifySemiZY (double y)
 modify Y SemiZ value of this Ellipsoid. More...
 
void modifySemiZZ (double z)
 modify Z SemiZ value of this Ellipsoid. More...
 
axlEllipsoidoperator= (const axlEllipsoid &other)
 Assigns other to this ellipsoid and returns a reference to this ellipsoid. More...
 
QVariantList convertDataToQVariant (void) const
 Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData. More...
 
int convertQVariantToData (const QVariantList &data)
 Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was sucessfully made. Otherwise return 0. More...
 
- Public Member Functions inherited from axlAbstractData
 axlAbstractData (axlAbstractData *parent=NULL)
 
 axlAbstractData (const axlAbstractData &data)
 
virtual ~axlAbstractData (void)
 
const QColor & color (void) const
 
const double & opacity (void) const
 
const double & size (void) const
 
const QString & shader (void) const
 
const bool & editable (void)
 
const bool & updateView (void)
 
void setColor (double r, double g, double b)
 
void addField (axlAbstractField *field)
 Add a field to the field list of the object. More...
 
bool updateFieldList (QString nameField)
 Check if a field with the same name is already applied on the object. More...
 
QString changeFieldName (QString fieldName)
 
axlMeshmesh (void)
 Return the mesh of that object is computed. More...
 
void setMesh (axlMesh *mesh)
 Set a corresponding mesh for that object. More...
 
void setUpdateView (bool updateView)
 
QList< axlAbstractField * > fields (void)
 

Properties

axlPoint center
 
axlPoint semiX
 
axlPoint semiY
 
axlPoint semiZ
 
- Properties inherited from axlAbstractData
QColor color
 
double opacity
 
double size
 
QString shader
 

Friends

QDebug operator<< (QDebug dbg, axlEllipsoid line)
 
QDebug operator<< (QDebug dbg, axlEllipsoid &line)
 
QDebug operator<< (QDebug dbg, axlEllipsoid *line)
 

Additional Inherited Members

- Signals inherited from axlAbstractData
void modifiedGeometry (void)
 
void modifiedStructure (void)
 
void modifiedField (void)
 
void modifiedProperty (void)
 

Detailed Description

Class axlEllipsoid defines 3D ellipsoids.

This class enables to represent and manipulate 3D ellipsoids.

Example:

axlPoint *center = new axlPoint(0.0, 0.0, 0.0);
axlPoint *semiX = new axlPoint(1.0, 0.0, 0.0);
axlPoint *semiX = new axlPoint(0.0, 1.0, 0.0);
axlPoint *semiX = new axlPoint(0.0, 0.0, 1.0);
axlEllipsoid *A = new axlEllipsoid(center, semiX, semiY, semiZ);

Definition at line 35 of file axlEllipsoid.h.

Constructor & Destructor Documentation

axlEllipsoid::axlEllipsoid ( QObject *  parent = 0)

Constructs a axel ellipsoid of with firstPoint and second point are NULL and 1.0 radius with parent parent of QObject type.

The parent of an object may be viewed as the object's owner. The destructor of a parent object destroys all child objects. Setting parent to 0 constructs a axel ellipsoid with no parent.

Definition at line 51 of file axlEllipsoid.cpp.

axlEllipsoid::axlEllipsoid ( axlPoint center,
axlPoint semiX,
axlPoint semiY,
axlPoint semiZ,
QObject *  parent = 0 
)

Constructs a axel ellipsoid of two axlPoint center p2 and radius radius with parent parent of QObject type.

The parent of an object may be viewed as the object's owner. The destructor of a parent object destroys all child objects. Setting parent to 0 constructs a axel point with no parent.

Definition at line 67 of file axlEllipsoid.cpp.

axlEllipsoid::axlEllipsoid ( const axlPoint center,
const axlPoint semiX,
const axlPoint semiY,
const axlPoint semiZ,
QObject *  parent = 0 
)

Constructs a axel ellipsoid from two axlPoint center p2 and radius radius with parent parent.

The parent of an object may be viewed as the object's owner. The destructor of a parent object destroys all child objects. Setting parent to 0 constructs a axel point with no parent.

Definition at line 83 of file axlEllipsoid.cpp.

axlEllipsoid::axlEllipsoid ( const axlEllipsoid other)

Constructs a copy of other with same axlPoints.

Definition at line 97 of file axlEllipsoid.cpp.

axlEllipsoid::~axlEllipsoid ( void  )

Destroys the axel ellipsoid.

Definition at line 112 of file axlEllipsoid.cpp.

Member Function Documentation

void axlEllipsoid::calculateXY ( void  )
slot

Definition at line 610 of file axlEllipsoid.cpp.

void axlEllipsoid::calculateXZ ( void  )
slot

Definition at line 556 of file axlEllipsoid.cpp.

void axlEllipsoid::calculateYZ ( void  )
slot

Definition at line 502 of file axlEllipsoid.cpp.

axlPoint * axlEllipsoid::center ( void  ) const

Returns center of the ellipsoid.

Definition at line 157 of file axlEllipsoid.cpp.

QVariantList axlEllipsoid::convertDataToQVariant ( void  ) const
virtual

Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData.

Reimplemented from axlAbstractData.

Definition at line 664 of file axlEllipsoid.cpp.

int axlEllipsoid::convertQVariantToData ( const QVariantList &  data)
virtual

Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was sucessfully made. Otherwise return 0.

Reimplemented from axlAbstractData.

Definition at line 682 of file axlEllipsoid.cpp.

QString axlEllipsoid::description ( void  ) const
virtual

Definition at line 296 of file axlEllipsoid.cpp.

QString axlEllipsoid::identifier ( void  ) const
virtual

Definition at line 308 of file axlEllipsoid.cpp.

void axlEllipsoid::modifyCenter ( double *  center)

modify Center of this Ellipsoid.

Definition at line 342 of file axlEllipsoid.cpp.

void axlEllipsoid::modifyCenterX ( double  x)

modify X Center value of this Ellipsoid.

Definition at line 352 of file axlEllipsoid.cpp.

void axlEllipsoid::modifyCenterY ( double  y)

modify Y Center value of this Ellipsoid.

Definition at line 362 of file axlEllipsoid.cpp.

void axlEllipsoid::modifyCenterZ ( double  z)

modify Z Center value of this Ellipsoid.

Definition at line 372 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiX ( double *  semiX)

modify SemiX of this Ellipsoid.

Definition at line 382 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiXX ( double  x)

modify X SemiX value of this Ellipsoid.

Definition at line 392 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiXY ( double  y)

modify Y SemiX value of this Ellipsoid.

Definition at line 402 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiXZ ( double  z)

modify Z SemiX value of this Ellipsoid.

Definition at line 412 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiY ( double *  semiY)

modify SemiY of this Ellipsoid.

Definition at line 422 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiYX ( double  x)

modify X SemiY value of this Ellipsoid.

Definition at line 432 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiYY ( double  y)

modify Y SemiY value of this Ellipsoid.

Definition at line 443 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiYZ ( double  z)

modify Z SemiY value of this Ellipsoid.

Definition at line 453 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiZ ( double *  semiZ)

modify SemiZ of this Ellipsoid.

Definition at line 463 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiZX ( double  x)

modify X SemiZ value of this Ellipsoid.

Definition at line 473 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiZY ( double  y)

modify Y SemiZ value of this Ellipsoid.

Definition at line 484 of file axlEllipsoid.cpp.

void axlEllipsoid::modifySemiZZ ( double  z)

modify Z SemiZ value of this Ellipsoid.

Definition at line 495 of file axlEllipsoid.cpp.

void axlEllipsoid::onCenterChanged ( axlPoint center)
slot

Definition at line 314 of file axlEllipsoid.cpp.

void axlEllipsoid::onSemiXChanged ( axlPoint semiX)
slot

Definition at line 320 of file axlEllipsoid.cpp.

void axlEllipsoid::onSemiYChanged ( axlPoint semiY)
slot

Definition at line 326 of file axlEllipsoid.cpp.

void axlEllipsoid::onSemiZChanged ( axlPoint semiZ)
slot

Definition at line 332 of file axlEllipsoid.cpp.

axlEllipsoid & axlEllipsoid::operator= ( const axlEllipsoid other)

Assigns other to this ellipsoid and returns a reference to this ellipsoid.

Definition at line 143 of file axlEllipsoid.cpp.

axlPoint * axlEllipsoid::semiX ( void  ) const

Returns semi x axe value of the ellipsoid.

Definition at line 166 of file axlEllipsoid.cpp.

axlPoint * axlEllipsoid::semiY ( void  ) const

Returns semi y axe value of the ellipsoid.

Definition at line 175 of file axlEllipsoid.cpp.

axlPoint * axlEllipsoid::semiZ ( void  ) const

Returns semi z axe value of the ellipsoid.

Definition at line 184 of file axlEllipsoid.cpp.

void axlEllipsoid::setCenter ( axlPoint center)

Change center of this ellipsoid.

Definition at line 207 of file axlEllipsoid.cpp.

void axlEllipsoid::setSemiX ( axlPoint semiX)

Change semi axes x value of this ellipsoid.

Definition at line 218 of file axlEllipsoid.cpp.

void axlEllipsoid::setSemiY ( axlPoint semiY)

Change semi axes y value of this ellipsoid.

Definition at line 229 of file axlEllipsoid.cpp.

void axlEllipsoid::setSemiZ ( axlPoint semiZ)

Change semi axes z value of this ellipsoid.

Definition at line 240 of file axlEllipsoid.cpp.

void axlEllipsoid::setValues ( axlPoint center,
axlPoint semiX,
axlPoint semiY,
axlPoint semiZ 
)

Change center, semi axes x, y, z values and quarternion of this ellipsoid.

Definition at line 193 of file axlEllipsoid.cpp.

void axlEllipsoid::touchCenter ( axlPoint  center)

Definition at line 247 of file axlEllipsoid.cpp.

void axlEllipsoid::touchSemiX ( axlPoint  semiX)

Definition at line 253 of file axlEllipsoid.cpp.

void axlEllipsoid::touchSemiY ( axlPoint  semiY)

Definition at line 259 of file axlEllipsoid.cpp.

void axlEllipsoid::touchSemiZ ( axlPoint  semiZ)

Definition at line 265 of file axlEllipsoid.cpp.

Friends And Related Function Documentation

QDebug operator<< ( QDebug  dbg,
axlEllipsoid  line 
)
friend

Definition at line 275 of file axlEllipsoid.cpp.

QDebug operator<< ( QDebug  dbg,
axlEllipsoid line 
)
friend

Definition at line 282 of file axlEllipsoid.cpp.

QDebug operator<< ( QDebug  dbg,
axlEllipsoid line 
)
friend

Definition at line 289 of file axlEllipsoid.cpp.

Property Documentation

axlPoint axlEllipsoid::center
readwrite

Definition at line 38 of file axlEllipsoid.h.

axlPoint axlEllipsoid::semiX
readwrite

Definition at line 38 of file axlEllipsoid.h.

axlPoint axlEllipsoid::semiY
readwrite

Definition at line 39 of file axlEllipsoid.h.

axlPoint axlEllipsoid::semiZ
readwrite

Definition at line 40 of file axlEllipsoid.h.


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