.TH "SoIndexedNurbsSurface" 3 "Thu May 29 2014" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoIndexedNurbsSurface \- .PP The \fBSoIndexedNurbsSurface\fP class can be used to render NURBS surfaces\&. .PP It is very similar to the \fBSoNurbsSurface\fP class, but controlpoints can be specified using indices\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoShape\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const " .br .RI "\fIReturns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for run-time type checking and 'downward' casting\&. \fP" .ti -1c .RI "\fBSoIndexedNurbsSurface\fP (void)" .br .ti -1c .RI "virtual void \fBGLRender\fP (\fBSoGLRenderAction\fP *action)" .br .ti -1c .RI "virtual void \fBrayPick\fP (\fBSoRayPickAction\fP *action)" .br .ti -1c .RI "virtual void \fBgetPrimitiveCount\fP (\fBSoGetPrimitiveCountAction\fP *action)" .br .ti -1c .RI "void \fBsendPrimitive\fP (\fBSoAction\fP *, \fBSoPrimitiveVertex\fP *)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "\fBSoSFInt32\fP \fBnumUControlPoints\fP" .br .ti -1c .RI "\fBSoSFInt32\fP \fBnumVControlPoints\fP" .br .ti -1c .RI "\fBSoMFInt32\fP \fBcoordIndex\fP" .br .ti -1c .RI "\fBSoMFFloat\fP \fBuKnotVector\fP" .br .ti -1c .RI "\fBSoMFFloat\fP \fBvKnotVector\fP" .br .ti -1c .RI "\fBSoSFInt32\fP \fBnumSControlPoints\fP" .br .ti -1c .RI "\fBSoSFInt32\fP \fBnumTControlPoints\fP" .br .ti -1c .RI "\fBSoMFInt32\fP \fBtextureCoordIndex\fP" .br .ti -1c .RI "\fBSoMFFloat\fP \fBsKnotVector\fP" .br .ti -1c .RI "\fBSoMFFloat\fP \fBtKnotVector\fP" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual const \fBSoFieldData\fP * \fBgetFieldData\fP (void) const " .br .ti -1c .RI "virtual \fB~SoIndexedNurbsSurface\fP ()" .br .ti -1c .RI "virtual void \fBgeneratePrimitives\fP (\fBSoAction\fP *action)" .br .ti -1c .RI "virtual void \fBcomputeBBox\fP (\fBSoAction\fP *action, \fBSbBox3f\fP &box, \fBSbVec3f\fP ¢er)" .br .ti -1c .RI "\fBSoDetail\fP * \fBcreateTriangleDetail\fP (\fBSoRayPickAction\fP *action, const \fBSoPrimitiveVertex\fP *v1, const \fBSoPrimitiveVertex\fP *v2, const \fBSoPrimitiveVertex\fP *v3, \fBSoPickedPoint\fP *pp)" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static const \fBSoFieldData\fP ** \fBgetFieldDataPtr\fP (void)" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBSoIndexedNurbsSurface\fP class can be used to render NURBS surfaces\&. .PP It is very similar to the \fBSoNurbsSurface\fP class, but controlpoints can be specified using indices\&. \fBFILE FORMAT/DEFAULTS:\fP .PP .nf IndexedNurbsSurface { numUControlPoints 0 numVControlPoints 0 coordIndex 0 uKnotVector 0 vKnotVector 0 numSControlPoints 0 numTControlPoints 0 textureCoordIndex -1 sKnotVector 0 tKnotVector 0 } .fi .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoIndexedNurbsSurface::SoIndexedNurbsSurface (void)" Constructor\&. .SS "SoIndexedNurbsSurface::~SoIndexedNurbsSurface ()\fC [protected]\fP, \fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoIndexedNurbsSurface::getTypeId (void) const\fC [virtual]\fP" .PP Returns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for run-time type checking and 'downward' casting\&. Usage example: .PP .PP .nf void foo(SoNode * node) { if (node->getTypeId() == SoFile::getClassTypeId()) { SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type } } .fi .PP .PP For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in \fIall\fP subclasses\&. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance \fBInventor/nodes/SoSubNode\&.h\fP (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine\&.h (for engine classes) and so on\&. .PP For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups\&. .PP Reimplemented from \fBSoShape\fP\&. .SS "const \fBSoFieldData\fP * SoIndexedNurbsSurface::getFieldData (void) const\fC [protected]\fP, \fC [virtual]\fP" Returns a pointer to the class-wide field data storage object for this instance\&. If no fields are present, returns \fCNULL\fP\&. .PP Reimplemented from \fBSoShape\fP\&. .SS "void SoIndexedNurbsSurface::GLRender (\fBSoGLRenderAction\fP *action)\fC [virtual]\fP" Action method for the \fBSoGLRenderAction\fP\&. .PP This is called during rendering traversals\&. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method\&. .PP Reimplemented from \fBSoShape\fP\&. .SS "void SoIndexedNurbsSurface::rayPick (\fBSoRayPickAction\fP *action)\fC [virtual]\fP" Calculates picked point based on primitives generated by subclasses\&. .PP Reimplemented from \fBSoShape\fP\&. .SS "void SoIndexedNurbsSurface::getPrimitiveCount (\fBSoGetPrimitiveCountAction\fP *action)\fC [virtual]\fP" Action method for the \fBSoGetPrimitiveCountAction\fP\&. .PP Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the \fIaction\fP\&. .PP Nodes influencing how geometry nodes calculates their primitive count also overrides this method to change the relevant state variables\&. .PP Reimplemented from \fBSoShape\fP\&. .SS "void SoIndexedNurbsSurface::sendPrimitive (\fBSoAction\fP *, \fBSoPrimitiveVertex\fP *)" This method is part of the original SGI Inventor API, but not implemented in Coin, as it looks like a method that should probably have been private in Open Inventor\&. .SS "void SoIndexedNurbsSurface::generatePrimitives (\fBSoAction\fP *action)\fC [protected]\fP, \fC [virtual]\fP" The method implements action behavior for shape nodes for \fBSoCallbackAction\fP\&. It is invoked from \fBSoShape::callback()\fP\&. (Subclasses should \fInot\fP override \fBSoNode::callback()\fP\&.) .PP The subclass implementations uses the convenience methods \fBSoShape::beginShape()\fP, \fBSoShape::shapeVertex()\fP, and \fBSoShape::endShape()\fP, with \fBSoDetail\fP instances, to pass the primitives making up the shape back to the caller\&. .PP Implements \fBSoShape\fP\&. .SS "void SoIndexedNurbsSurface::computeBBox (\fBSoAction\fP *action, \fBSbBox3f\fP &box, \fBSbVec3f\fP ¢er)\fC [protected]\fP, \fC [virtual]\fP" Calculates the bounding box of all control points and sets the center to the average of these points\&. .PP Implements \fBSoShape\fP\&. .SS "\fBSoDetail\fP * SoIndexedNurbsSurface::createTriangleDetail (\fBSoRayPickAction\fP *action, const \fBSoPrimitiveVertex\fP *v1, const \fBSoPrimitiveVertex\fP *v2, const \fBSoPrimitiveVertex\fP *v3, \fBSoPickedPoint\fP *pp)\fC [protected]\fP, \fC [virtual]\fP" Will create triangle detail for a \fBSoPickedPoint\fP\&. This method will only be called internally, when \fBgeneratePrimitives()\fP is used for picking (\fBSoShape::rayPick()\fP is not overridden)\&. .PP This method returns \fCNULL\fP in Open Inventor, and subclasses will need to override this method to create details for a \fBSoPickedPoint\fP\&. .PP This is not necessary with Coin\&. Of course, if you choose to override it, it will work in the same way as Open Inventor\&. .PP For this to work, you must supply a face or line detail when generating primitives\&. If you supply \fCNULL\fP for the detail argument in \fBSoShape::beginShape()\fP, you'll have to override this method\&. .PP Reimplemented from \fBSoShape\fP\&. .SH "Member Data Documentation" .PP .SS "\fBSoSFInt32\fP SoIndexedNurbsSurface::numUControlPoints" Number of control points in the U direction\&. .SS "\fBSoSFInt32\fP SoIndexedNurbsSurface::numVControlPoints" Number of control points in the V direction\&. .SS "\fBSoMFInt32\fP SoIndexedNurbsSurface::coordIndex" The coordinate control point indices\&. .SS "\fBSoMFFloat\fP SoIndexedNurbsSurface::uKnotVector" The Bezier knot vector for the U direction\&. .SS "\fBSoMFFloat\fP SoIndexedNurbsSurface::vKnotVector" The Bezier knot vector for the V direction\&. .SS "\fBSoSFInt32\fP SoIndexedNurbsSurface::numSControlPoints" Number of control points in the S direction\&. .SS "\fBSoSFInt32\fP SoIndexedNurbsSurface::numTControlPoints" Number of control points in the T direction\&. .SS "\fBSoMFInt32\fP SoIndexedNurbsSurface::textureCoordIndex" The texture coordinate control point indices\&. .SS "\fBSoMFFloat\fP SoIndexedNurbsSurface::sKnotVector" The Bezier knot vector for the S direction\&. .SS "\fBSoMFFloat\fP SoIndexedNurbsSurface::tKnotVector" The Bezier knot vector for the T direction\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.