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

Bezier Class Reference

Class for Bezier curves. More...

#include <bezier.hpp>

Inheritance diagram for Bezier:

SkinObject List of all members.

Public Types

enum  Flag_t

Public Member Functions

int getNbCtrlPoints () const
 Get the number of control points used to define the curve.
float getNearestPercent (int x, int y) const
float getMinDist (int x, int y) const
 Return the distance of (x, y) to the curve.
void getPoint (float t, int &x, int &y) const
int getWidth () const
 Get the width (maximum abscissa) of the curve.
int getHeight () const
 Get the height (maximum ordinate) of the curve.

Detailed Description

Class for Bezier curves.

Definition at line 36 of file bezier.hpp.


Member Enumeration Documentation

enum Bezier::Flag_t
 

Values to indicate which coordinate(s) must be checked to consider that two points are distinct

Definition at line 41 of file bezier.hpp.


Member Function Documentation

float Bezier::getNearestPercent int  x,
int  y
const
 

Return the percentage (between 0 and 1) of the curve point nearest from (x, y)

Definition at line 103 of file bezier.cpp.

Referenced by Anchor::canHang(), and CtrlSliderBg::handleEvent().

void Bezier::getPoint float  t,
int &  x,
int &  y
const
 

Get the coordinates of the point at t percent of the curve (t must be between 0 and 1)

Definition at line 118 of file bezier.cpp.

Referenced by Anchor::canHang(), CtrlSliderCursor::draw(), and CtrlSliderCursor::mouseOver().


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:03 2005 for vlc-0.8.4a by  doxygen 1.4.2