|
| PointCurve2 () |
| Empty.
|
|
| PointCurve2 (const VectorSet2 &, bool=false) |
| Creates a curve with points.
|
|
| PointCurve2 (const CubicCurve2 &, int, const double &=0.0, const double &=1.0) |
| Creates a point curve from a cubic curve.
|
|
| PointCurve2 (const QuadricCurve2 &, int, const double &=0.0, const double &=1.0) |
| Creates a point curve from a quadric curve.
|
|
| PointCurve2 (const QVector< Vector2 > &, bool=false) |
| Creates a curve with points.
|
|
| PointCurve2 (const QVector< Vector2 > &, const QVector< int > &, bool=false) |
| Create a curve from a set of vertexes and a subset of indexes.
|
|
| ~PointCurve2 () |
| Empty.
|
|
int | Size () const |
| Return the size of the sampled curve.
|
|
Vector2 | Tangent (int) const |
| Compute the tangent at a given point.
|
|
double | Curvature (int) const |
| Compute the curvature at a given point.
|
|
PointCurve | Transform (const Frame &) const |
| Transform the planar point curve into a three dimensional point curve.
|
|
bool | IsClosed () const |
| Check if the curve is closed.
|
|
void | Close () |
| Define the curve as closed.
|
|
double | Length () const |
| Compute the length of the curve.
|
|
double | Sinuosity () const |
| Compute the sinuosity.
|
|
Polygon2 | GetPolygon () const |
| Compute the closed bounding polygon.
|
|
CubicCurve2Set | ToCubicCurve () const |
| Compute the cubic curve passing through all the points of the polyline.
|
|
QuadricCurve2Set | ToQuadricCurve () const |
| Compute the quadric curve passing through all the points of the polyline.
|
|
PointCurve2 | Translated (const Vector2 &) const |
| Return a translated point curve.
|
|
PointCurve2 | Transformed (const Frame2 &) const |
| Return a transformed point curve.
|
|
PointCurve2 | Rotated (const double &) const |
| Return a rotated point curve.
|
|
PointCurve2 | Scaled (const Vector2 &) const |
| Return a scaled point curve.
|
|
double | R (const Vector2 &, double &, int &) const |
| Computes the projection of p onto the piecewise linear curve and returns the squared distance.
|
|
double | R (const Vector2 &, double &, int &, int &) const |
| Computes the projection of p onto the piecewise linear curve, returns the squared distance, and the side with respect to the curve.
|
|
void | Draw (QGraphicsScene &, const QPen &=QPen()) const |
| Draw the point curve.
|
|
| VectorSet2 () |
| Empty.
|
|
| VectorSet2 (const QVector< Vector2 > &) |
| Create a set of vectors.
|
|
| ~VectorSet2 () |
| Empty.
|
|
VectorSet2 | VectorToPoint () const |
| Convert a series of displacements into positions.
|
|
void | Reverse () |
| Reverse the order of the elements.
|
|
int | Size () const |
| Return the size of the set.
|
|
Vector2 | At (int) const |
| Access to element.
|
|
Vector2 & | operator[] (int) |
| Access to element.
|
|
Vector2 | Barycenter () const |
| Compute the barycenter.
|
|
void | Vibrate (const double &) |
| Randomly move the points.
|
|
Box2 | GetBox () const |
| Compute the bounding box.
|
|
Convex2 | GetHull () const |
| Compute the convex hull of the set.
|
|
void | Rotate (const Matrix2 &) |
| Rotate all the points.
|
|
void | Rotate (const double &) |
| Rotate all the points.
|
|
void | Translate (const Vector2 &) |
| Translate all the points.
|
|
void | Scale (const double &) |
| Scale all the points.
|
|
void | Scale (const Vector2 &) |
| Scale all the points.
|
|
VectorSet2 | Transformed (const Frame2 &) const |
| Compute the transformed set.
|
|
VectorSet2 | Translated (const Vector2 &) const |
| Compute the translated set.
|
|
VectorSet2 | Rotated (const double &) const |
| Compute the rotated set.
|
|
VectorSet2 | Scaled (const Vector2 &) const |
| Compute the scaled set.
|
|
VectorSet2 | Cut (const Box2 &) const |
| Return the subset of points that lie inside the box.
|
|
VectorSet2 | Cut (const Octogon2 &) const |
| Return the subset of points that lie inside the octogon.
|
|
QVector< Vector2 > & | Get () |
| Access to the internal structure.
|
|
const QVector< Vector2 > & | Get () const |
| Access to the internal structure.
|
|
int | Nearest (const Vector2 &) const |
| Compute the index of the nearest point to the argument point.
|
|
QVector< Vector2 > | Nearest (const Vector2 &, int) const |
| Compute the k-nearest points to the argument point.
|
|
QVector< int > | NearestIndexes (const Vector2 &, int) const |
| Compute the set of indexes of the k-nearest points to the argument point.
|
|
QVector< int > | NearestIndexes (int, int, const double &=Math::Infinity) const |
| Compute the set of indexes of the k-nearest points to the argument point in the set.
|
|
VectorSet2 | operator+ (const VectorSet2 &) const |
| Append a vector set to another one.
|
|
void | operator+= (const VectorSet2 &) |
| Append a vector set.
|
|
Piecewise point curve in the plane.