MCPcopy Create free account
hub / github.com/colmap/colmap / IsValid

Method IsValid

src/colmap/ui/project_widget.cc:86–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool ProjectWidget::IsValid() const {
87 return ExistsDir(GetImagePath()) && !ExistsDir(GetDatabasePath()) &&
88 ExistsDir(GetParentDir(GetDatabasePath()));
89}
90
91void ProjectWidget::Reset() {
92 database_path_text_->clear();

Callers 1

closeEventMethod · 0.45

Calls 2

ExistsDirFunction · 0.85
GetParentDirFunction · 0.85

Tested by

no test coverage detected