00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : R. ALBOU (Jun 1998) 00022 **=======================================================================*/ 00023 00024 /* include files */ 00025 #ifndef _SO_NURBS_PROPERTY_ 00026 #define _SO_NURBS_PROPERTY_ 00027 00028 #include <Inventor/fields/SoSFBitMask.h> 00029 #include <Inventor/fields/SoSFInt32.h> 00030 #include <Inventor/fields/SoSFColor.h> 00031 #include <Inventor/fields/SoSFUShort.h> 00032 #include <Inventor/fields/SoSFFloat.h> 00033 00034 #include <Inventor/nodes/SoNode.h> 00035 00036 class SoGLRenderAction ; 00037 class SoCallbackAction ; 00038 00039 /*----------------------------------------------------------------------------*/ 00091 class SoNurbsProperty : public SoNode { 00092 SO_NODE_HEADER(SoNurbsProperty) ; 00093 00094 public: 00095 00097 enum DrawStyle { 00101 NORMAL = 0x01, 00105 BOUNDARIES_AND_TRIM_CURVES = 0x02, 00110 CENTRAL_ISO_PARAM_CURVES = 0x04 00111 } ; 00112 00114 enum TessellationType { 00119 CONSTANT, 00125 ADAPTIVE 00126 }; 00127 00128 // Fields 00133 SoSFBitMask drawStyle ; 00143 SoSFInt32 numSamplePoints ; 00148 SoSFColor color ; 00153 SoSFUShort isoParamCurvesPattern ; 00154 00161 SoSFEnum tessellationType; 00162 00173 SoSFFloat tessellationDistance; 00174 00183 SoSFFloat tessellationAngle; 00184 00188 SoNurbsProperty() ; 00189 00190 private: 00191 virtual void doAction(SoAction *action); 00192 virtual void callback(SoCallbackAction *action); 00193 virtual void GLRender(SoGLRenderAction *action); 00194 virtual void rayPick(SoRayPickAction *action); 00195 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action); 00196 virtual void getBoundingBox(SoGetBoundingBoxAction *action); 00197 00198 /*----------------------------------------------------------------------------*/ 00199 00200 private: 00201 static void initClass() ; 00202 static void exitClass() ; 00203 00204 private: 00205 // Destructor 00206 virtual ~SoNurbsProperty() ; 00207 } ; 00208 /*----------------------------------------------------------------------------*/ 00209 00210 #endif /* _SO_NURBS_PROPERTY_ */ 00211 00212