#include <nurbsGL.h>
Inheritance diagram for PLib::NurbsCurveGL:
Public Methods | |
NurbsCurveGL () | |
NurbsCurveGL (const NurbsCurvef &nurb) | |
NurbsCurveGL (const NurbsCurveGL &nurb) | |
NurbsCurveGL (const Vector< HPoint3Df > &P1, const Vector< float > &U1, int degree=3) | |
NurbsCurveGL (const Vector< Point3Df > &P1, const Vector< float > &W, const Vector< float > &U1, int degree=3) | |
void | gluNurbs () const |
void | point (float &u, float &v, int pSize, const Color &colorP, int cp_flag=0) const |
NurbsCurveGL & | operator= (const NurbsCurveGL &a) |
NurbsCurveGL & | operator= (const NurbsCurvef &a) |
void | resetBoundingBox () |
void | resetCPoints () |
void | resetPolygon () |
void | resetKnots () |
ObjectGL * | copy () |
int | read (ifstream &fin) |
int | write (ofstream &fout) const |
void | applyTransform () |
void | modifyPoint (float u, float v, float dx, float dy, float dz) |
void | setSym (int set, int uDir, float x, float y, float z, float w) |
Definition at line 833 of file nurbsGL.h.
|
apply the local transformation to the curve.
Apply the local transformation to the curve. This is necessary if you want to get the proper position for the control points before doing anymore processing on them.
Reimplemented from PLib::ObjectGL. Definition at line 1691 of file nurbsGL.cpp. References PLib::MatrixRT::scale, and PLib::NurbsCurve< float, N >::transform. |
|
creates a nurbs curve for OpenGL.
This function calls between a gluBeginCurve/gluEndCurve the proper functions to generate a NURBS curve.
Implements PLib::NurbsGL. Definition at line 1602 of file nurbsGL.cpp. |
|
Modifies a point on the curve.
Implements PLib::NurbsGL. Definition at line 3014 of file nurbsGL.cpp. |
|
Copies another Nurbs Curve GL.
Definition at line 2969 of file nurbsGL.cpp. |
|
Copies another Nurbs Curve GL.
Definition at line 2954 of file nurbsGL.cpp. |
|
draws a point at the location C(u).
This function calls between a glBegin/glEnd the proper functions to represent the point which is at C(u) on the curve.
Implements PLib::NurbsGL. Definition at line 2068 of file nurbsGL.cpp. References PLib::NurbsCurve< float, N >::hpointAt. |
|
Reads the information from a stream.
Reimplemented from PLib::NurbsCurveSP< float, 3 >. Definition at line 3710 of file nurbsGL.cpp. References PLib::ObjectGL::setName. |
|
resets the minP and maxP values of bbox.
Resets the minP and maxP values for the bouding box.
Reimplemented from PLib::NurbsGL. Definition at line 1543 of file nurbsGL.cpp. References PLib::ParaCurve< float, N >::extremum. |
|
reset the control point information.
Reset the control points information stored in cpoints.
Reimplemented from PLib::NurbsGL. Definition at line 1790 of file nurbsGL.cpp. |
|
Reset the knots information.
Reset the knot information stored in knots.
Reimplemented from PLib::NurbsGL. Definition at line 1838 of file nurbsGL.cpp. References PLib::ParaCurve< float, N >::pointAt. |
|
Writes a NurbsCurveGL to an output stream.
Reimplemented from PLib::ObjectGL. Definition at line 3782 of file nurbsGL.cpp. |