Developer documentation | Axl-2.5.1

axlAbstractCurveBSpline Class Reference

#include <axlAbstractCurveBSpline.h>

Inheritance diagram for axlAbstractCurveBSpline:
axlAbstractCurveParametric axlAbstractCurve axlAbstractData axlAbstractCurveNurbs

Public Types

typedef QMap< double, axlPointSample
 

Signals

void updated (void)
 
void samplingChanged ()
 
void indexSelected (int)
 
- Signals inherited from axlAbstractData
void modifiedGeometry (void)
 
void modifiedStructure (void)
 
void modifiedField (void)
 
void modifiedProperty (void)
 

Public Member Functions

 axlAbstractCurveBSpline (void)
 
virtual ~axlAbstractCurveBSpline (void)
 
virtual int countControlPoints (void) const
 
virtual int knotVectorSize (void) const
 
virtual int order (void) const
 
virtual int numCoefs () const
 
virtual bool rational (void) const
 
virtual double startParam (void)
 
virtual double endParam (void)
 
virtual void setCurve (int pointsCount, int order, int dimension, double *knots, double *points, bool rational)
 
virtual axlPoint closestPoint (const axlPoint &pt)
 
virtual double closestParameter (const axlPoint &pt)
 
virtual Sample sampling (int n)
 
virtual void insertKnot (double k)
 
virtual void removeKnot (double k)
 
virtual axlPoint getCoef (int n) const
 
virtual bool setCoef (int n, double *controlPoint)
 
virtual double getKnot (int n) const
 
virtual QString printCoeffs (bool print) const
 
virtual QString printKnotsVector (bool print) const
 
virtual double getWeight (int n) const
 
virtual void updateRcoeff ()
 
virtual QString description (void) const
 
virtual bool connectionsAreDefined (void)
 Return true if control points connections were defined by developers. False if there are default connections visualization. More...
 
virtual QList< int > getControlPointConnection (int i)
 The list returned contains all indices of coefficients that are still to be connected to the ith coefficient. More...
 
virtual void defineControlPointConnection (int i, int j)
 Define connection between the ith and the jth coefficient. More...
 
virtual void resetControlPointConnections (void)
 Removes all control point connections. 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...
 
virtual void selectIndex (int i)
 
- Public Member Functions inherited from axlAbstractCurveParametric
 axlAbstractCurveParametric (void)
 
virtual ~axlAbstractCurveParametric (void)
 
virtual axlPoint eval (double u)
 
virtual void eval (axlPoint *point, double u)
 
virtual axlMesh eval (double u, int derivs, bool from_right=true)
 
double parameterOf (const axlPoint &p)
 
virtual double length (double tolerance)
 
virtual int numSamples (void)
 
virtual void setNumSamples (int numSamples)
 
const int & samples (void) const
 
- Public Member Functions inherited from axlAbstractCurve
 axlAbstractCurve (void)
 
virtual ~axlAbstractCurve (void)
 
virtual int dimension (void) const
 
virtual bool isPlanar (void) const
 
virtual void * curve (void)
 
- 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)
 

Additional Inherited Members

- Public Slots inherited from axlAbstractCurveParametric
virtual void onDirectChanged (bool direct)
 
void setSamples (const int &color)
 
- 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)
 
- Properties inherited from axlAbstractCurveParametric
int samples
 
- Properties inherited from axlAbstractData
QColor color
 
double opacity
 
double size
 
QString shader
 

Detailed Description

Definition at line 30 of file axlAbstractCurveBSpline.h.

Member Typedef Documentation

Definition at line 36 of file axlAbstractCurveBSpline.h.

Constructor & Destructor Documentation

axlAbstractCurveBSpline::axlAbstractCurveBSpline ( void  )

Definition at line 37 of file axlAbstractCurveBSpline.cpp.

axlAbstractCurveBSpline::~axlAbstractCurveBSpline ( void  )
virtual

Definition at line 42 of file axlAbstractCurveBSpline.cpp.

Member Function Documentation

double axlAbstractCurveBSpline::closestParameter ( const axlPoint pt)
virtual

Definition at line 110 of file axlAbstractCurveBSpline.cpp.

axlPoint axlAbstractCurveBSpline::closestPoint ( const axlPoint pt)
virtual

