Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ ELSE(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
ENDIF(NOT WIN32)

add_definitions(-DQT_NO_KEYWORDS)

set(IFCPP_CONFIG_DIR "share/IFCPP/cmake")
ADD_SUBDIRECTORY (IfcPlusPlus)

Expand Down
2 changes: 2 additions & 0 deletions IfcPlusPlus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ TARGET_INCLUDE_DIRECTORIES(IfcPlusPlus
${IFCPP_SOURCE_DIR}/IfcPlusPlus/src/external/glm
)

find_package(TBB REQUIRED)
target_link_libraries(IfcPlusPlus PUBLIC TBB::tbb)

set_target_properties(IfcPlusPlus PROPERTIES DEBUG_POSTFIX "d")
set_target_properties(IfcPlusPlus PROPERTIES CXX_STANDARD 17)
Expand Down
10 changes: 5 additions & 5 deletions examples/SimpleViewerExampleQt/src/IfcPlusPlusSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void IfcPlusPlusSystem::setObjectSelected( shared_ptr<BuildingEntity> ifc_object

std::unordered_map<std::string, shared_ptr<BuildingEntity> > map_objects;
map_objects[guid] = ifc_object;
emit( signalObjectsSelected( map_objects ) );
Q_EMIT( signalObjectsSelected( map_objects ) );
}
}
else
Expand Down Expand Up @@ -275,7 +275,7 @@ void IfcPlusPlusSystem::setObjectSelected( shared_ptr<BuildingEntity> ifc_object
}
std::unordered_map<std::string, shared_ptr<BuildingEntity> > map_objects;
map_objects[guid] = ifc_object;
emit( signalObjectsUnselected( map_objects ) );
Q_EMIT( signalObjectsUnselected( map_objects ) );
}
}

Expand Down Expand Up @@ -334,17 +334,17 @@ void IfcPlusPlusSystem::clearSelection()

void IfcPlusPlusSystem::notifyModelCleared()
{
emit( signalModelCleared() );
Q_EMIT( signalModelCleared() );
}

void IfcPlusPlusSystem::notifyModelLoadingStart()
{
emit( signalModelLoadingStart() );
Q_EMIT( signalModelLoadingStart() );
}

void IfcPlusPlusSystem::notifyModelLoadingDone()
{
emit( signalModelLoadingDone() );
Q_EMIT( signalModelLoadingDone() );
}

void IfcPlusPlusSystem::toggleSceneLight()
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/IfcPlusPlusSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class IfcPlusPlusSystem : public QObject, public osgGA::GUIEventHandler
bool m_light_on;
bool m_show_curve_representation;

signals:
Q_SIGNALS:
void signalObjectsSelected( std::unordered_map<std::string, shared_ptr<BuildingEntity> >& map_objects );
void signalObjectsUnselected( std::unordered_map<std::string, shared_ptr<BuildingEntity> >& map_objects );
void signalModelCleared();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <QToolButton>
#include <QHeaderView>
#include <QLabel>
#include <QLatin1String>

