nux-0.9.48

nux::SplineKnot Class Reference

#include <Nux/SplineCurveEditor.h>

Data Structures

class  Knot

Public Member Functions

 SplineKnot ()
 SplineKnot (const SplineKnot &Other)
SplineKnotoperator= (const SplineKnot &Other)
void AddKnot (double x, double y, bool selected=false)
bool isKnotSelected (int i) const
const Knotoperator[] (int i) const
Knotoperator[] (int i)
void EraseKnot (int i)
void EraseSelectedKnot ()
void SelectKnot (int i, bool b)
t_u32 GetNumSelectedKnot ()
void SelectAllKnot ()
void UnSelectAllKnot ()
const std::vector< double > GetXArray ()
const std::vector< double > GetYArray ()
int GetNumKnot () const
Knot GetKnot (int i) const
void Reset ()

Constructor & Destructor Documentation

nux::SplineKnot::SplineKnot ( ) [inline]
nux::SplineKnot::SplineKnot ( const SplineKnot Other) [inline]

Member Function Documentation

void nux::SplineKnot::AddKnot ( double  x,
double  y,
bool  selected = false 
) [inline]

Referenced by Reset().

void nux::SplineKnot::EraseKnot ( int  i) [inline]

References GetNumKnot().

void nux::SplineKnot::EraseSelectedKnot ( ) [inline]
Knot nux::SplineKnot::GetKnot ( int  i) const [inline]
int nux::SplineKnot::GetNumKnot ( ) const [inline]
t_u32 nux::SplineKnot::GetNumSelectedKnot ( ) [inline]
const std::vector<double> nux::SplineKnot::GetXArray ( ) [inline]
const std::vector<double> nux::SplineKnot::GetYArray ( ) [inline]
bool nux::SplineKnot::isKnotSelected ( int  i) const [inline]

References GetNumKnot().

SplineKnot& nux::SplineKnot::operator= ( const SplineKnot Other) [inline]

References Reset().

const Knot& nux::SplineKnot::operator[] ( int  i) const [inline]
Knot& nux::SplineKnot::operator[] ( int  i) [inline]
void nux::SplineKnot::Reset ( ) [inline]

Erase all knots.

References AddKnot().

Referenced by operator=().

void nux::SplineKnot::SelectAllKnot ( ) [inline]
void nux::SplineKnot::SelectKnot ( int  i,
bool  b 
) [inline]
void nux::SplineKnot::UnSelectAllKnot ( ) [inline]

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