Definition at line 103 of file axlAbstractCurveBSpline.cpp.

bool axlAbstractCurveBSpline::connectionsAreDefined ( void  )
virtual

Return true if control points connections were defined by developers. False if there are default connections visualization.

Definition at line 195 of file axlAbstractCurveBSpline.cpp.

QVariantList axlAbstractCurveBSpline::convertDataToQVariant ( void  ) const
virtual

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

Reimplemented from axlAbstractData.

Definition at line 243 of file axlAbstractCurveBSpline.cpp.

int axlAbstractCurveBSpline::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 265 of file axlAbstractCurveBSpline.cpp.

int axlAbstractCurveBSpline::countControlPoints ( void  ) const
virtual

Definition at line 49 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::defineControlPointConnection ( int  i,
int  j 
)
virtual

Define connection between the ith and the jth coefficient.

Definition at line 221 of file axlAbstractCurveBSpline.cpp.

QString axlAbstractCurveBSpline::description ( void  ) const
virtual

Definition at line 184 of file axlAbstractCurveBSpline.cpp.

double axlAbstractCurveBSpline::endParam ( void  )
virtual

Reimplemented from axlAbstractCurveParametric.

Definition at line 91 of file axlAbstractCurveBSpline.cpp.

axlPoint axlAbstractCurveBSpline::getCoef ( int  n) const
virtual

Definition at line 125 of file axlAbstractCurveBSpline.cpp.

QList< int > axlAbstractCurveBSpline::getControlPointConnection ( int  i)
virtual

The list returned contains all indices of coefficients that are still to be connected to the ith coefficient.

Definition at line 212 of file axlAbstractCurveBSpline.cpp.

double axlAbstractCurveBSpline::getKnot ( int  n) const
virtual

Definition at line 153 of file axlAbstractCurveBSpline.cpp.

double axlAbstractCurveBSpline::getWeight ( int  n) const
virtual

Definition at line 140 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::indexSelected ( int  )
signal
void axlAbstractCurveBSpline::insertKnot ( double  k)
virtual

Definition at line 160 of file axlAbstractCurveBSpline.cpp.

int axlAbstractCurveBSpline::knotVectorSize ( void  ) const
virtual

Definition at line 56 of file axlAbstractCurveBSpline.cpp.

int axlAbstractCurveBSpline::numCoefs ( ) const
virtual

Definition at line 70 of file axlAbstractCurveBSpline.cpp.

int axlAbstractCurveBSpline::order ( void  ) const
virtual

Definition at line 63 of file axlAbstractCurveBSpline.cpp.

QString axlAbstractCurveBSpline::printCoeffs ( bool  print) const
virtual

Definition at line 170 of file axlAbstractCurveBSpline.cpp.

QString axlAbstractCurveBSpline::printKnotsVector ( bool  print) const
virtual

Definition at line 177 of file axlAbstractCurveBSpline.cpp.

bool axlAbstractCurveBSpline::rational ( void  ) const
virtual

Definition at line 78 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::removeKnot ( double  k)
virtual

Definition at line 165 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::resetControlPointConnections ( void  )
virtual

Removes all control point connections.

Definition at line 203 of file axlAbstractCurveBSpline.cpp.

Sample axlAbstractCurveBSpline::sampling ( int  n)
virtual

Definition at line 118 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::samplingChanged ( )
signal
virtual void axlAbstractCurveBSpline::selectIndex ( int  i)
inlinevirtual

Definition at line 87 of file axlAbstractCurveBSpline.h.

bool axlAbstractCurveBSpline::setCoef ( int  n,
double *  controlPoint 
)
virtual

Definition at line 132 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::setCurve ( int  pointsCount,
int  order,
int  dimension,
double *  knots,
double *  points,
bool  rational 
)
virtual

Definition at line 98 of file axlAbstractCurveBSpline.cpp.

double axlAbstractCurveBSpline::startParam ( void  )
virtual

Reimplemented from axlAbstractCurveParametric.

Definition at line 84 of file axlAbstractCurveBSpline.cpp.

void axlAbstractCurveBSpline::updated ( void  )
signal
void axlAbstractCurveBSpline::updateRcoeff ( )
virtual

Definition at line 148 of file axlAbstractCurveBSpline.cpp.


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