#include <Editor.hpp>
Public Types | |
enum | Type { TYPE_CLASSIFICATION , TYPE_CLIP_FILTER , TYPE_DATA_SET , TYPE_DESCRIPTOR , TYPE_ELEVATION , TYPE_INTENSITY , TYPE_SEGMENT , TYPE_PROJECT_NAME , TYPE_SETTINGS } |
Public Member Functions | |
Editor () | |
~Editor () | |
void | open (const std::string &path, const SettingsImport &settings=SettingsImport()) |
void | saveProject (const std::string &path) |
const std::string & | projectPath () const |
const std::string & | projectName () const |
bool | unsavedChanges () const |
void | close () |
void | applyFilters () |
const Datasets & | datasets () const |
Datasets & | datasets () |
void | setDatasets (const Datasets &datasets) |
const QueryFilterSet & | datasetsFilter () const |
void | setDatasetsFilter (const QueryFilterSet &filter) |
const Region & | clipFilter () const |
void | setClipFilter (const Region &clipFilter) |
void | resetClipFilter () |
Box< double > | clipBoundary () const |
const Box< double > & | boundary () const |
const Range< double > & | elevationFilter () const |
void | setElevationFilter (const Range< double > &elevationFilter) |
const Range< double > & | descriptorFilter () const |
void | setDescriptorFilter (const Range< double > &descriptorFilter) |
const Range< double > & | intensityFilter () const |
void | setIntensityFilter (const Range< double > &intensityFilter) |
const Classifications & | classifications () const |
void | setClassifications (const Classifications &classifications) |
const QueryFilterSet & | classificationsFilter () const |
void | setClassificationsFilter (const QueryFilterSet &filter) |
const Segments & | segments () const |
void | setSegments (const Segments &segments) |
const QueryFilterSet & | segmentsFilter () const |
void | setSegmentsFilter (const QueryFilterSet &filter) |
const Settings & | settings () const |
void | setSettingsView (const SettingsView &settingsView) |
void | setSettingsUnits (const SettingsUnits &settingsUnits) |
void | addModifier (ModifierInterface *modifier) |
void | runModifiers (Page *page) |
void | viewportsResize (size_t n) |
Viewports & | viewports () |
const Viewports & | viewports () const |
std::shared_ptr< PageData > | readPage (size_t dataset, size_t index) |
void | erasePage (size_t dataset, size_t index) |
Public Attributes | |
std::mutex | mutex_ |
Protected Member Functions | |
void | openProject (const std::string &path) |
void | openDataset (const std::string &path, const SettingsImport &settings=SettingsImport()) |
void | setProjectPath (const std::string &projectPath) |
void | updateAfterSet () |
void | updateAfterRead () |
Protected Attributes | |
std::string | projectPath_ |
std::string | projectName_ |
bool | unsavedChanges_ |
Datasets | datasets_ |
Dataset::Range | datasetsRange_ |
Segments | segments_ |
Settings | settings_ |
Classifications | classifications_ |
Region | clipFilter_ |
Range< double > | elevationFilter_ |
Range< double > | descriptorFilter_ |
Range< double > | intensityFilter_ |
QueryFilterSet | classificationsFilter_ |
QueryFilterSet | datasetsFilter_ |
QueryFilterSet | segmentsFilter_ |
std::vector< ModifierInterface * > | modifiers_ |
Viewports | viewports_ |
PageManager | pageManager_ |
enum Editor::Type |
Editor Data Type.
Enumerator | |
---|---|
TYPE_CLASSIFICATION | |
TYPE_CLIP_FILTER | |
TYPE_DATA_SET | |
TYPE_DESCRIPTOR | |
TYPE_ELEVATION | |
TYPE_INTENSITY | |
TYPE_SEGMENT | |
TYPE_PROJECT_NAME | |
TYPE_SETTINGS |
Editor::Editor | ( | ) |
Editor::~Editor | ( | ) |
void Editor::addModifier | ( | ModifierInterface * | modifier | ) |
Referenced by MainWindow::loadPlugin().
void Editor::applyFilters | ( | ) |
Referenced by updateAfterRead(), and MainWindow::updateData().
|
inline |
Referenced by Query::setGrid(), and ComputeElevationAction::start().
|
inline |
Referenced by setClassifications(), and FilterClassificationWidget::slotUpdate().
|
inline |
Referenced by FilterClassificationWidget::slotUpdate().
Box< double > Editor::clipBoundary | ( | ) | const |
|
inline |
void Editor::close | ( | ) |
Referenced by ProjectFilePlugin::closeProject(), Editor(), and openProject().
|
inline |
|
inline |
Referenced by Query::applyCamera(), Query::exec(), PageData::readPage(), ViewerOpenGLViewport::resetScene(), Page::runColorModifier(), setDatasets(), Query::setGrid(), FilterFilesWidget::slotUpdate(), ComputeClassificationAction::start(), ComputeDescriptorAction::start(), ComputeSegmentationNNAction::start(), ComputeElevationAction::start(), PageData::transform(), and PageData::writePage().
|
inline |
Referenced by FilterFilesWidget::slotUpdate().
|
inline |
Referenced by setDescriptorFilter(), and FilterDescriptorWidget::slotUpdate().
|
inline |
void Editor::erasePage | ( | size_t | dataset, |
size_t | index ) |
Referenced by Page::~Page().
|
inline |
Referenced by setIntensityFilter(), and FilterIntensityWidget::slotUpdate().
void Editor::open | ( | const std::string & | path, |
const SettingsImport & | settings = SettingsImport() ) |
Referenced by ProjectFilePlugin::openProject().
|
protected |
Referenced by open().
|
protected |
Referenced by open().
|
inline |
|
inline |
std::shared_ptr< PageData > Editor::readPage | ( | size_t | dataset, |
size_t | index ) |
Referenced by Page::readPage().
void Editor::resetClipFilter | ( | ) |
void Editor::runModifiers | ( | Page * | page | ) |
Referenced by Page::runModifiers().
void Editor::saveProject | ( | const std::string & | path | ) |
Referenced by ProjectFilePlugin::saveProject().
|
inline |
Referenced by Page::queryWhereSegment(), ViewerOpenGLViewport::renderAttributes(), ViewerOpenGLViewport::renderSegments(), Page::runColorModifier(), setSegments(), FilterTreesWidget::slotUpdate(), TreeTableWidget::slotUpdate(), ComputeTreeAttributesAction::stepPointsToTrees(), and ComputeTreeAttributesAction::stepUpdateComputeTreeAttributes().
|
inline |
void Editor::setClassifications | ( | const Classifications & | classifications | ) |
Referenced by FilterClassificationWidget::dataChanged().
void Editor::setClassificationsFilter | ( | const QueryFilterSet & | filter | ) |
Referenced by FilterClassificationWidget::dataChanged(), and FilterClassificationWidget::filterChanged().
void Editor::setClipFilter | ( | const Region & | clipFilter | ) |
Referenced by FilterAreaBoxWidget::filterChanged(), resetClipFilter(), and FilterAreaBoxWidget::setFilterEnabled().
void Editor::setDatasets | ( | const Datasets & | datasets | ) |
Referenced by FilterFilesWidget::dataChanged().
void Editor::setDatasetsFilter | ( | const QueryFilterSet & | filter | ) |
Referenced by FilterFilesWidget::dataChanged(), and FilterFilesWidget::filterChanged().
void Editor::setDescriptorFilter | ( | const Range< double > & | descriptorFilter | ) |
Referenced by FilterDescriptorWidget::filterChanged().
void Editor::setElevationFilter | ( | const Range< double > & | elevationFilter | ) |
void Editor::setIntensityFilter | ( | const Range< double > & | intensityFilter | ) |
Referenced by FilterIntensityWidget::filterChanged().
|
protected |
Referenced by close(), openDataset(), and openProject().
void Editor::setSegments | ( | const Segments & | segments | ) |
void Editor::setSegmentsFilter | ( | const QueryFilterSet & | filter | ) |
void Editor::setSettingsUnits | ( | const SettingsUnits & | settingsUnits | ) |
Referenced by SettingsUnitsWidget::dataChanged(), and updateAfterRead().
void Editor::setSettingsView | ( | const SettingsView & | settingsView | ) |
Referenced by SettingsViewWidget::dataChanged().
|
inline |
Referenced by open(), openDataset(), TreeTableExportDialog::properties(), ViewerOpenGLViewport::renderAttributes(), ViewerOpenGLViewport::renderFirstFrame(), ViewerOpenGLViewport::renderSceneSettingsDisable(), ViewerOpenGLViewport::renderSceneSettingsEnable(), Page::runColorModifier(), FilterElevationWidget::setElevation(), FilterAreaBoxWidget::setRegion(), TreeTableWidget::setRow(), FilterTreesTreeWidget::setSegment(), FilterAreaBoxWidget::slotRangeIntermediateMaximumValue(), FilterElevationWidget::slotRangeIntermediateMaximumValue(), FilterAreaBoxWidget::slotRangeIntermediateMinimumValue(), FilterElevationWidget::slotRangeIntermediateMinimumValue(), SettingsUnitsWidget::slotUpdate(), SettingsViewWidget::slotUpdate(), ComputeClassificationAction::start(), ComputeDescriptorAction::start(), ComputeSegmentationNNAction::start(), ComputeTreeAttributesAction::start(), and ComputeElevationAction::start().
|
inline |
Referenced by ProjectFilePlugin::closeProject().
|
protected |
Referenced by openDataset(), and openProject().
|
protected |
Referenced by setDatasets(), and updateAfterRead().
|
inline |
Referenced by ExportFileAction::initialize(), RenderThread::next(), ViewerOpenGLViewport::renderScene(), ComputeHeightMapModifier::setPreviewEnabled(), EditPlugin::slotResetElevation(), ComputeClassificationAction::stepCountPoints(), ComputeDescriptorAction::stepCountPoints(), ComputeElevationAction::stepCountPoints(), ComputeSegmentationNNAction::stepCountPoints(), MainWindow::update(), MainWindow::updateData(), MainWindow::updateFilter(), MainWindow::updateModifiers(), and MainWindow::updateRender().
|
inline |
void Editor::viewportsResize | ( | size_t | n | ) |
Referenced by Editor(), and ViewerPlugin::slotViewLayout().
|
protected |
Referenced by close(), and setClassifications().
|
protected |
Referenced by applyFilters(), close(), and setClassificationsFilter().
|
protected |
Referenced by applyFilters(), clipBoundary(), close(), resetClipFilter(), setClipFilter(), updateAfterRead(), and updateAfterSet().
|
protected |
Referenced by close(), openDataset(), openProject(), saveProject(), setDatasets(), updateAfterRead(), and updateAfterSet().
|
protected |
Referenced by applyFilters(), close(), openDataset(), openProject(), and setDatasetsFilter().
|
protected |
Referenced by updateAfterSet().
|
protected |
Referenced by applyFilters(), close(), setDescriptorFilter(), and updateAfterRead().
|
protected |
Referenced by applyFilters(), close(), setElevationFilter(), updateAfterRead(), and updateAfterSet().
|
protected |
Referenced by applyFilters(), close(), setIntensityFilter(), and updateAfterRead().
|
protected |
Referenced by addModifier(), and runModifiers().
std::mutex Editor::mutex_ |
|
protected |
Referenced by erasePage(), and readPage().
|
protected |
Referenced by close(), openProject(), and saveProject().
|
protected |
Referenced by openDataset(), openProject(), and setProjectPath().
|
protected |
Referenced by close(), openProject(), saveProject(), setSegments(), and updateAfterRead().
|
protected |
Referenced by applyFilters(), close(), setSegmentsFilter(), and updateAfterRead().
|
protected |
Referenced by openProject(), saveProject(), setSettingsUnits(), setSettingsView(), and updateAfterRead().
|
protected |
Referenced by close(), openDataset(), saveProject(), setClassifications(), setDatasets(), setSegments(), setSettingsUnits(), and setSettingsView().
|
protected |