Panda3D
Public Member Functions | Static Public Member Functions | List of all members
NurbsCurveInterface Class Reference

This abstract class defines the interface only for a Nurbs-style curve, with knots and coordinates in homogeneous space. More...

Inheritance diagram for NurbsCurveInterface:
NurbsCurve

Public Member Functions

int appendCv (const LVecBase3 v)
 
int appendCv (const LVecBase4 v)
 
int appendCv (float x, float y, float z)
 
LVecBase4 getCv (int n)
 
LVecBase3 getCvPoint (int n)
 Returns the position of the indicated CV. More...
 
list getCvs ()
 
float getCvWeight (int n)
 Returns the weight of the indicated CV. More...
 
float getKnot (int n)
 
list getKnots ()
 
int getNumCvs ()
 
int getNumKnots ()
 
int getOrder ()
 
bool insertCv (float t)
 
 removeAllCvs ()
 
bool removeCv (int n)
 
bool setCv (int n, const LVecBase4 v)
 
bool setCvPoint (int n, const LVecBase3 v)
 Repositions the indicated CV. More...
 
bool setCvPoint (int n, float x, float y, float z)
 Repositions the indicated CV. More...
 
bool setCvWeight (int n, float w)
 Sets the weight of the indicated CV without affecting its position in 3-d space. More...
 
bool setKnot (int n, float t)
 
 setOrder (int order)
 
 writeCv (Ostream out, int n)
 

Static Public Member Functions

static TypeHandle getClassType ()
 

Detailed Description

This abstract class defines the interface only for a Nurbs-style curve, with knots and coordinates in homogeneous space.

The NurbsCurve class inherits both from this and from ParametricCurve.

Member Function Documentation

◆ appendCv() [1/3]

int appendCv ( const LVecBase3  v)

◆ appendCv() [2/3]

int appendCv ( const LVecBase4  v)

◆ appendCv() [3/3]

int appendCv ( float  x,
float  y,
float  z 
)

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getCv()

LVecBase4 getCv ( int  n)

◆ getCvPoint()

LVecBase3 getCvPoint ( int  n)

Returns the position of the indicated CV.

◆ getCvs()

list getCvs ( )

◆ getCvWeight()

float getCvWeight ( int  n)

Returns the weight of the indicated CV.

◆ getKnot()

float getKnot ( int  n)

◆ getKnots()

list getKnots ( )

◆ getNumCvs()

int getNumCvs ( )

◆ getNumKnots()

int getNumKnots ( )

◆ getOrder()

int getOrder ( )

◆ insertCv()

bool insertCv ( float  t)

◆ removeAllCvs()

removeAllCvs ( )

◆ removeCv()

bool removeCv ( int  n)

◆ setCv()

bool setCv ( int  n,
const LVecBase4  v 
)

◆ setCvPoint() [1/2]

bool setCvPoint ( int  n,
const LVecBase3  v 
)

Repositions the indicated CV.

Returns true if successful, false otherwise.

◆ setCvPoint() [2/2]

bool setCvPoint ( int  n,
float  x,
float  y,
float  z 
)

Repositions the indicated CV.

Returns true if successful, false otherwise.

◆ setCvWeight()

bool setCvWeight ( int  n,
float  w 
)

Sets the weight of the indicated CV without affecting its position in 3-d space.

◆ setKnot()

bool setKnot ( int  n,
float  t 
)

◆ setOrder()

setOrder ( int  order)

◆ writeCv()

writeCv ( Ostream  out,
int  n 
)