mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
fix: compile errors qt app
I was able to hardcode load an ifc file, by uncommenting the hard coded parse ifcfile, but I was unable to open and load files with the qt menu.
This commit is contained in:
committed by
Thomas Krijnen
parent
86367e9c1f
commit
e45b41c04b
+12
-13
@@ -1,38 +1,37 @@
|
||||
#ifndef PARSEIFCFILE_H
|
||||
#define PARSEIFCFILE_H
|
||||
|
||||
#include "../ifcgeom/Iterator.h"
|
||||
#include "osg/Geometry"
|
||||
#include "osg/Material"
|
||||
#include "osg/MatrixTransform"
|
||||
#include "osg/ref_ptr"
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "../ifcgeom_schema_agnostic/IfcGeomIterator.h"
|
||||
#include "osg/Material"
|
||||
#include "osg/MatrixTransform"
|
||||
#include "osg/ref_ptr"
|
||||
#include "osg/Geometry"
|
||||
|
||||
class ParseIfcFile : public QObject
|
||||
{
|
||||
class ParseIfcFile : public QObject {
|
||||
|
||||
public:
|
||||
public:
|
||||
ParseIfcFile();
|
||||
~ParseIfcFile();
|
||||
|
||||
bool Parse(
|
||||
const std::string& filePath,
|
||||
std::vector<osg::ref_ptr<osg::MatrixTransform>>& matrixTransforms
|
||||
);
|
||||
std::vector<osg::ref_ptr<osg::MatrixTransform>>& matrixTransforms);
|
||||
|
||||
private:
|
||||
private:
|
||||
void buildTriangleNodes(
|
||||
const std::vector<int>& fVertIds,
|
||||
const std::vector<double>& elemVertices,
|
||||
const std::vector<double>& elemVertices,
|
||||
const std::vector<double>& elemNormals,
|
||||
size_t index,
|
||||
osg::ref_ptr<osg::Vec3Array> osgVertices,
|
||||
osg::ref_ptr<osg::Vec3Array> osgNormals);
|
||||
|
||||
osg::ref_ptr<osg::Material> getOsgMaterial(const IfcGeom::Material& material);
|
||||
osg::ref_ptr<osg::Material> getOsgMaterial(const ifcopenshell::geometry::taxonomy::style::ptr& material);
|
||||
};
|
||||
|
||||
#endif // PARSEIFCFILE_H
|
||||
|
||||
Reference in New Issue
Block a user