Open Inventor
Release 2023.2.3
Loading...
Searching...
No Matches
SoCADInputReaderParameters.h
Go to the documentation of this file.
1
/*=======================================================================
2
*** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3
*** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4
*** ***
5
*** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6
*** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7
*** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8
*** ***
9
*** RESTRICTED RIGHTS LEGEND ***
10
*** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11
*** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12
*** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13
*** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14
*** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15
*** ***
16
*** COPYRIGHT (C) 1996-2017 BY FEI S.A.S, ***
17
*** BORDEAUX, FRANCE ***
18
*** ALL RIGHTS RESERVED ***
19
**=======================================================================*/
20
/*=======================================================================
21
** Author : David Beilloin (Jul 2014)
22
**=======================================================================*/
23
24
#ifndef _SO_CAD_INPUT_READER_PARAMETERS_H_
25
#define _SO_CAD_INPUT_READER_PARAMETERS_H_
26
27
#include <
Inventor/SoInputParameters.h
>
28
#include <
Inventor/io/CAD/SoCADFileFormat.h
>
29
30
#if defined(_WIN32)
31
#pragma warning( push )
32
#pragma warning( disable: 4251 )
// 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
33
#endif
34
35
49
class
SoCADInputReaderParameters
:
public
SoInputParameters
50
{
51
public
:
53
SoCADInputReaderParameters
();
54
56
virtual
~SoCADInputReaderParameters
();
57
62
struct
TessellationOption
63
{
64
TessellationOption
();
65
77
double
linearTolerance
;
78
90
double
angularTolerance
;
91
107
double
maxTriangleEdgesRatio
;
108
109
};
110
113
enum
Quality
114
{
118
LOW
,
119
123
MEDIUM
,
124
128
HIGH
,
129
};
130
136
struct
ImportOption
137
{
138
ImportOption
();
139
151
bool
forceTesselation
;
152
157
bool
importEdges
;
158
165
bool
importOpenShells
;
166
179
bool
importPMI
;
180
188
bool
mergeFaces
;
189
};
190
191
197
void
setTessellationOption
(
Quality
quality =
MEDIUM
);
198
203
void
setTessellationOption
(
const
TessellationOption
& option);
204
209
const
TessellationOption
&
getTessellationOption
()
const
;
210
215
void
setImportOption
(
const
ImportOption
& option);
216
221
const
ImportOption
&
getImportOption
()
const
;
222
223
224
private
:
225
226
TessellationOption
m_tessellationOption;
227
ImportOption
m_importOption;
228
};
229
230
#if defined(_WIN32)
231
#pragma warning( pop )
232
#endif
233
234
#endif
/* _SO_CAD_INPUT_READER_PARAMETERS_H_ */
235
SoCADFileFormat.h
SoInputParameters.h
SoCADInputReaderParameters
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> CAD Input reader...
Definition
SoCADInputReaderParameters.h:50
SoCADInputReaderParameters::setTessellationOption
void setTessellationOption(Quality quality=MEDIUM)
Specify predefined tessellation options.
SoCADInputReaderParameters::setTessellationOption
void setTessellationOption(const TessellationOption &option)
Specify tessellation options.
SoCADInputReaderParameters::setImportOption
void setImportOption(const ImportOption &option)
Specify import options.
SoCADInputReaderParameters::~SoCADInputReaderParameters
virtual ~SoCADInputReaderParameters()
Destructor.
SoCADInputReaderParameters::getTessellationOption
const TessellationOption & getTessellationOption() const
Return current tessellation options.
SoCADInputReaderParameters::getImportOption
const ImportOption & getImportOption() const
Return current import options.
SoCADInputReaderParameters::SoCADInputReaderParameters
SoCADInputReaderParameters()
Constructor.
SoCADInputReaderParameters::Quality
Quality
Definition
SoCADInputReaderParameters.h:114
SoCADInputReaderParameters::LOW
@ LOW
Low quality / less time and memory consumption.
Definition
SoCADInputReaderParameters.h:118
SoCADInputReaderParameters::HIGH
@ HIGH
High Quality / more time and memory consumption.
Definition
SoCADInputReaderParameters.h:128
SoCADInputReaderParameters::MEDIUM
@ MEDIUM
Medium quality / reasonnable quality, time and memory consumption in most case.
Definition
SoCADInputReaderParameters.h:123
SoInputParameters
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class for f...
Definition
SoInputParameters.h:59
SoCADInputReaderParameters::ImportOption
Specify how the scene graph resulting from the import should be generated.
Definition
SoCADInputReaderParameters.h:137
SoCADInputReaderParameters::ImportOption::forceTesselation
bool forceTesselation
Some CAD formats store faceted data in addition to the B-Rep.
Definition
SoCADInputReaderParameters.h:151
SoCADInputReaderParameters::ImportOption::importEdges
bool importEdges
Import Edges for the model.
Definition
SoCADInputReaderParameters.h:157
SoCADInputReaderParameters::ImportOption::ImportOption
ImportOption()
SoCADInputReaderParameters::ImportOption::mergeFaces
bool mergeFaces
Merge imported geometry in a single Open Inventor Geometry object.
Definition
SoCADInputReaderParameters.h:188
SoCADInputReaderParameters::ImportOption::importOpenShells
bool importOpenShells
Import OpenShell for the model.
Definition
SoCADInputReaderParameters.h:165
SoCADInputReaderParameters::ImportOption::importPMI
bool importPMI
Import PMI (Product and Manufacturing Information) from the model.
Definition
SoCADInputReaderParameters.h:179
SoCADInputReaderParameters::TessellationOption
Parameters used to tessellate the model during import.
Definition
SoCADInputReaderParameters.h:63
SoCADInputReaderParameters::TessellationOption::angularTolerance
double angularTolerance
Set the maximum deviation angle allowed between tessellated mesh triangle and the original surface.
Definition
SoCADInputReaderParameters.h:90
SoCADInputReaderParameters::TessellationOption::maxTriangleEdgesRatio
double maxTriangleEdgesRatio
Set the maximum edges length ratio of generated triangles.
Definition
SoCADInputReaderParameters.h:107
SoCADInputReaderParameters::TessellationOption::TessellationOption
TessellationOption()
SoCADInputReaderParameters::TessellationOption::linearTolerance
double linearTolerance
Set the maximum distance allowed between tessellated mesh triangle and the original surface.
Definition
SoCADInputReaderParameters.h:77
Inventor
io
CAD
SoCADInputReaderParameters.h
Generated by
1.9.8