|
Core::CoreDocument Core::PropertyContainer, Base::Subject | Core::recompute (std::function< void(DOCOBJECTS newObj, DOCOBJECTS updatedObj, DOCOBJECTS deletedObj, DOCOBJECTS_ERROR_MAP errorObj)> onRecomputedCB) |
|
| TYPESYSTEM_HEADER () |
|
| LX_NODE_HEADER () |
|
int | getDocumentVersion () const |
| Returns the version of the document. More...
|
|
bool | addObject (Core::DocObject *e) |
| Adds an existing object to the document. More...
|
|
void | removeObject (Core::DocObject *e) |
| Removes an object from the document. More...
|
|
void | removeObjectFinal (Core::DocObject *e, bool deep=false) |
| Removes an object from the document. More...
|
|
Base::Type | getCopyType () const |
|
void | clearCopyType () |
| Sets the copy type to Base::Type::badType(), next copied object will be copied as its own type. More...
|
|
Core::DocObject * | copyObject (Core::DocObject *o, DocObjectMap ©Map=DocObjectMap()) |
| Creates a copy of 'o' and adds it to the document, provides map of pairs original-copy to see which object is a copy of another one. More...
|
|
Core::DocObject * | copyToDifferentType (Core::DocObject *o, Base::Type typeToCreate, DocObjectMap ©Map) |
| Creates an object of type 'typeToCreate' and copy properties from 'o' to it. Provides map of pairs original-copy. More...
|
|
Core::DocObject * | copySharedObject (Core::DocObject *o, DocObjectMap ©Map) |
| Copy shared object. This is violating of the share, but in some cases this is useful. Use wisely!! More...
|
|
template<typename Type > |
Type | copyObjectShallow (Type o) |
| Creates a copy of 'o' and adds it to the document. Performs shallow copy. More...
|
|
std::vector< Core::DocObject * > | getObjects (bool includeDeletedObjects=false) const |
| Returns all objects in the document. More...
|
|
std::vector< Core::DocObject * > | getObjectsSorted () const |
| Returns all objects topologically sorted. More...
|
|
std::vector< Core::ExecObject * > | getExecObjects (bool includeDeletedObjects=false) const |
| Returns all executable objects. More...
|
|
Core::DocObject * | createObjectFromTypeName (const char *typeName) |
| Creates an object from type name and adds it to the document. More...
|
|
Core::DocObject * | createObjectFromType (Base::Type type) |
| Creates an object from type and adds it to the document. More...
|
|
std::vector< Core::DocObject * > | getObjectsByTypeName (const std::string &typeName) const |
| Returns all objects of typeName. More...
|
|
virtual void | recompute () |
| Recomputes the document. More...
|
|
virtual bool | Core::saveAs (const Base::String &filename) |
| Saves the document under this name. More...
|
|
Base::String | Core::getTmpDirectory () |
| Returns the temporary directory. More...
|
|
bool | Core::isActive () const |
| Returns 'true' if the Document is the active Document. Otherwise returns 'false'. More...
|
|
virtual bool | Core::isChanged () |
| Returns 'true' if the document is changed. More...
|
|
Core::DocObject * | Core::getObjectByGlobalId (const Base::GlobalId &guid) const |
| Returns the DocObject with this GUID. More...
|
|
std::string | Core::getDocXMLAsString () |
|
virtual Core::DocObject * | Core::getObjectById (const DocObject::IdType &id) const |
| Returns the object with this id. More...
|
|
Core::DocObject * | Core::getObjectByUserName (const Base::String &s) const |
| Returns the object with this userName. More...
|
|
template<typename T > |
T * | Core::createObject () |
|
template<typename T > |
T * | Core::addImmutableObject (Core::PropertyBundle< T > *po) |
|
template<typename T > |
T * | Core::addImmutableObject_NoCheck (Core::PropertyBundle< T > *po) |
|
template<typename T > |
std::vector< T * > | Core::getObjectsByType () const |
| Return all object of given type and all derived classes. More...
|
|
template<typename T > |
void | Core::getObjectsByType (std::vector< T * > &objs) const |
| Returns all objects of type 'T'. More...
|
|
void | Core::getObjectsFromTypeMap (Base::Type t, std::vector< Core::DocObject * > &ret) const |
| Returns all objects of type 'T'. More...
|
|
const ObjectTypeMap & | Core::getTypeMap () const |
|
void | Core::addPropertyLinkError (const std::string &from, const std::string &to) |
|
const DocumentState & | Core::getDocumentState () const |
|
bool | Core::checkObjectLinks (std::vector< Core::DocObject * > &objvec, std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> *errors=nullptr) |
| Checks the document for errors. Returns false if there is an error. More...
|
|
bool | Core::checkObjectLinks (std::vector< Core::DocObject * > &objvec, std::vector< Core::DocObject * > &objToCheck, std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> *errors=nullptr) |
|
std::vector< const Core::DocObject * > | Core::getInner (const Core::DocObject *me, std::function< bool(const Core::DocObject *)> *allowToAddObject=0) |
| Get ALL Links to me, also indirect. More...
|
|
std::vector< const Core::DocObject * > | Core::getOuter (const Core::DocObject *me) |
| Get ALL Links from me, also indirect. More...
|
|
std::vector< const Core::DocObject * > | Core::getLinksByProperties (const Core::DocObject *o) |
|
std::vector< PropertyLinkDesc > | Core::getLinkDescByProperties (const Core::DocObject *o) |
|
void | Core::getBackLinksByProperties (const Core::DocObject *source, std::vector< const Core::DocObject * > &links) |
|
void | Core::removeLinkInProperties (const Core::DocObject *source, Core::DocObject *link) |
|
void | Core::removeBackLinkInProperties (const Core::DocObject *source, Core::DocObject *link) |
|
std::string | Core::dumpGraph (void) |
| Returns a string representation of the graph. More...
|
|
std::vector< std::string > | Core::check_graph () |
|
std::vector< const Core::DocObject * > | Core::getLinksToMe (const Core::DocObject *o) |
| Returns all objects that directly linked to 'o'. More...
|
|
std::vector< const Core::DocObject * > | Core::getBackLinksToMe (const Core::DocObject *o) |
| Returns all objects that directly linked to 'o'. More...
|
|
std::vector< const Core::DocObject * > | Core::getLinksFromMe (const Core::DocObject *o) |
| Returns all objects 'o' directly linked from 'o'. More...
|
|
std::vector< const Core::DocObject * > | Core::getBackLinksFromMe (const Core::DocObject *o) |
| Returns all objects 'o' directly linked from 'o'. More...
|
|
virtual bool | Core::maybeSave () |
| Can be overwritten to check if the undo stack is clean etc. More...
|
|
std::vector< Core::DocObject * > | Core::getObjectsToSave () |
| Returns all objects that will be saved in document. Basically interface for build_savemap(). More...
|
|
bool | Core::saveFile (bool toExport=false, bool saveBackupCopy=false) |
| Saves the file. More...
|
|
bool | Core::saveAsFile (const Base::String &filename=Base::String(), bool toExport=false, bool saveBackupCopy=false, const Base::String &initialDir=Base::String()) |
| Saves a new file under this name. More...
|
|
bool | Core::saveAsFileVersion (int version, const Base::String &filename=Base::String(), bool toExport=false, bool saveBackupCopy=false, const Base::String &initialDir=Base::String(), bool dontRename=false) |
| Saves a new file under this name. More...
|
|
void | Core::setOnSaveChangeToDefaultUser (bool onoff) |
| If true: Change to default user on next change. Usually from IFC User to Lexocad User. More...
|
|
bool | Core::getOnSaveChangeToDefaultUser () const |
| Return whether the user get changed to default user on next save. More...
|
|
bool | Core::askAndSetNewFilename (QString &newFilename, const Base::String &initialDir=Base::String()) |
| Ask user for filename (if not already passed in as newFilename) and set it to document. Returns false if user cancelled the save. More...
|
|
void | Core::setSaveBlocksUntilFinished (bool onoff) |
| If true, saving will block until the whole save is finished and file is ready. More...
|
|
bool | Core::getSaveBlocksUntilFinished () const |
| Returns whether saving will block until the whole save is finished and file is ready. More...
|
|
virtual void | Core::addInventorDirectory (const Base::String &) |
| Inventor search directories - needs to be stored for IV/Z export, but SoInput is not OK... More...
|
|
virtual void | Core::createGroundPlate_deprecated () |
| To overwrite. Deprecated, do not use. More...
|
|
virtual void | Core::deleteObject (Core::DocObject *o) |
| Physically deletes an object without informing the object maps. More...
|
|
void | Core::setGuidPolicy (const Base::GlobalId_Policy &policy) |
| Sets the default GUID policy. This determines what should be done if identical GUIDs are imported. More...
|
|
void | Core::setGuidPolicy (const Base::String &suffix, const Base::GlobalId_Policy &policy) |
| Sets the GUID policy for a file suffix. This determines what should be done if identical GUIDs are imported from files with this suffix. More...
|
|
Base::GlobalId_Policy | Core::getGuidPolicy () const |
| Returns the default GUID policy. More...
|
|
bool | Core::getGuidPolicy (const Base::String &suffix, Base::GlobalId_Policy &policy) const |
| Returns the GUID policy for a file suffix. More...
|
|
void | Core::addReferenceFrom (Core::DocObject *from) |
|
void | Core::removeReferenceFrom (Core::DocObject *from) |
|
bool | Core::hasReferencesFrom (Core::DocObject *from) const |
|
const std::set< Core::DocObject * > & | Core::getReferences () const |
|
void | Core::setFullFileName (const Base::String &fullfilename) |
| Sets the full file name including the path. More...
|
|
virtual const char * | Core::subject_name (void) |
|
virtual bool | Core::restoreGlobalAttachment (Base::GlobalAttachment *gAtta, std::istream *, uint64_t streamsize, const Base::String &entryName) |
|
bool | Core::addFileToZip (const Base::String &entryName, const Base::String &path) |
|
bool | Core::restoreFileFromZip (const Base::String &entryName, const Base::String &targetpath, bool binaryMode) |
|
void | Core::forceBackupOnNextSave () |
| Modifies the _lastBackupFileTime to force backup when the document is saved next time. More...
|
|
bool | Core::hasErrorObjectsInRecompute () |
| get result of last recompute More...
|
|
void | Core::resetHasErrorObjectsInRecompute () |
| reset result of last recompute(); More...
|
|
size_t | Core::getRecomputeCount () const |
| get count of recomputes() More...
|
|
virtual void | Core::setChanged (bool changed) |
|
bool | Core::getImmutableObjects (Base::Type t, ObjectSet &set) const |
|
virtual Core::DocObject * | Core::addImmutableObjectMaterial (Core::PropertyContainer *pc) |
|
void | Core::setImportedIFCFile (QString a) |
|
QString | Core::getImportedIFCFile () |
|
| Core::CoreDocument () |
|
| Core::CoreDocument (const CoreDocument &rhs) |
|
virtual | Core::~CoreDocument () |
|
Core::DocObject::IdType | Core::getUniqueObjectId () const |
| Returns the next available unique id. More...
|
|
void | Core::addToDocumentMaps (Core::DocObject *o) |
| Adds the object to all relevant maps. More...
|
|
Core::DocObject * | Core::getImmutableObjectWithSameValues (Base::Type t, Core::PropertyContainer *pc) const |
| Returns the object that has the same values as 'pc'. Returns '0' if there is no such object. More...
|
|
virtual Core::DocObject * | Core::restoreObject (const std::string &typeName, const std::string &typeHierarchy, const std::string &id) |
| Tries to restore an object from a given type name. More...
|
|
void | Core::restoreProperty (Core::Property *property, const Base::String &name, Base::AbstractXMLReader &reader, Base::PersistanceVersion &version) override |
|
virtual void | Core::saveDocument (std::shared_ptr< Base::AbstractWriter > writer, int version2save, bool showProgress) |
| Saves the document. More...
|
|
virtual int | Core::restoreDocument (Base::XMLReader &reader, Core::Attachments &attachments) |
| Restores the document. Returns the doc version of the restored document. More...
|
|
virtual std::vector< Core::DocObject * > | Core::build_savemap () |
| Build a map of the objects that get saved. Objects that are marked for delete get removed. More...
|
|
void | Core::addNewObjectsToGraph () |
| Adds objects with status 'New' to the graph. More...
|
|
void | Core::resolveLinkInDocument (Core::PropertyLinkBase *link) |
| After opening a document this method restores the links declared in the document header. More...
|
|
virtual bool | Core::renameTypeFromOlderVersions (int, Base::String &) |
|
virtual void | Core::checkBeforeObjectRestoring (int, int) |
| Is called before restoring objects of a document. More...
|
|
virtual void | Core::checkAndConfigureOpenedDocument () |
| Is called when opening a document. Can be overwritten to do some custom check routines. More...
|
|
virtual void | Core::checkAndConfigureOpenedDocumentAfterRecompute (int, int) |
| Is called when opening a document after recompute. Can be overwritten to do some custom check routines. More...
|
|
virtual void | Core::onFileOpened () |
| Is called when the file was opened, but before the message FileOpened gets emitted. Can be overwritten to add custom behavior. More...
|
|
virtual bool | Core::convertFromOlderVersions (int docVersion, int appVersion) |
|
virtual bool | Core::getPatchedUserTypes (Base::String filename, std::map< QString, QString > &id2TypeMap) |
|
virtual void | Core::cleanUndoStack () |
| Cleans the undo stack. Must be overwritten. More...
|
|
virtual void | Core::storeDirectory (const QString &, Base::AbstractWriter &) |
| Stores directory at given path to zip stream. More...
|
|
virtual void | Core::restoreDirectory (const QString &) |
| Restores directory to temp. More...
|
|
virtual void | Core::initDocument (bool) |
| Initialize document.. Can be overwritten to do some custom initialization. More...
|
|
const ObjectMap & | Core::getObjectMap () const |
| Returns the object map. More...
|
|
void | Core::createTempDirectory () |
| Creates the temporary directory. More...
|
|
void | Core::cleanTempDirectory () |
| Cleans the temporary directory. More...
|
|
bool | Core::maybe_add_GUID (const Base::GlobalId &guid, Core::DocObject *o) |
| Adds a guid to the map IF this id is not in use yet. More...
|
|
void | Core::add_GUID (const Base::GlobalId &guid, Core::DocObject *o) |
| Adds a guid without checking. More...
|
|
void | Core::remove_GUID (const Base::GlobalId &guid, Core::DocObject *o) |
| Removes a guid without checking. More...
|
|
void | Core::waitForSaveIsFinished () |
| Saving runs in Threads, wait for finish. More...
|
|
bool | Core::isCatalogFile () const |
| Returns true if this document's file is part of catalog. More...
|
|
bool | Core::createBackupFile (const Base::String &path, bool savePath) |
|
bool | Core::createBackupFileAfterOpeningDoc (const Base::String &path, bool savePath) |
|
void | Core::__setEnableTimeStamps__ (bool aOnOff) |
|
bool | Core::__getEnableTimeStamps__ () const |
|