mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
cf3f3c2c00
Promotes five env-var-driven knobs to AppSettings + the settings dialog (min pixel radius, motion min pixel radius, LOD1 pixel threshold, HiZ resolution, HiZ on/off). Defaults: motion min pixel radius is now 10 (was 0/disabled) and IFC_HIZ_MOTION is on by default — the strict view-projection gate reverts via env var =0 when chasing HiZ correctness bugs. ViewportWindow connects each *Changed signal so changes invalidate cached cull state and take effect on the next frame. Removes "Load Property Data Source" and "Apply Coordinate Operation" from the settings dialog: both are now hardcoded on. The basic-info property fallback (used when there's no live IFC source for an object, e.g. .ifcview without a sibling) now triggers organically when ElementRegistry::findEntity returns null instead of being gated on a user toggle. Federation::guessFederatedFalseOrigin lost its apply_coordinate_operation parameter and now uses georef.has_coordinate_operation directly. src/ifcviewer/settings.rst documents the remaining diagnostic env vars (IFC_HIZ_MOTION, IFC_CULL_THREADS, IFC_SKIP_MDI, IFC_MAX_SUBDRAWS, IFC_FPS_HITCH_MS, IFC_SUBDRAW_DIAG, IFC_LOD_*) plus a cross-walk from the old promoted-knob env-var names to their new QSettings keys. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
58 lines
2.4 KiB
C++
58 lines
2.4 KiB
C++
// This file was generated with the assistance of an AI coding tool.
|
|
/********************************************************************************
|
|
* *
|
|
* This file is part of IfcOpenShell. *
|
|
* *
|
|
* IfcOpenShell is free software: you can redistribute it and/or modify *
|
|
* it under the terms of the Lesser GNU General Public License as published by *
|
|
* the Free Software Foundation, either version 3.0 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* IfcOpenShell is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* Lesser GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the Lesser GNU General Public License *
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
* *
|
|
********************************************************************************/
|
|
|
|
#ifndef IFCINTERFACE_PANELS_SETTINGSDIALOG_H
|
|
#define IFCINTERFACE_PANELS_SETTINGSDIALOG_H
|
|
|
|
#include "../../components/Dialog.h"
|
|
|
|
class QCheckBox;
|
|
class QDoubleSpinBox;
|
|
class QLineEdit;
|
|
class QShowEvent;
|
|
class QSpinBox;
|
|
|
|
namespace ifcinterface::modules::settings {
|
|
|
|
class SettingsDialog : public components::Dialog {
|
|
Q_OBJECT
|
|
public:
|
|
explicit SettingsDialog(QWidget* parent = nullptr);
|
|
|
|
protected:
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
private:
|
|
void setupUi();
|
|
void syncFromSettings();
|
|
void onAccepted();
|
|
|
|
QLineEdit* geometry_library_edit_ = nullptr;
|
|
QCheckBox* show_stats_check_ = nullptr;
|
|
QCheckBox* backface_culling_check_ = nullptr;
|
|
QSpinBox* void_limit_spin_ = nullptr;
|
|
QDoubleSpinBox* deflection_tolerance_spin_ = nullptr;
|
|
QDoubleSpinBox* angular_tolerance_spin_ = nullptr;
|
|
};
|
|
|
|
} // namespace ifcinterface::modules::settings
|
|
|
|
#endif
|