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-2020 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 /*----------------------------------------------------------------------------*/ 00092 class SoNurbsProperty : public SoNode { 00093 SO_NODE_HEADER(SoNurbsProperty) ; 00094 00095 public: 00096 00098 enum DrawStyle { 00102 NORMAL = 0x01, 00106 BOUNDARIES_AND_TRIM_CURVES = 0x02, 00111 CENTRAL_ISO_PARAM_CURVES = 0x04 00112 } ; 00113 00115 enum TessellationType { 00120 CONSTANT, 00126 ADAPTIVE 00127 }; 00128 00129 // Fields 00134 SoSFBitMask drawStyle ; 00144 SoSFInt32 numSamplePoints ; 00149 SoSFColor color ; 00154 SoSFUShort isoParamCurvesPattern ; 00155 00162 SoSFEnum tessellationType; 00163 00174 SoSFFloat tessellationDistance; 00175 00184 SoSFFloat tessellationAngle; 00185 00189 SoNurbsProperty() ; 00190 00191 private: 00192 virtual void doAction(SoAction *action); 00193 virtual void callback(SoCallbackAction *action); 00194 virtual void GLRender(SoGLRenderAction *action); 00195 virtual void rayPick(SoRayPickAction *action); 00196 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action); 00197 virtual void getBoundingBox(SoGetBoundingBoxAction *action); 00198 00199 /*----------------------------------------------------------------------------*/ 00200 00201 private: 00202 static void initClass() ; 00203 static void exitClass() ; 00204 00205 private: 00206 // Destructor 00207 virtual ~SoNurbsProperty() ; 00208 } ; 00209 /*----------------------------------------------------------------------------*/ 00210 00211 #endif /* _SO_NURBS_PROPERTY_ */ 00212 00213