Developer documentation | Axl-2.5.1

axlCone Class Reference

Class axlCone defines 3D cones. More...

#include <axlCone.h>

Inheritance diagram for axlCone:
axlAbstractData

Public Slots

void onApexChanged (axlPoint *apex)
 
void onBasePointChanged (axlPoint *basePoint)
 
void onRadiusChanged (double radius)
 
- 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)
 

Signals

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

Public Member Functions

 axlCone (QObject *parent=0)
 Constructs a axel cone of with apex and basePoint point are NULL and 1.0 radius with parent parent of QObject type. More...
 
 axlCone (axlPoint *apex, axlPoint *basePoint, double radius, QObject *parent=0)
 Constructs a axel cone of two axlPoint apex basePoint and radius radius with parent parent of QObject type. More...
 
 axlCone (const axlPoint &apex, const axlPoint &basePoint, double radius, QObject *parent=0)
 Constructs an axel cone from two axlPoint apex basePoint and its radius radius with parent parent. More...
 
 axlCone (const axlCone &other)
 Constructs a copy of other with same axlPoints. More...
 
 ~axlCone (void)
 Destroys the axel cone. More...
 
virtual QString description (void) const
 
virtual QString identifier (void) const
 
axlPointapex (void) const
 Returns apex of the cone. More...
 
axlPointbasePoint (void) const
 Returns basePoint point of the cone. More...
 
double radius (void) const
 Returns radius of the cone. More...
 
double length (void) const
 Returns length of the cone. More...
 
void setValues (axlPoint *apex, axlPoint *basePoint, double radius)
 Change apex and basePoint of this cone. More...
 
void setApex (axlPoint *apex)
 Change apex of this cone. More...
 
void setApex (double *apex)
 
void setBasePoint (axlPoint *basePoint)
 Change base point of this cone. More...
 
void setBasePoint (double *basePoint)
 
void setRadius (double radius)
 Change radius of this cone. More...
 
void setLength (double length)
 Change length of this cone we considered then apex is the origin of the cone and we change base point in consequence. More...
 
void touchApex (axlPoint apex)
 
void touchBasePoint (axlPoint basePoint)
 
void touchRadius (double radius)
 
axlConeoperator= (const axlCone &other)
 Assigns other to this cone and returns a reference to this cone. 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 apex
 
axlPoint basePoint
 
double radius
 
- Properties inherited from axlAbstractData
QColor color
 
double opacity
 
double size
 
QString shader
 

Friends

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

Detailed Description

Class axlCone defines 3D cones.

This class enables to represent and manipulate 3D cones.

Example:

axlPoint *apex = new axlPoint(0.0, 0.0, 0.0);
axlPoint *basePoint = new axlPoint(1.0, 0.0, 0.0);
double radius = 1.0;
axlCone *A = new axlCone(apex, basePoint, radius);

Definition at line 34 of file axlCone.h.

Constructor & Destructor Documentation

axlCone::axlCone ( QObject *  parent = 0)

Constructs a axel cone of with apex and basePoint 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 cone with no parent.

Definition at line 48 of file axlCone.cpp.

axlCone::axlCone ( axlPoint apex,
axlPoint basePoint,
double  radius,
QObject *  parent = 0 
)

Constructs a axel cone of two axlPoint apex basePoint 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 63 of file axlCone.cpp.

axlCone::axlCone ( const axlPoint apex,
const axlPoint basePoint,
double  radius,
QObject *  parent = 0 
)

Constructs an axel cone from two axlPoint apex basePoint and its 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 78 of file axlCone.cpp.

axlCone::axlCone ( const axlCone other)

Constructs a copy of other with same axlPoints.

Definition at line 90 of file axlCone.cpp.

axlCone::~axlCone ( void  )

Destroys the axel cone.

Definition at line 103 of file axlCone.cpp.

Member Function Documentation

axlPoint * axlCone::apex ( void  ) const

Returns apex of the cone.

Definition at line 136 of file axlCone.cpp.

axlPoint * axlCone::basePoint ( void  ) const

Returns basePoint point of the cone.

Definition at line 145 of file axlCone.cpp.

QVariantList axlCone::convertDataToQVariant ( void  ) const
virtual

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

Reimplemented from axlAbstractData.

Definition at line 326 of file axlCone.cpp.

int axlCone::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 342 of file axlCone.cpp.

void axlCone::dataChanged ( void  )
signal
QString axlCone::description ( void  ) const
virtual

Definition at line 288 of file axlCone.cpp.

QString axlCone::identifier ( void  ) const
virtual

Definition at line 301 of file axlCone.cpp.

double axlCone::length ( void  ) const

Returns length of the cone.

Definition at line 163 of file axlCone.cpp.

void axlCone::onApexChanged ( axlPoint apex)
slot

Definition at line 307 of file axlCone.cpp.

void axlCone::onBasePointChanged ( axlPoint basePoint)
slot

Definition at line 313 of file axlCone.cpp.

void axlCone::onRadiusChanged ( double  radius)
slot

Definition at line 319 of file axlCone.cpp.

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

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

Definition at line 123 of file axlCone.cpp.

double axlCone::radius ( void  ) const

Returns radius of the cone.

Definition at line 154 of file axlCone.cpp.

void axlCone::setApex ( axlPoint apex)

Change apex of this cone.

Definition at line 185 of file axlCone.cpp.

void axlCone::setApex ( double *  apex)

Definition at line 192 of file axlCone.cpp.

void axlCone::setBasePoint ( axlPoint basePoint)

Change base point of this cone.

Definition at line 203 of file axlCone.cpp.

void axlCone::setBasePoint ( double *  basePoint)

Definition at line 210 of file axlCone.cpp.

void axlCone::setLength ( double  length)

Change length of this cone we considered then apex is the origin of the cone and we change base point in consequence.

Definition at line 232 of file axlCone.cpp.

void axlCone::setRadius ( double  radius)

Change radius of this cone.

Definition at line 221 of file axlCone.cpp.

void axlCone::setValues ( axlPoint apex,
axlPoint basePoint,
double  radius 
)

Change apex and basePoint of this cone.

Definition at line 172 of file axlCone.cpp.

void axlCone::touchApex ( axlPoint  apex)

Definition at line 257 of file axlCone.cpp.

void axlCone::touchBasePoint ( axlPoint  basePoint)

Definition at line 251 of file axlCone.cpp.

void axlCone::touchRadius ( double  radius)

Definition at line 245 of file axlCone.cpp.

Friends And Related Function Documentation

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

Definition at line 267 of file axlCone.cpp.

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

Definition at line 274 of file axlCone.cpp.

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

Definition at line 281 of file axlCone.cpp.

Property Documentation

axlPoint axlCone::apex
readwrite

Definition at line 37 of file axlCone.h.

axlPoint axlCone::basePoint
readwrite

Definition at line 37 of file axlCone.h.

double axlCone::radius
readwrite

Definition at line 38 of file axlCone.h.


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