Developer documentation | Axl-2.5.1

axlBarycenterProcess Class Reference

#include <axlBarycenterProcess.h>

Inheritance diagram for axlBarycenterProcess:
axlAbstractProcess

Signals

void dataInserted (axlAbstractData *data)
 

Public Member Functions

 axlBarycenterProcess (QObject *parent=0)
 
 ~axlBarycenterProcess (void)
 
axlAbstractDatagetInput (int channel) const
 
double getCoeffValue (void) const
 
virtual int update (void)
 Returns the barycenter point of the line. More...
 
QString description (void) const
 
QString identifier (void) const
 
dtkAbstractData * output (void)
 
void setInput (dtkAbstractData *newData, int channel=0)
 
void setParameter (double data, int channel=0)
 
int channelCount (void)
 
QString form (void) const
 Description of the form for the dialog with the process. More...
 
- Public Member Functions inherited from axlAbstractProcess
 axlAbstractProcess (void)
 
virtual ~axlAbstractProcess (void)
 
virtual void copyProcess (axlAbstractProcess *process)
 
virtual bool hasParameters (void)
 
virtual void setDescription (QString description)
 
virtual void setIdentifier (QString identifier)
 

Detailed Description

Definition at line 29 of file axlBarycenterProcess.h.

Constructor & Destructor Documentation

axlBarycenterProcess::axlBarycenterProcess ( QObject *  parent = 0)

Definition at line 37 of file axlBarycenterProcess.cpp.

axlBarycenterProcess::~axlBarycenterProcess ( void  )

Definition at line 45 of file axlBarycenterProcess.cpp.

Member Function Documentation

int axlBarycenterProcess::channelCount ( void  )

Definition at line 114 of file axlBarycenterProcess.cpp.

void axlBarycenterProcess::dataInserted ( axlAbstractData data)
signal
QString axlBarycenterProcess::description ( void  ) const
virtual

Reimplemented from axlAbstractProcess.

Definition at line 118 of file axlBarycenterProcess.cpp.

QString axlBarycenterProcess::form ( void  ) const
inlinevirtual

Description of the form for the dialog with the process.

The string use to describe the form is formatted as follows:

"INPUT[:CHANNEL] TYPE LABEL"
"PARAMETER[:CHANNEL] TYPE LABEL"
"OUTPUT [:CHANNEL] LABEL"

where:

  • CHANNEL is a number identifying the rank of an input, see dtkAbstractProcess. Write this value only if the process method setInput uses a channel in its parameters !
  • TYPE is either int, double or data.
  • LABEL is the input's name.

Here is an example of such a declaration:

QString form(void) const
{
return QString(
" INPUT:0 data StartPoint \n"
" INPUT:1 data EndPoint \n"
" PARAMETER:0 double Radius \n"
" OUTPUT Cylinder ");
}

Reimplemented from axlAbstractProcess.

Definition at line 55 of file axlBarycenterProcess.h.

double axlBarycenterProcess::getCoeffValue ( void  ) const

Definition at line 55 of file axlBarycenterProcess.cpp.

axlAbstractData * axlBarycenterProcess::getInput ( int  channel) const

Definition at line 51 of file axlBarycenterProcess.cpp.

QString axlBarycenterProcess::identifier ( void  ) const
virtual

Reimplemented from axlAbstractProcess.

Definition at line 123 of file axlBarycenterProcess.cpp.

dtkAbstractData * axlBarycenterProcess::output ( void  )

Definition at line 61 of file axlBarycenterProcess.cpp.

void axlBarycenterProcess::setInput ( dtkAbstractData *  newData,
int  channel = 0 
)

Definition at line 66 of file axlBarycenterProcess.cpp.

void axlBarycenterProcess::setParameter ( double  data,
int  channel = 0 
)

Definition at line 74 of file axlBarycenterProcess.cpp.

int axlBarycenterProcess::update ( void  )
virtual

Returns the barycenter point of the line.

By default the coefficient is equal to 0.5.

Definition at line 83 of file axlBarycenterProcess.cpp.


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