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:
Jason Hilton
2024-09-24 11:58:57 -07:00
committed by Thomas Krijnen
parent 86367e9c1f
commit e45b41c04b
3 changed files with 50 additions and 42 deletions
+12 -13
View File
@@ -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