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 : David Beilloin (Jul 2014) 00022 **=======================================================================*/ 00023 00024 #ifndef _SO_CAD_INPUT_READER_PARAMETERS_H_ 00025 #define _SO_CAD_INPUT_READER_PARAMETERS_H_ 00026 00027 #include <Inventor/SoInputParameters.h> 00028 #include <Inventor/io/CAD/SoCADFileFormat.h> 00029 00030 #if defined(_WIN32) 00031 #pragma warning( push ) 00032 #pragma warning( disable: 4251 ) // 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2' 00033 #endif 00034 00035 00050 class CADFILEFORMAT_API SoCADInputReaderParameters: public SoInputParameters 00051 { 00052 public: 00054 SoCADInputReaderParameters(); 00055 00057 virtual ~SoCADInputReaderParameters(); 00058 00062 struct CADFILEFORMAT_API TessellationOption 00063 { 00064 TessellationOption(); 00065 00077 double linearTolerance; 00078 00090 double angularTolerance; 00091 00107 double maxTriangleEdgesRatio; 00108 00109 }; 00110 00113 enum Quality 00114 { 00118 LOW, 00119 00123 MEDIUM, 00124 00128 HIGH, 00129 }; 00130 00135 struct CADFILEFORMAT_API ImportOption 00136 { 00137 ImportOption(); 00138 00150 bool forceTesselation; 00151 00156 bool importEdges; 00157 00164 bool importOpenShells; 00165 00178 bool importPMI; 00179 00187 bool mergeFaces; 00188 }; 00189 00190 00195 void setTessellationOption(Quality quality = MEDIUM); 00196 00200 void setTessellationOption(const TessellationOption& option); 00201 00205 const TessellationOption& getTessellationOption() const; 00206 00210 void setImportOption(const ImportOption& option); 00211 00215 const ImportOption& getImportOption() const; 00216 00217 00218 private: 00219 00220 TessellationOption m_tessellationOption; 00221 ImportOption m_importOption; 00222 }; 00223 00224 #if defined(_WIN32) 00225 #pragma warning( pop ) 00226 #endif 00227 00228 #endif /* _SO_CAD_INPUT_READER_PARAMETERS_H_ */ 00229 00230