This class defines compound (or complex, or composed) paths, which are made of a set of basic paths.
More...
#include <ArrayPaths.hpp>
|
| ArrayPaths (const int n) |
| The main constructor only needs a number of paths. More...
|
|
| ~ArrayPaths () |
| The destructor frees all the paths and the array.
|
|
void | setPath (const int index, const bool isBasic, iSeeML::rob::Path *path) |
| Add a given (dynamically allocated) path to the array. More...
|
|
iSeeML::Object & | clone () const |
| Description method, giving a copy of the current object. More...
|
|
int | nbPieces () const |
| Description method, giving the number of pieces of the path. More...
|
|
void | writeTo (ostream &O) const |
| Description method, writing a description of the path in a given output stream (the array of pieces is written). More...
|
|
const iSeeML::rob::OrPtConfig & | start () const |
| Description method, giving the path's starting configuration (first piece's starting configuration). More...
|
|
const iSeeML::rob::OrPtConfig & | end () const |
| Description method, giving the path's final configuration (last piece's starting configuration). More...
|
|
const iSeeML::rob::BasicPath & | piece (const int index) const |
| Description method, returning the (constant) basic path of given index in the list of which this compound path is made. More...
|
|
double | length () const |
| Description method, giving the path's length (sum of the pieces' length). More...
|
|
double | deflection () const |
| Description method, giving the path's deflection (sum of the pieces' deflection). More...
|
|
iSeeML::rob::BasicPath & | piece (const int index) |
| Modification method, returning (for modification) the basic path of given index in the list of which this compound path is made. More...
|
|
iSeeML::rob::CurvConfig | operator[] (const double &s) const |
| Description method, giving a configuration at a given arc length along the path. More...
|
|
bool | operator< (const Path &other) const |
| Order operator, defining an order relation on the paths' set, based on the path's length. More...
|
|
virtual | ~Object () |
| This virtual class needs a virtual destructor.
|
|
virtual const string | className () const |
| Description method, giving the object's class name. More...
|
|
bool | sameClass (const iSeeML::Object &other) |
| Method verifying that a given object has the same type (same class name) than the current one. More...
|
|
|
static const string | ClassName |
| The class name is public, as this class can be instanced. More...
|
|
|
iSeeML::rob::BasicPath & | _piece (const int index) const |
| Virtual method returning the basic path of given index in the list of which this compound path is made (no verification). More...
|
|
iSeeML::rob::BasicPath & | getPiece (const int index) const |
| Method returning the basic path of given index in the list of which this compound path is made. More...
|
|
virtual int | algDimension () const |
| Description method for algebraic vectors, giving the dimension of the containing space (default is zero). More...
|
|
virtual double | algCoord (const int) const |
| Description method for algebraic vectors, giving coordinate of given index for this vector. More...
|
|
virtual void | algWriteTo (ostream &O) const |
| Description method for algebraic vectors, writing this vector in a given output stream: coordinates for each dimension are written, between paranthesis and separated by commas. More...
|
|
|
template<class T > |
static const T & | min (const T &a, const T &b) |
| Method giving the minimum of two elements. More...
|
|
template<class T > |
static const T & | max (const T &a, const T &b) |
| Method giving the maximum of two elements. More...
|
|
static double | sqr (const double &x) |
| Method giving the square of a double. More...
|
|
static double | mod2pi (const double &theta) |
| Method giving the angle between - (excluded) and (included), which is equal to a given angle modulo 2 . More...
|
|
static double | rad2deg (const double &theta) |
| Method transforming an angle in radian, with between -1 (excluded) and 1 (included), into its equivalent in degree, i.e. More...
|
|
static double | deg2rad (const double &theta) |
| Method transforming an angle in degree, with between -1 (excluded) and 1 (included), into its equivalent in radian, i.e. More...
|
|
static bool | isPositive (const double &x) |
| Method telling whether a double is strictly positive. More...
|
|
static bool | isNegative (const double &x) |
| Method telling whether a double is strictly negative. More...
|
|
static bool | isZero (const double &x) |
| Method comparing a double to zero. More...
|
|
static int | sign (const double &x) |
| Method giving the sign of a double. More...
|
|
ostream & | operator<< (ostream &O, const iSeeML::Object &o) |
| Modification method, writing a description of a ISeeML object in a given output stream. More...
|
|
This class defines compound (or complex, or composed) paths, which are made of a set of basic paths.
Nearly all virtual methods of iSeeML::rob::Path are defined in this class (except className and clone), sub-classes `‘just’' have to define this one and constructors (this is not so easy, as it generally requires a planning method).
- Author
- Alexis Scheuer.
- Version
- 1.0
◆ ArrayPaths()
iSeeML::rob::ArrayPaths::ArrayPaths |
( |
const int |
n | ) |
|
|
inline |
The main constructor only needs a number of paths.
- Parameters
-
n | the number of paths in this array. |
◆ _piece()
Virtual method returning the basic path of given index in the list of which this compound path is made (no verification).
- Parameters
-
index | the index of the desired piece (between 1 and the result of nbPieces). |
- Returns
- the basic path whose index has been given.
- See also
- nbPieces, piece, getPiece.
Implements iSeeML::rob::CompoundPath.
◆ clone()
Description method, giving a copy of the current object.
This clone is dynamically allocated (and can be built easily using a copy constructor), it has to be deleted later.
- Precondition
- memory should not be full. If memory is full and
ISEEML_CHECK_NIL_POINTER
is defined (see CompilerFlags.h), an error message is generated and the program exits.
- Returns
- a copy/clone of the current object.
Implements iSeeML::Object.
◆ nbPieces()
int iSeeML::rob::ArrayPaths::nbPieces |
( |
| ) |
const |
|
inlinevirtual |
Description method, giving the number of pieces of the path.
- Returns
- the number of pieces of the path.
- Version
- 1.1
Implements iSeeML::rob::CompoundPath.
◆ setPath()
void iSeeML::rob::ArrayPaths::setPath |
( |
const int |
index, |
|
|
const bool |
isBasic, |
|
|
iSeeML::rob::Path * |
path |
|
) |
| |
|
inline |
Add a given (dynamically allocated) path to the array.
- Parameters
-
index | the index of the added path, |
isBasic | whether the added path is a basic one, |
path | a pointer on the added path. |
◆ ClassName
const string iSeeML::rob::ArrayPaths::ClassName |
|
static |
The class name is public, as this class can be instanced.
- See also
- className.
The documentation for this class was generated from the following file:
- /mnt/data/ajs/Loria/Compte/Recherche/Prog/C++/ISeeML/include/iSeeML/rob/ArrayPaths.hpp