h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

CurvePoint Class Reference

#include <Curve.h>

Inheritance diagram for CurvePoint:

Interface0D StrokeVertex List of all members.

Detailed Description

Class to represent a point of a curve. A CurvePoint can be any point of a 1D curve (it doesn't have to be a vertex of the curve). Any Interface1D is built upon ViewEdges, themselves built upon FEdges. Therefore, a curve is basically a polyline made of a list SVertex. Thus, a CurvePoint is built by lineraly interpolating two SVertex. CurvePoint can be used as virtual points while querying 0D information along a curve at a given resolution.


Public Member Functions

virtual string getExactTypeName () const
virtual real getX () const
virtual real getY () const
virtual real getZ () const
virtual Vec3f getPoint3D () const
virtual real getProjectedX () const
virtual real getProjectedY () const
virtual real getProjectedZ () const
virtual Vec2f getPoint2D () const
virtual FEdgegetFEdge (Interface0D &inter)
virtual Id getId () const
virtual Nature::VertexNature getNature () const
virtual SVertexcastToSVertex ()
virtual ViewVertexcastToViewVertex ()
virtual NonTVertexcastToNonTVertex ()
virtual TVertexcastToTVertex ()
 CurvePoint ()
 CurvePoint (SVertex *iA, SVertex *iB, float t2d)
 CurvePoint (CurvePoint *iA, CurvePoint *iB, float t2d)
 CurvePoint (const CurvePoint &iBrother)
CurvePointoperator= (const CurvePoint &iBrother)
virtual ~CurvePoint ()
bool operator== (const CurvePoint &b)
SVertexA ()
SVertexB ()
float t2d () const
void SetA (SVertex *iA)
void SetB (SVertex *iB)
void SetT2d (float t)
real curvatureFredo () const

Constructor & Destructor Documentation

CurvePoint  ) 
 

Defult Constructor.

CurvePoint SVertex iA,
SVertex iB,
float  t2d
 

Builds a CurvePoint from two SVertex and an interpolation parameter.

Parameters:
iA The first SVertex
iB The second SVertex
t2d A 2D interpolation parameter used to linearly interpolate iA and iB

CurvePoint CurvePoint iA,
CurvePoint iB,
float  t2d
 

Builds a CurvePoint from two CurvePoint and an interpolation parameter.

Parameters:
iA The first CurvePoint
iB The second CurvePoint
t2d The 2D interpolation parameter used to linearly interpolate iA and iB.

CurvePoint const CurvePoint iBrother  ) 
 

Copy Constructor.

virtual ~CurvePoint  )  [inline, virtual]
 

Destructor


Member Function Documentation

SVertex* A  )  [inline]
 

Returns the first SVertex upon which the CurvePoint is built.

SVertex* B  )  [inline]
 

Returns the second SVertex upon which the CurvePoint is built.

virtual NonTVertex* castToNonTVertex  )  [inline, virtual]
 

Cast the Interface0D in NonTVertex if it can be.

Reimplemented from Interface0D.

virtual SVertex* castToSVertex  )  [inline, virtual]
 

Cast the Interface0D in SVertex if it can be.

Reimplemented from Interface0D.

virtual TVertex* castToTVertex  )  [inline, virtual]
 

Cast the Interface0D in TVertex if it can be.

Reimplemented from Interface0D.

virtual ViewVertex* castToViewVertex  )  [inline, virtual]
 

Cast the Interface0D in ViewVertex if it can be.

Reimplemented from Interface0D.

real curvatureFredo  )  const
 

angle in radians

virtual string getExactTypeName  )  const [inline, virtual]
 

Returns the string "CurvePoint"

Reimplemented from Interface0D.

Reimplemented in StrokeVertex.

virtual FEdge* getFEdge Interface0D inter  )  [virtual]
 

Returns the FEdge that lies between this Interface0D and the Interface0D given as argument.

Reimplemented from Interface0D.

virtual Id getId  )  const [inline, virtual]
 

Returns the CurvePoint's Id

Reimplemented from Interface0D.

virtual Nature::VertexNature getNature  )  const [inline, virtual]
 

Returns the CurvePoint's Nature

Reimplemented from Interface0D.

virtual Vec2f getPoint2D  )  const [inline, virtual]
 

Returns the 2D point.

Reimplemented from Interface0D.

virtual Vec3f getPoint3D  )  const [inline, virtual]
 

Returns the 3D point.

Reimplemented from Interface0D.

virtual real getProjectedX  )  const [inline, virtual]
 

Returns the projected 3D X coordinate of the point

Reimplemented from Interface0D.

virtual real getProjectedY  )  const [inline, virtual]
 

Returns the projected 3D Y coordinate of the point

Reimplemented from Interface0D.

virtual real getProjectedZ  )  const [inline, virtual]
 

Returns the projected 3D Z coordinate of the point

Reimplemented from Interface0D.

virtual real getX  )  const [inline, virtual]
 

Returns the 3D X coordinate of the point

Reimplemented from Interface0D.

virtual real getY  )  const [inline, virtual]
 

Returns the 3D Y coordinate of the point

Reimplemented from Interface0D.

virtual real getZ  )  const [inline, virtual]
 

Returns the 3D Z coordinate of the point

Reimplemented from Interface0D.

CurvePoint& operator= const CurvePoint iBrother  ) 
 

Operator =

bool operator== const CurvePoint b  )  [inline]
 

Operator ==

void SetA SVertex iA  )  [inline]
 

Sets the first SVertex upon which to build the CurvePoint.

void SetB SVertex iB  )  [inline]
 

Sets the second SVertex upon which to build the CurvePoint.

void SetT2d float  t  )  [inline]
 

Sets the 2D interpolation parameter to use.

float t2d  )  const [inline]
 

Returns the interpolation parameter.


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