ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qStepCADImport.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 // # ACloudViewer 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 <ecvIOPluginInterface.h>
28 
30 class qStepCADImport : public QObject, public ccIOPluginInterface {
31  Q_OBJECT
33 
34  Q_PLUGIN_METADATA(IID "ecvcorp.cloudviewer.plugin.qStepCADImport" FILE
35  "../info.json")
36 
37 public:
39  explicit qStepCADImport(QObject *parent = nullptr);
40 
41  // inherited from ccIOPluginInterface
42  void registerCommands(ccCommandLineInterface *inCmdLine) override;
43  FilterList getFilters() override;
44 };
ccPointCloud::addScalarField
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
ecvMaterial.h
filename
std::string filename
Definition: PointCloudIO.cpp:47
ccDrawableObject::showNormals
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
CC_FERR_CANCELED_BY_USER
@ CC_FERR_CANCELED_BY_USER
Definition: FileIOFilter.h:30
cloudViewer::NormalizedProgress::oneStep
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
qStepCADImport
Step file import plugin.
Definition: qStepCADImport.h:30
ecvIOPluginInterface.h
ccGenericPrimitive::setColor
virtual void setColor(const ecvColor::Rgb &col)
Sets primitive color (shortcut)
Definition: ecvGenericPrimitive.cpp:30
data
GraphType data
Definition: graph_cut.cc:138
string.h
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
RDB_OPEN_DLG_Scalar
@ RDB_OPEN_DLG_Scalar
Definition: RDBOpenDialog.h:22
FileIOFilter::DEFAULT_PRIORITY
static constexpr float DEFAULT_PRIORITY
Definition: FileIOFilter.h:313
qRDBIO.h
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
ecvProgressDialog::start
virtual void start() override
Definition: ecvProgressDialog.cpp:70
ScalarField.h
CVLog.h
cloudViewer::PointCloudTpl::size
unsigned size() const override
Definition: PointCloudTpl.h:38
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
ecvColor::RgbTpl::r
Type r
Definition: ecvColorTypes.h:54
RDBFilter
Definition: RDBFilter.h:29
FileIOFilter::LoadParameters
Generic loading parameters.
Definition: FileIOFilter.h:51
ecvPlane.h
ccPointCloud::setCurrentDisplayedScalarField
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
FileIOFilter
Generic file I/O filter.
Definition: FileIOFilter.h:46
result
core::Tensor result
Definition: VtkUtils.cpp:76
CV_CLASS_ENUM
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
context
ImGuiContext * context
Definition: Window.cpp:76
ccDrawableObject::showColors
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
ccPlanarEntityInterface::showNormalVector
void showNormalVector(bool state)
Show normal vector.
Definition: ecvPlanarEntityInterface.h:25
RDB_OPEN_DLG_TYPES_NAMES
const char RDB_OPEN_DLG_TYPES_NAMES[RDB_OPEN_DLG_TYPES_NUMBER][24]
Definition: RDBOpenDialog.h:25
Vector3Tpl::cross
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
RDBFilter::canSave
bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
Definition: RDBFilter.cpp:562
CC_FERR_NOT_ENOUGH_MEMORY
@ CC_FERR_NOT_ENOUGH_MEMORY
Definition: FileIOFilter.h:31
RDBOpenDialog
RDB Open dialog.
Definition: RDBOpenDialog.h:29
Vector3Tpl< PointCoordinateType >
ccPointCloud::reserveTheNormsTable
bool reserveTheNormsTable()
Reserves memory to store the compressed normals.
Definition: ecvPointCloud.cpp:1253
ccPointCloud::addNorm
void addNorm(const CCVector3 &N)
Pushes a normal vector on stack (shortcut)
Definition: ecvPointCloud.cpp:1754
Ui
Definition: sfEditDlg.h:16
ecvColor::RgbTpl::g
Type g
Definition: ecvColorTypes.h:54
RDBFilter::loadFile
CC_FILE_ERROR loadFile(const QString &fileName, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
Definition: RDBFilter.cpp:220
CC_FILE_ERROR
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
ccPointCloud::reserve
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
ecvProgressDialog
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
ecvMesh.h
ecvScalarField.h
ecvProgressDialog::setMethodTitle
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.
Definition: ecvProgressDialog.h:49
ecvProgressDialog.h
ccDrawableObject::showSF
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
ccIOPluginInterface::FilterList
QVector< FileIOFilter::Shared > FilterList
Definition: ecvIOPluginInterface.h:22
ccDrawableObject::setVisible
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
ccPointCloud::addRGBColor
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
ecvColor::RgbTpl::b
Type b
Definition: ecvColorTypes.h:54
FileIOFilter::LoadParameters::parentWidget
QWidget * parentWidget
Parent widget (if any)
Definition: FileIOFilter.h:78
RDB_OPEN_DLG_RGB
@ RDB_OPEN_DLG_RGB
Definition: RDBOpenDialog.h:20
FileIOFilter::Import
@ Import
Definition: FileIOFilter.h:302
RDB_OPEN_DLG_NORM
@ RDB_OPEN_DLG_NORM
Definition: RDBOpenDialog.h:19
ccCommandLineInterface
Command line interface.
Definition: ecvCommandLineInterface.h:112
ccGLMatrix
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
ccPluginInterface
Standard ECV plugin interface.
Definition: ecvPluginInterface.h:33
FileIOFilter::Shared
QSharedPointer< FileIOFilter > Shared
Shared type.
Definition: FileIOFilter.h:97
count
int count
Definition: FileIOFactory.cpp:132
ecvProgressDialog::setInfo
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
Definition: ecvProgressDialog.h:52
ecvColor::RgbTpl
RGB color structure.
Definition: ecvColorTypes.h:49
ecvMaterialSet.h
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
ccPluginInterface::registerCommands
virtual void registerCommands(ccCommandLineInterface *cmd)
Optional: registers commands (for the command line mode)
Definition: ecvPluginInterface.h:121
cloudViewer::PointCloudTpl::addPoint
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
X
void * X
Definition: SmallVector.cpp:45
cloudViewer::NormalizedProgress
Definition: GenericProgressCallback.h:78
RDB_OPEN_DLG_None
@ RDB_OPEN_DLG_None
Definition: RDBOpenDialog.h:17
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
RDBOpenDialog.h
ccIOPluginInterface::getFilters
virtual FilterList getFilters()
Returns a list of I/O filter instances.
Definition: ecvIOPluginInterface.h:36
RDB_OPEN_DLG_XYZ
@ RDB_OPEN_DLG_XYZ
Definition: RDBOpenDialog.h:18
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
CC_FERR_NO_ERROR
@ CC_FERR_NO_ERROR
Definition: FileIOFilter.h:21
RDBOpenDialog::RDBOpenDialog
RDBOpenDialog(QWidget *parent=nullptr)
Default constructor.
Definition: RDBOpenDialog.cpp:15
ecvHObject.h
patch::to_string
std::string to_string(const T &n)
Definition: Common.h:20
RDBFilter::RDBFilter
RDBFilter()
Definition: RDBFilter.cpp:44
Vector3Tpl< PointCoordinateType >::fromArray
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
type
char type
Definition: FileIOFactory.cpp:131
ccPlane
Plane (primitive)
Definition: ecvPlane.h:17
ecvPointCloud.h
RDBFilter.h
ccIOPluginInterface
I/O filter plugin interface.
Definition: ecvIOPluginInterface.h:20
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
ccPointCloud::reserveTheRGBTable
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
name
std::string name
Definition: FileIOFactory.cpp:129