Main Page   Class Hierarchy   Compound List   File List   Compound Members  

PLib::NurbsGL Class Reference

a Virtual NURBS object class. More...

#include <nurbsGL.h>

Inheritance diagram for PLib::NurbsGL:

PLib::ObjectGL PLib::HNurbsSurfaceGL PLib::NurbsCurveGL PLib::NurbsSurfaceGL PLib::SimpleNurbsCurveGL List of all members.

Public Methods

 NurbsGL ()
virtual ~NurbsGL ()
virtual NurbsGL & operator= (const NurbsGL &a)
virtual void gluNurbs () const=0
void setNurbsRenderer (GLUnurbsObj *nobj)
virtual void glObject () const
virtual void point (float &u, float &v, int pSize, const Color &colorP, int cp_flag=0) const=0
virtual void resetAll ()
virtual void resetBoundingBox ()
virtual void resetCPoints ()
virtual void resetPolygon ()
virtual void resetKnots ()
void setObjectColor (const Color &a, const Color &b, const Color &c)
void setBBoxColor (const Color &a, const Color &b, const Color &c, const Color &d, const Color &e, const Color &f)
void setPolygonColor (const Color &a, const Color &b, const Color &c)
void setCPointColor (const Color &a, const Color &b, const Color &c, const Color &d)
void setKnotsColor (const Color &a, const Color &b, const Color &c)
void viewBBox ()
void viewCPoints ()
void viewCpolygon ()
void viewNurbs ()
void viewKnots ()
void hideBBox ()
void hideCPoints ()
void hideCpolygon ()
void hideNurbs ()
void hideKnots ()
void select ()
void deselect ()
void activate ()
void deactivate ()
virtual void setSym (int set, int uDir, float x, float y, float z, float w)=0
virtual void modifyPoint (float u, float v, float dx, float dy, float dz)=0
int editSurfacePoints () const
int editControlPoints () const
int editSurfacePoints (int a)
int editControlPoints (int a)
int editFixPoints () const
int editFixPoints (int a)
void setULines (int u)
void setVLines (int v)
int ULines () const
int VLines () const

Public Attributes

Color colorCP
Color colorCP0
Color colorPolygon
Color colorKnot
ObjectListGL cpoints
ObjectListGL knots
ObjectGLpolygon
BoundingBoxGL bbox
ObjectGLState nurbsState

Protected Attributes

int editSP
int editFix
GLUnurbsObj * nurbsRenderer
int nUlines
int nVlines

Friends

NurbsGL * readNurbsObject (const char *filename)

Detailed Description

a Virtual NURBS object class.

Author:
Philippe Lavoie
Date:
28 September 1997

Definition at line 744 of file nurbsGL.h.


Constructor & Destructor Documentation

PLib::NurbsGL::NurbsGL  
 

the default constructor.

Initialized the colors of the objects.

Author:
Philippe Lavoie
Date:
23 September 1997

Definition at line 1418 of file nurbsGL.cpp.


Member Function Documentation

void PLib::NurbsGL::glObject   const [virtual]
 

displays the object if it's not hiding.

Displays the object if it's not hiding.

Author:
Philippe Lavoie
Date:
23 September 1997

Implements PLib::ObjectGL.

Reimplemented in PLib::SimpleNurbsCurveGL.

Definition at line 1446 of file nurbsGL.cpp.

NurbsGL & PLib::NurbsGL::operator= const NurbsGL &    a [virtual]
 

Copies another Nurbs Curve GL.

Parameters:
a  the Nurbs curve to copy
Author:
Philippe Lavoie
Date:
6 November 1997

Definition at line 2927 of file nurbsGL.cpp.


Friends And Related Function Documentation

NurbsGL * readNurbsObject const char *    filename [friend]
 

reads a Nurb object from a file.

Reads a NURBS object from a file. The routine can read a Nurbs curve or surface.

Parameters:
filename  the name of the file to read
o  a pointer to a Nurbs Object. If this pointer as any value upon entry, the old entry is deleted first.
Returns:
1 if the Nurbs object was read succesfully, 0 otherwise
Warning:
Calling this function without a proper curve initialized might result in strange results.
Author:
Philippe Lavoie
Date:
23 September 1997

Definition at line 1482 of file nurbsGL.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 13:27:00 2003 for NURBS++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002