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-2017 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 00049 class SoCADInputReaderParameters: public SoInputParameters 00050 { 00051 public: 00053 SoCADInputReaderParameters(); 00054 00056 virtual ~SoCADInputReaderParameters(); 00057 00062 struct 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 00136 struct ImportOption 00137 { 00138 ImportOption(); 00139 00151 bool forceTesselation; 00152 00157 bool importEdges; 00158 00165 bool importOpenShells; 00166 00179 bool importPMI; 00180 00188 bool mergeFaces; 00189 }; 00190 00191 00197 void setTessellationOption(Quality quality = MEDIUM); 00198 00203 void setTessellationOption(const TessellationOption& option); 00204 00209 const TessellationOption& getTessellationOption() const; 00210 00215 void setImportOption(const ImportOption& option); 00216 00221 const ImportOption& getImportOption() const; 00222 00223 00224 private: 00225 00226 TessellationOption m_tessellationOption; 00227 ImportOption m_importOption; 00228 }; 00229 00230 #if defined(_WIN32) 00231 #pragma warning( pop ) 00232 #endif 00233 00234 #endif /* _SO_CAD_INPUT_READER_PARAMETERS_H_ */ 00235 00236