ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
STEPFilter.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // ##########################################################################
11 // # #
12 // # CloudViewer PLUGIN: qSTEPCADImport #
13 // # #
14 // # This program is free software; you can redistribute it and/or modify #
15 // # it under the terms of the GNU General Public License as published by #
16 // # the Free Software Foundation; version 2 of the License. #
17 // # #
18 // # This program is distributed in the hope that it will be useful, #
19 // # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21 // # GNU General Public License for more details. #
22 // # #
23 // # COPYRIGHT: EDF R&D #
24 // # #
25 // ##########################################################################
26 
27 #include <FileIOFilter.h>
28 
29 class STEPFilter : public FileIOFilter {
30 public:
31  STEPFilter();
32 
33  // inherited from FileIOFilter
34  CC_FILE_ERROR loadFile(const QString& fullFilename,
35  ccHObject& container,
36  LoadParameters& parameters) override;
37 
40  const QString& fullFilename,
41  double linearDeflection,
42  LoadParameters& parameters);
43 
45 
51  static void SetDefaultLinearDeflection(double value);
52 };
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
Generic file I/O filter.
Definition: FileIOFilter.h:46
static void SetDefaultLinearDeflection(double value)
Sets the default linear deflection.
Definition: STEPFilter.cpp:70
CC_FILE_ERROR loadFile(const QString &fullFilename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: STEPFilter.cpp:82
CC_FILE_ERROR importStepFile(ccHObject &container, const QString &fullFilename, double linearDeflection, LoadParameters &parameters)
Specific loading method.
Definition: STEPFilter.cpp:114
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Generic loading parameters.
Definition: FileIOFilter.h:51