#include <ifcpp/model/BuildingObject.h>
#include <ifcpp/model/BuildingModel.h>
Expand Down Expand Up @@ -889,7 +890,7 @@ void EntityAttributeWidget::slotObjectsSelected( std::unordered_map<std::string,
QTreeWidgetItem* item = new QTreeWidgetItem();
item->setText( 0, "Surface area" );
item->setText( 1, QString::number( surface_area ) );
item->setText( 2, QStringLiteral("m�") );
item->setText( 2, QLatin1Literal("m�") );
ScopedBlockSignals block( m_computed_property_tree, m_block_counter );
m_computed_property_tree->addTopLevelItem( item );
}
Expand All @@ -898,7 +899,7 @@ void EntityAttributeWidget::slotObjectsSelected( std::unordered_map<std::string,
QTreeWidgetItem* item = new QTreeWidgetItem();
item->setText( 0, "Volume" );
item->setText( 1, QString::number( volume ) );
item->setText( 2, QStringLiteral("m�") );
item->setText( 2, QLatin1Literal("m�") );
ScopedBlockSignals block( m_computed_property_tree, m_block_counter );
m_computed_property_tree->addTopLevelItem( item );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EntityAttributeWidget : public QWidget
void clearAttributeTree();
void expandToLevel( QTreeWidgetItem* item, int& current_level, int max_level );

public slots:
public Q_SLOTS:
void slotObjectsSelected( std::unordered_map<std::string, shared_ptr<BuildingEntity> >& map );
void slotObjectsUnselected( std::unordered_map<std::string, shared_ptr<BuildingEntity> >& map );
void slotTreewidgetSelectionChanged( QTreeWidgetItem* current, QTreeWidgetItem* previous );
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/gui/IfcTreeWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class IfcTreeWidget : public QTreeWidget
QModelIndex indexFromItem( QTreeWidgetItem * item, int column = 0 ) const { return QTreeWidget::indexFromItem( item, column ); }
QTreeWidgetItem* itemFromIndex( const QModelIndex & index ) const { return QTreeWidget::itemFromIndex( index ); }

public slots:
public Q_SLOTS:
void slotObjectsSelected( std::unordered_map<std::string, shared_ptr<BuildingEntity> >& map );
void slotTreewidgetSelectionChanged( QTreeWidgetItem* current, QTreeWidgetItem* previous );
void slotTreewidgetSelectionChanged();
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void MainWindow::closeEvent( QCloseEvent *event )
m_tab_read_write->closeEvent( event );
QMainWindow::closeEvent( event );

emit( signalMainWindowClosed() );
Q_EMIT( signalMainWindowClosed() );
}

void MainWindow::createTabWidget()
Expand Down
4 changes: 2 additions & 2 deletions examples/SimpleViewerExampleQt/src/gui/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ class MainWindow : public QMainWindow

void createTabWidget();

signals:
Q_SIGNALS:
void signalMainWindowClosed();

private slots:
private Q_SLOTS:
void slotBtnZoomBoundingsClicked();
void slotBtnRemoveSelectedObjectsClicked();
void slotProgressValue(double progress_value, const std::string& progress_type);
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/gui/StoreyShiftWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class StoreyShiftWidget : public QWidget
QSlider* m_slide_z;
ScopedBlockCount m_block_counter;

public slots:
public Q_SLOTS:
void slotModelLoadingDone();
void slotResetSliders();
void slotSlideX(int);
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/gui/TabReadWrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void TabReadWrite::txtOutError( QString txt )

void TabReadWrite::progressValue(double progress_value_in, const std::string& progress_type)
{
emit(signalProgressValue(progress_value_in, progress_type));
Q_EMIT(signalProgressValue(progress_value_in, progress_type));
}

void TabReadWrite::clearTxtOut()
Expand Down
4 changes: 2 additions & 2 deletions examples/SimpleViewerExampleQt/src/gui/TabReadWrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ class TabReadWrite : public QWidget
QSplitter* m_io_splitter;
std::mutex m_mutex_messages;

signals:
Q_SIGNALS:
void signalProgressValue(double progress_value, const std::string& progress_type);

private slots:
private Q_SLOTS:
void slotAddOtherIfcFileClicked();
void slotLoadRecentIfcFileClicked();
void slotSetWritePathClicked();
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/gui/TabView.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TabView : public QWidget
bool m_cull_front;
bool m_cull_back;

private slots:
private Q_SLOTS:
void slotCullFrontFaces( int state );
void slotCullBackFaces( int state );
void slotSetNumVertices(int);
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleViewerExampleQt/src/viewer/ViewerWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ViewerWidget : public QWidget
virtual void paintEvent( QPaintEvent* event );
virtual void resizeEvent( QResizeEvent * );

public slots:
public Q_SLOTS:
void slotAnimationFrame();

protected:
Expand Down