Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

VPBezier Class Reference

A Bezier curve. More...

#include <vpbezier.h>

Inheritance diagram for VPBezier:

VPCurve VPGraphicObj VPSceneNode VPMemoryObj List of all members.

Public Member Functions

 VPBezier ()
VPPoint4D GetControlPoint (int i)
 Returns a copy a control point.
void SetControlPoint (int i, const VPPoint4D &point)
 Assigns a (copy of a) control point.
virtual void GetPoint (double t, VPPoint4D *result)
 Returns a point of the curve.

Detailed Description

A Bezier curve.

A Bezier curve defined by 4 control points.

Definition at line 17 of file vpbezier.h.


Constructor & Destructor Documentation

VPBezier::VPBezier  ) 
 

Definition at line 23 of file vpbezier.cpp.

References VPCurve::controlPoints, and VPPoint4D::ORIGIN().


Member Function Documentation

VPPoint4D VPBezier::GetControlPoint int  i  ) 
 

Returns a copy a control point.

Definition at line 31 of file vpbezier.cpp.

References VPCurve::controlPoints.

void VPBezier::GetPoint double  t,
VPPoint4D result
[virtual]
 

Returns a point of the curve.

Parameters:
t [in] curve parameter describing the desired point.
result [out] the point at position t.

Implements VPCurve.

Definition at line 43 of file vpbezier.cpp.

References VPCurve::controlPoints.

Referenced by VPDof::ComputeLIM(), VPModifier::GetMax(), VPModifier::GetMin(), VPDof::MoveTo(), and VPDof::Transform().

void VPBezier::SetControlPoint int  i,
const VPPoint4D point
 

Assigns a (copy of a) control point.

Definition at line 37 of file vpbezier.cpp.

References VPCurve::controlPoints.


The documentation for this class was generated from the following files:
Generated on Tue Sep 6 10:00:12 2005 for VPAT by  doxygen 1.4.4