Added zoom and automatic refresh of dependency graph view.

This commit is contained in:
Eivind Kvedalen
2015-06-14 11:46:18 +02:00
committed by wmayer
parent 1749ff2d5d
commit f99fd100e6
9 changed files with 428 additions and 74 deletions

View File

@@ -200,7 +200,7 @@ void Document::writeDependencyGraphViz(std::ostream &out)
out << "}" << endl;
}
void Document::exportGraphviz(std::ostream& out)
void Document::exportGraphviz(std::ostream& out) const
{
std::vector<std::string> names;
names.reserve(d->objectMap.size());
@@ -1437,6 +1437,8 @@ void Document::recompute()
it->second->purgeTouched();
}
d->vertexMap.clear();
signalRecomputed(*this);
}
const char * Document::getErrorDescription(const App::DocumentObject*Obj) const

View File

@@ -129,6 +129,7 @@ public:
Base::XMLReader&)> signalImportObjects;
boost::signal<void (const std::vector<App::DocumentObject*>&, Base::Reader&,
const std::map<std::string, std::string>&)> signalImportViewObjects;
boost::signal<void (const App::Document&)> signalRecomputed;
//@}
/** @name File handling of the document */
@@ -141,7 +142,7 @@ public:
/// Restore the document from the file in Property Path
void restore (void);
void exportObjects(const std::vector<App::DocumentObject*>&, std::ostream&);
void exportGraphviz(std::ostream&);
void exportGraphviz(std::ostream&) const;
std::vector<App::DocumentObject*> importObjects(Base::XMLReader& reader);
/// Opens the document from its file name
//void open (void);