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-2019 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #ifndef _MO_MESHSTREAMLINE_ 00024 #define _MO_MESHSTREAMLINE_ 00025 00026 #include <MeshVizXLM/MbVec3.h> 00027 00028 #include <MeshVizXLM/mapping/nodes/MoMeshRepresentation.h> 00029 00030 #include <Inventor/fields/SoSFDouble.h> 00031 #include <Inventor/fields/SoMFFloat.h> 00032 #include <Inventor/fields/SoMFVec3f.h> 00033 #include <Inventor/fields/SoSFInt32.h> 00034 00035 #ifdef _WIN32 00036 #pragma warning(push) 00037 #pragma warning(disable:4251) 00038 #endif 00039 00040 class MiStreamlineExtractUnstructured; 00041 class MiStreamlineExtractHexahedronIjk; 00042 class MiStreamlineExtractIjk; 00043 00044 class MeLineMeshSet; 00045 class MeSetOfVec3dSetI; 00046 class MeSetOfScalardSetI; 00047 00096 class MESHVIZXLM_DMAP_API MoMeshStreamline : public MoMeshRepresentation { 00097 00098 SO_NODE_HEADER(MoMeshStreamline) ; 00099 00100 public: 00101 00105 MoMeshStreamline() ; 00106 00113 SoSFInt32 vec3SetId; 00114 00118 SoMFVec3f startingPoints; 00119 00124 SoSFDouble maxLifeTime; 00125 00130 SoSFDouble maxLength; 00131 00136 SoSFDouble minSpeed; 00137 00142 SoSFDouble integrationStepLengthFactor; 00143 00148 SoSFInt32 maxStepNumber; 00149 00153 enum IntegrationDirection { 00154 FORWARD, 00155 BACKWARD 00156 } ; 00157 00162 SoSFEnum direction; 00163 00165 00172 const MiStreamlineExtractUnstructured* getUnstructuredExtractor(); 00173 const MiStreamlineExtractHexahedronIjk* getHexahedronIjkExtractor(); 00174 const MiStreamlineExtractIjk* getIjkExtractor(); 00176 00177 #if 1 SoDEPRECATED 00179 const MiStreamlineExtractHexahedronIjk* getUnstructuredIjkExtractor(); 00180 #endif 00182 /*----------------------------------------------------------------------------*/ 00183 private: 00184 static void initClass() ; 00185 static void exitClass() ; 00186 00187 private: 00188 virtual void doExtract(SoAction * action); 00189 00190 template <typename _MdExtractorT> friend class MdMeshMultiLinesRepresentation; 00191 } ; 00192 00193 #ifdef _WIN32 00194 #pragma warning(pop) 00195 #endif 00196 00197 #endif /* _MO_MESHSTREAMLINE_ */ 00198 00199 00200 00201