PointChain2D Struct Reference

Chain of points in 2D (polygone), scope: Grid2D. More...

#include <aigrid.h>

List of all members.

Public Member Functions

 PointChain2D ()
 default constructor
 PointChain2D (AI_Sign_Enum type, PointChain2D pc)
 Build by existing PointChain2D.
 PointChain2D (AI_Base_Enum baseType, Blade2D blade, DispoHypParam dhp, double par0, double par1)
 Build by Blade2D.
 PointChain2D (AI_Chain_Enum chainType, AI_Sign_Enum dir0, PointChain2D pc0, AI_Sign_Enum dir1, PointChain2D pc1)
 Build by chaining of point chains using AI_Chain2.
 PointChain2D (AI_Chain_Enum chainType, AI_Sign_Enum dir0, PointChain2D pc0, AI_Sign_Enum dir1, PointChain2D pc1, AI_Sign_Enum dir2, PointChain2D pc2)
 Build by chaining of point chains using AI_Chain3, see similar constructor using AI_Chain2.
 PointChain2D (AI_Chain_Enum chainType, AI_Sign_Enum dir0, PointChain2D pc0, AI_Sign_Enum dir1, PointChain2D pc1, AI_Sign_Enum dir2, PointChain2D pc2, AI_Sign_Enum dir3, PointChain2D pc3)
 Build by chaining of point chains using AI_Chain4, see similar constructor using AI_Chain2.
 PointChain2D (AI_Chain_Enum chainType, AI_Sign_Enum dir0, PointChain2D pc0, AI_Sign_Enum dir1, PointChain2D pc1, AI_Sign_Enum dir2, PointChain2D pc2, AI_Sign_Enum dir3, PointChain2D pc3, AI_Sign_Enum dir4, PointChain2D pc4)
 Build by chaining of point chains using AI_Chain5, see similar constructor using AI_Chain2.
 PointChain2D (AI_Bez_Enum bezType, DispoHypParam dhp, Vec2D pos0, Vec2D pos1)
 Build by simple bezier base on points using AI_Bez2 or AI_LinBez2.
 PointChain2D (AI_Bez_Enum bezType, DispoHypParam dhp, Vec2D pos0, Vec2D pos1, Vec2D pos2)
 Build by simple bezier base on points using AI_Bez3 or AI_LinBez3, see similar constructor using AI_Bez2.
 PointChain2D (AI_Bez_Enum bezType, DispoHypParam dhp, Vec2D pos0, Vec2D pos1, Vec2D pos2, Vec2D pos3)
 Build by simple bezier base on points using AI_Bez4 or AI_LinBez4, see similar constructor using AI_Bez2.
 PointChain2D (AI_Extract_Enum type, PointChain2D pc, int index0, int index1)
 Build by extracting from an existing PointChain2D.
 PointChain2D (AI_Transpose_Enum type, PointChain2D pc, Vec2D vec)
 Build by transposing an existing PointChain2D.
 PointChain2D (AI_Abeam_Enum type, PointChain2D pc, double dist)
 Build by transposing an existing PointChain2D normal (left) to local line direction.
Vec2D Vec2DByIndex (int index)
 Position at node index.
Vec2D NormVec2DByIndex (int index)
 Unity vector normal to point chain at node index.
void Append (AI_Sign_Enum dir, PointChain2D ptChExt)
 Append a point chain.


Detailed Description

Chain of points in 2D (polygone), scope: Grid2D.


Constructor & Destructor Documentation

PointChain2D::PointChain2D AI_Sign_Enum  type,
PointChain2D  pc
 

Build by existing PointChain2D.

Parameters:
type AI_Pos direct copy, AI_Neg reverse direction
pc base pointchain

PointChain2D::PointChain2D AI_Base_Enum  baseType,
Blade2D  blade,
DispoHypParam  dhp,
double  par0,
double  par1
 

Build by Blade2D.

Parameters:
baseType is AI_BladeBase
blade is the blade to be basis
dhp includes hyperbolic disposition of points and number of line segments
par0 start parameter on blade
par1 end parameter on blade

PointChain2D::PointChain2D AI_Chain_Enum  chainType,
AI_Sign_Enum  dir0,
PointChain2D  pc0,
AI_Sign_Enum  dir1,
PointChain2D  pc1
 

Build by chaining of point chains using AI_Chain2.

Parameters:
chainType marks number of pointChains to be chained, set to AI_Chain2
dir0 index direction of first base pointchain
pc0 first base pointchain
dir1 index direction of second base pointchain
pc1 second base pointchain
Consider alternative similar constructions using AI_Chain3 ,AI_Chain4, AI_Chain5

PointChain2D::PointChain2D AI_Bez_Enum  bezType,
DispoHypParam  dhp,
Vec2D  pos0,
Vec2D  pos1
 

Build by simple bezier base on points using AI_Bez2 or AI_LinBez2.

Parameters:
bezType marks number of base points, set to AI_Bez2 or AI_LinBez2
dhp includes hyperbolic disposition of points and number of line segments
pos0 first point
pos1 second point
Consider alternative similar constructions using AI_Bez3 ,AI_Bez4, AI_LinBez3, AI_LinBez4
For the 'AI_Bez..' the dhp is applied on the nondimensional bezier length parameter
For the 'AI_LinBez..' the dhp is applied on the nondimensional line-length

PointChain2D::PointChain2D AI_Extract_Enum  type,
PointChain2D  pc,
int  index0,
int  index1
 

Build by extracting from an existing PointChain2D.

Parameters:
type set to AI_Extract
pc base pointchain
index0 first extract index on base pointchain
index1 last extract index on base pointchain

PointChain2D::PointChain2D AI_Transpose_Enum  type,
PointChain2D  pc,
Vec2D  vec
 

Build by transposing an existing PointChain2D.

Parameters:
type set to AI_Transpose
pc base pointchain
vec transposition vector

PointChain2D::PointChain2D AI_Abeam_Enum  type,
PointChain2D  pc,
double  dist
 

Build by transposing an existing PointChain2D normal (left) to local line direction.

Parameters:
type set to AI_Abeam
pc base pointchain
dist offset distance


Member Function Documentation

void PointChain2D::Append AI_Sign_Enum  dir,
PointChain2D  ptChExt
 

Append a point chain.

Parameters:
dir orientation of appending point-chain
ptChExt point chain to be appended

Vec2D PointChain2D::NormVec2DByIndex int  index  ) 
 

Unity vector normal to point chain at node index.

The point chain direction is estimated by parabolical connection of predecessor, current node and successor.The direction is turnd by 90 deg against mathematicalpostitive rotation (in fact: let y turn to x).


Generated on Thu Jul 29 10:53:07 2010 for AiGrid by  doxygen 1.4.6-NO