proland::Vertex Struct Reference
[graph]

Represents a vertex inside a curve. More...

#include <Curve.h>

List of all members.

Public Member Functions

 Vertex (double x, double y, float s, bool isControl)
 Creates a new Vertex.
 Vertex (vec2d p, float s, float l, bool isControl)
 Creates a new Vertex.
 Vertex (const Vertex &p)
 Creates a copy of the given Vertex.

Public Attributes

float s
 Pseudo curvilinear coordinate along the curve.
float l
 Real curvilinear coordinate along the curve.
bool isControl
 If this point is a control or regular vertex.

Detailed Description

Represents a vertex inside a curve.

Determines the position and aspect of the curve.

Author:
Antoine Begault, Guillaume Piolat

Constructor & Destructor Documentation

proland::Vertex::Vertex ( double  x,
double  y,
float  s,
bool  isControl 
) [inline]

Creates a new Vertex.

Parameters:
x x coordinate.
y y coordinate.
s pseudo curvilinear coordinate.
isControl if this point is a control or regular vertex.
proland::Vertex::Vertex ( vec2d  p,
float  s,
float  l,
bool  isControl 
) [inline]

Creates a new Vertex.

Parameters:
p XY coords
s pseudo curvilinear coordinate.
l real curvilinear coordinate.
isControl if this point is a control or regular vertex.
proland::Vertex::Vertex ( const Vertex p  )  [inline]

Creates a copy of the given Vertex.

Parameters:
p a Vertex.

Member Data Documentation

If this point is a control or regular vertex.

Real curvilinear coordinate along the curve.

This coordinate is not automatically computed. It must be computed explicitely with Curve::computeCurvilinearLength(). The initial value is -1.

Pseudo curvilinear coordinate along the curve.

This coordinate is computed in a recursive way during curve subdivisions (see Curve::flatten()). For top level curves it must be computed explicitely with Curve::computeCurvilinearCoordinates(). The initial value is -1.


Generated on Sat May 12 09:42:47 2012 for proland by  doxygen 1.6.1