OpenLexocad
27.1
|
Typedefs | |
typedef std::map< std::string, bool > | BehaviorAttributeMap |
typedef std::vector< Core::DocObject * > | ObjectVector |
typedef std::vector< const Core::DocObject * > | ObjectConstVector |
typedef std::unordered_set< Core::DocObject * > | ObjectSet |
typedef std::unordered_map< DocObject::IdType, Core::DocObject * > | ObjectMap |
typedef std::vector< Core::ExecObject * > | ExecObjectVector |
typedef std::unordered_set< Core::ExecObject * > | ExecObjectSet |
typedef std::unordered_map< DocObject::IdType, Core::ExecObject * > | ExecObjectMap |
typedef std::map< Base::Type, ObjectSet > | ObjectTypeMap |
typedef std::multimap< Base::String, Core::AttachmentEntry > | Attachments |
using | RelGraph_Type = boost::adjacency_list< boost::listS, boost::setS, boost::bidirectionalS, NodeInfo, EdgeInfo > |
using | RelGraph_Vertex = RelGraph_Type::vertex_descriptor |
using | RelGraph_Edge = RelGraph_Type::edge_descriptor |
using | RelGraph_Link = std::pair< Core::PropertyLinkBaseBase *, Core::DocObject * > |
typedef std::unordered_map< std::string, Core::Property * > | PropertyMap |
typedef std::unordered_map< std::string, PropertyValue > | PropertyValueMap |
typedef std::shared_ptr< Core::CodeProtectionFlags > | pCodeProtectionFlags |
Functions | |
LX_CORE_EXPORT Base::String | getLastImportedFilePath () |
General. More... | |
LX_CORE_EXPORT Base::String | getCurrentScriptFilePath () |
LX_CORE_EXPORT Base::GlobalId | getCurrentScriptId () |
Core::CoreDocument Core::PropertyContainer, Base::Subject | recompute (std::function< void(DOCOBJECTS newObj, DOCOBJECTS updatedObj, DOCOBJECTS deletedObj, DOCOBJECTS_ERROR_MAP errorObj)> onRecomputedCB) |
virtual bool | saveAs (const Base::String &filename) |
Saves the document under this name. More... | |
Base::String | getTmpDirectory () |
Returns the temporary directory. More... | |
bool | isActive () const |
Returns 'true' if the Document is the active Document. Otherwise returns 'false'. More... | |
virtual bool | isChanged () |
Returns 'true' if the document is changed. More... | |
Core::DocObject * | getObjectByGlobalId (const Base::GlobalId &guid) const |
Returns the DocObject with this GUID. More... | |
std::string | getDocXMLAsString () |
bool | testStatusBits (Status pos) const |
return the status bits More... | |
void | setStatusBits (Status pos, bool on) |
set the status bits More... | |
virtual Core::DocObject * | getObjectById (const DocObject::IdType &id) const |
Returns the object with this id. More... | |
Core::DocObject * | getObjectByUserName (const Base::String &s) const |
Returns the object with this userName. More... | |
void | emitAndNotify (Core::DocChanges &aDocChanges) |
template<typename T > | |
T * | createObject () |
template<typename T > | |
T * | addImmutableObject (Core::PropertyBundle< T > *po) |
template<typename T > | |
T * | addImmutableObject_NoCheck (Core::PropertyBundle< T > *po) |
template<typename T > | |
std::vector< T * > | getObjectsByType () const |
Return all object of given type and all derived classes. More... | |
template<typename T > | |
void | getObjectsByType (std::vector< T * > &objs) const |
Returns all objects of type 'T'. More... | |
void | getObjectsFromTypeMap (Base::Type t, std::vector< Core::DocObject * > &ret) const |
Returns all objects of type 'T'. More... | |
const ObjectTypeMap & | getTypeMap () const |
void | addPropertyLinkError (const std::string &from, const std::string &to) |
const DocumentState & | getDocumentState () const |
bool | checkObjectLinks (const std::vector< const 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 | checkObjectLinks (const std::vector< const Core::DocObject * > &objvec, const std::vector< const Core::DocObject * > &objToCheck, std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> *errors=nullptr) |
bool | checkDeletedObjectLinks (const std::vector< const Core::DocObject * > &objToCheck, std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> *errors) |
std::vector< const Core::DocObject * > | 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 * > | getOuter (const Core::DocObject *me) |
Get ALL Links from me, also indirect. More... | |
std::vector< const Core::DocObject * > | getLinksByProperties (const Core::DocObject *o) const |
std::vector< PropertyLinkDesc > | getLinkDescByProperties (const Core::DocObject *o) const |
std::vector< const Core::DocObject * > | getBackLinksByProperties (const Core::DocObject *source) const |
void | removeLinkInProperties (const Core::DocObject *source, Core::DocObject *link) |
void | removeBackLinkInProperties (const Core::DocObject *source, Core::DocObject *link) |
std::string | dumpGraph (void) |
Returns a string representation of the graph. More... | |
std::vector< std::string > | check_graph () |
std::vector< const Core::DocObject * > | getLinksToMe (const Core::DocObject *o) |
Returns all objects that directly linked to 'o'. More... | |
std::vector< const Core::DocObject * > | getBackLinksToMe (const Core::DocObject *o) |
Returns all objects that directly linked to 'o'. More... | |
std::vector< const Core::DocObject * > | getLinksFromMe (const Core::DocObject *o) |
Returns all objects 'o' directly linked from 'o'. More... | |
std::vector< const Core::DocObject * > | getBackLinksFromMe (const Core::DocObject *o) |
Returns all objects 'o' directly linked from 'o'. More... | |
virtual bool | maybeSave () |
Can be overwritten to check if the undo stack is clean etc. More... | |
std::vector< Core::DocObject * > | getObjectsToSave () |
Returns all objects that will be saved in document. Basically interface for build_savemap(). More... | |
bool | saveFile (bool toExport=false, bool saveBackupCopy=false) |
Saves the file. More... | |
bool | 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 | saveCopy (const Base::String &filename) |
Saves a copy of the current document, no notify, only store the doc under this name. More... | |
bool | saveAsFileVersion (int aMajorVersion, int aMinorVersion, 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 | setOnSaveChangeToDefaultUser (bool onoff) |
If true: Change to default user on next change. Usually from IFC User to Lexocad User. More... | |
bool | getOnSaveChangeToDefaultUser () const |
Return whether the user get changed to default user on next save. More... | |
bool | 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 | setSaveBlocksUntilFinished (bool onoff) |
If true, saving will block until the whole save is finished and file is ready. More... | |
bool | getSaveBlocksUntilFinished () const |
Returns whether saving will block until the whole save is finished and file is ready. More... | |
virtual void | addInventorDirectory (const Base::String &) |
Inventor search directories - needs to be stored for IV/Z export, but SoInput is not OK... More... | |
virtual void | createGroundPlate_deprecated () |
To overwrite. Deprecated, do not use. More... | |
void | setGuidPolicy (const Base::GlobalId_Policy &policy) |
Sets the default GUID policy. This determines what should be done if identical GUIDs are imported. More... | |
void | 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 | getGuidPolicy () const |
Returns the default GUID policy. More... | |
bool | getGuidPolicy (const Base::String &suffix, Base::GlobalId_Policy &policy) const |
Returns the GUID policy for a file suffix. More... | |
void | addReferenceFrom (Core::DocObject *from) |
void | removeReferenceFrom (Core::DocObject *from) |
bool | hasReferencesFrom (Core::DocObject *from) const |
const std::set< Core::DocObject * > & | getReferences () const |
void | setFullFileName (const Base::String &fullfilename) |
Sets the full file name including the path. More... | |
virtual const char * | subject_name (void) |
virtual bool | restoreGlobalAttachment (Base::GlobalAttachment *gAtta, std::istream *, uint64_t streamsize, const Base::String &entryName) |
bool | addFileToZip (const Base::String &entryName, const Base::String &path) |
bool | restoreFileFromZip (const Base::String &entryName, const Base::String &targetpath, bool binaryMode) |
void | forceBackupOnNextSave () |
Modifies the _lastBackupFileTime to force backup when the document is saved next time. More... | |
bool | hasErrorObjectsInRecompute () |
get result of last recompute More... | |
void | resetHasErrorObjectsInRecompute () |
reset result of last recompute(); More... | |
size_t | getRecomputeCount () const |
get count of recomputes() More... | |
virtual void | setChanged (bool changed) |
bool | getImmutableObjects (Base::Type t, ObjectSet &set) const |
virtual Core::DocObject * | addImmutableObjectMaterial (Core::PropertyContainer *pc) |
void | setImportedIFCFile (QString a) |
QString | getImportedIFCFile () |
void | test_graph () |
void | onAddLink (PropertyLinkBaseBase *p, Core::DocObject *from, Core::DocObject *o) |
void | onRemoveLink (PropertyLinkBaseBase *p, Core::DocObject *from, Core::DocObject *o) |
void | onAddLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::list< Core::DocObject * > &linkList) |
void | onRemoveLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::list< Core::DocObject * > &linkList) |
void | onAddLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::unordered_set< Core::DocObject * > &linkSet) |
void | onRemoveLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::unordered_set< Core::DocObject * > &linkSet) |
void | onAddBackLink (PropertyLinkBaseBase *p, Core::DocObject *from, Core::DocObject *o) |
void | onRemoveBackLink (PropertyLinkBaseBase *p, Core::DocObject *from, Core::DocObject *o) |
void | onAddBackLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::list< Core::DocObject * > &linkList) |
void | onRemoveBackLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::list< Core::DocObject * > &linkList) |
void | onAddBackLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::unordered_set< Core::DocObject * > &linkSet) |
void | onRemoveBackLinks (PropertyLinkBaseBase *p, Core::DocObject *from, const std::unordered_set< Core::DocObject * > &linkSet) |
Core::DocObject::IdType | getUniqueObjectIdFromInteger (size_t input) const |
void | breakLinks (Core::DocObject *from) |
std::vector< std::pair< Core::PropertyLinkBaseBase *, Core::DocObject * > > | getInLinks (Core::DocObject *docObj) |
std::vector< std::pair< Core::PropertyLinkBaseBase *, Core::DocObject * > > | getInBackLinks (Core::DocObject *docObj) |
std::vector< std::pair< Core::PropertyLinkBaseBase *, Core::DocObject * > > | getOutLinks (Core::DocObject *docObj) |
std::vector< std::pair< Core::PropertyLinkBaseBase *, Core::DocObject * > > | getOutBackLinks (Core::DocObject *docObj) |
CoreDocument () | |
CoreDocument (const CoreDocument &rhs) | |
virtual | ~CoreDocument () |
virtual void | deleteObject (Core::DocObject *o) |
Physically deletes an object without informing the object maps. More... | |
Core::DocObject::IdType | getUniqueObjectId () const |
Returns the next available unique id. More... | |
void | addToDocumentMaps (Core::DocObject *o) |
Adds the object to all relevant maps. More... | |
Core::DocObject * | 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 * | 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 | restoreProperty (Core::Property *property, const Base::String &name, Base::AbstractXMLReader &reader, Base::PersistenceVersion &version) override |
virtual void | saveDocument (std::shared_ptr< Base::AbstractWriter > writer, int versionMajor2save, int versionMinor2save, bool showProgress) |
Saves the document. More... | |
virtual int | restoreDocument (Base::XMLReader &reader, Core::Attachments &attachments) |
Restores the document. Returns the doc version of the restored document. More... | |
virtual std::vector< Core::DocObject * > | build_savemap (std::vector< std::string > &delete_log) |
Build a map of the objects that get saved. Objects that are marked for delete get removed. More... | |
void | addNewObjectsToGraph () |
Adds objects with status 'New' to the graph. More... | |
bool | checkDeletedObjectLinks (const std::vector< const Core::DocObject * > &objvec, const std::vector< const Core::DocObject * > &objToCheck, std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> *errors) |
void | resolveLinkInDocument (Core::PropertyLinkBase *link) |
After opening a document this method restores the links declared in the document header. More... | |
virtual bool | renameTypeFromOlderVersions (int, Base::String &) |
virtual void | checkBeforeObjectRestoring (int, int) |
Is called before restoring objects of a document. More... | |
virtual void | checkAndConfigureOpenedDocument () |
Is called when opening a document. Can be overwritten to do some custom check routines. More... | |
virtual void | checkAndConfigureOpenedDocumentAfterRecompute (int, int) |
Is called when opening a document after recompute. Can be overwritten to do some custom check routines. More... | |
virtual bool | convertFromOlderVersions (int docVersion, int appVersion) |
virtual bool | getPatchedUserTypes (const Base::String &filename, std::map< QString, QString > &id2TypeMap) |
virtual void | cleanUndoStack () |
Cleans the undo stack. Must be overwritten. More... | |
virtual void | storeDirectory (const QString &, Base::AbstractWriter &) |
Stores directory at given path to zip stream. More... | |
virtual void | restoreDirectory (const QString &) |
Restores directory to temp. More... | |
virtual void | initDocument (bool) |
Initialize document.. Can be overwritten to do some custom initialization. More... | |
const ObjectMap & | getObjectMap () const |
Returns the object map. More... | |
void | createTempDirectory () |
Creates the temporary directory. More... | |
void | cleanTempDirectory () |
Cleans the temporary directory. More... | |
bool | 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 | add_GUID (const Base::GlobalId &guid, Core::DocObject *o) |
Adds a guid without checking. More... | |
void | remove_GUID (const Base::GlobalId &guid, Core::DocObject *o) |
Removes a guid without checking. More... | |
void | waitForSaveIsFinished () |
Saving runs in Threads, wait for finish. More... | |
bool | isCatalogFile () const |
Returns true if this document's file is part of catalog. More... | |
bool | createBackupFile (const Base::String &path, bool savePath) |
bool | createBackupFileAfterOpeningDoc (const Base::String &path, bool savePath) |
void | __setEnableTimeStamps__ (bool aOnOff) |
bool | __getEnableTimeStamps__ () const |
void | _checkTransaction (Core::DocObject *pcDelObj, const Property *What, int line) |
checks if a valid transaction is open More... | |
int | _openTransaction (const char *name=0, int id=0) |
void | _commitTransaction (bool notify=false) |
Internally called by App::Application to commit the Command transaction. More... | |
void | _abortTransaction () |
Internally called by App::Application to abort the running transaction. More... | |
void | _clearRedos () |
DECLARE_PROPERTY_FACTORY (PropertyAxis1_Factory, Core::PropertyAxis1) | |
DECLARE_PROPERTY_FACTORY (PropertyAxis2D_Factory, PropertyAxis2D) | |
DECLARE_PROPERTY_FACTORY (PropertyAxis2_Factory, Core::PropertyAxis2) | |
DECLARE_PROPERTY_FACTORY (PropertyAxis22D_Factory, Core::PropertyAxis22D) | |
DECLARE_PROPERTY_FACTORY (PropertyAxis2List_Factory, Core::PropertyAxis2List) | |
DECLARE_PROPERTY_FACTORY (PropertyBackLinkBase_Factory, Core::PropertyBackLinkBase) | |
DECLARE_PROPERTY_FACTORY (PropertyBackLinkSetBase_Factory, Core::PropertyBackLinkSetBase) | |
DECLARE_PROPERTY_FACTORY (PropertyBackLinkSet_SaveV27AsBackLink_Factory, Core::PropertyBackLinkSetBase) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyBoolDescriptor_Factory, PropertyBoolDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyBoolean_Factory, Core::PropertyBoolean) | |
DECLARE_PROPERTY_FACTORY (PropertyBrepData_Factory, Core::PropertyBrepData) | |
DECLARE_PROPERTY_FACTORY (PropertyBrepDataSet_Factory, Core::PropertyBrepDataSet) | |
DECLARE_PROPERTY_FACTORY (PropertyBrush_Factory, Core::PropertyBrush) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyButtonDescriptor_Factory, PropertyButtonDescriptor) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyColorOpt, Core::PropertyColor) | |
DECLARE_PROPERTY_FACTORY (PropertyColor_Factory, Core::PropertyColor) | |
DECLARE_PROPERTY_FACTORY (PropertyColorOpt_Factory, Core::PropertyColorOpt) | |
DECLARE_PROPERTY_FACTORY (PropertyColorList_Factory, Core::PropertyColorList) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyColorDescriptor_Factory, PropertyColorDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyCompoundPlaneAngle_Factory, Core::PropertyCompoundPlaneAngle) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyCompoundPlaneAngleOpt, Core::PropertyCompoundPlaneAngle) | |
DECLARE_PROPERTY_FACTORY (PropertyDateTime_Factory, Core::PropertyDateTime) | |
DECLARE_PROPERTY_FACTORY (PropertyDateTimeList_Factory, Core::PropertyDateTimeList) | |
DECLARE_PROPERTY_TEMPLATES (Core::PropertyDescriptor, LX_CORE_EXPORT) | |
DECLARE_PROPERTY_FACTORY (PropertyDirection_Factory, Core::PropertyDirection) | |
DECLARE_PROPERTY_FACTORY (PropertyDirection2d_Factory, Core::PropertyDirection2d) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyDoubleDescriptor_Factory, PropertyDoubleDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyDrawStyle_Factory, Core::PropertyDrawStyle) | |
DECLARE_PROPERTY_FACTORY (PropertyArrowheads_Factory, Core::PropertyArrowheads) | |
DECLARE_PROPERTY_FACTORY (PropertyEmbeddedFile_Factory, Core::PropertyEmbeddedFile) | |
DECLARE_PROPERTY_TEMPLATES (Core::PropertyEnumDescriptor, LX_CORE_EXPORT) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyEnumDescriptor_Factory, PropertyEnumDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyFile_Factory, Core::PropertyFile) | |
DECLARE_PROPERTY_FACTORY (PropertyFont_Factory, Core::PropertyFont) | |
DECLARE_PROPERTY_TEMPLATES (Core::PropertyGroupDescriptor, LX_CORE_EXPORT) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyGroupDescriptor_Factory, PropertyGroupDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyGUID_Factory, Core::PropertyGUID) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyIdentifierOpt, Core::PropertyIdentifier) | |
DECLARE_PROPERTY_FACTORY (PropertyIdentifier_Factory, Core::PropertyIdentifier) | |
DECLARE_PROPERTY_FACTORY (PropertyInteger_Factory, Core::PropertyInteger) | |
DECLARE_PROPERTY_FACTORY (PropertyNumberOfDecimals_Factory, Core::PropertyNumberOfDecimals) | |
DECLARE_PROPERTY_FACTORY (PropertyIndex_Factory, Core::PropertyIndex) | |
DECLARE_PROPERTY_FACTORY (PropertyIndexList_Factory, Core::PropertyIndexList) | |
DECLARE_PROPERTY_FACTORY (PropertyEnum_Factory, Core::PropertyEnum) | |
DECLARE_PROPERTY_FACTORY (PropertyCountMeasure_Factory, Core::PropertyCountMeasure) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyIntegerOpt, Core::PropertyInteger) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyEnumOpt, Core::PropertyEnum) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyIntegerDescriptor_Factory, PropertyIntegerDescriptor) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyLabelOpt, Core::PropertyLabel) | |
DECLARE_PROPERTY_FACTORY (PropertyLabel_Factory, Core::PropertyLabel) | |
DECLARE_PROPERTY_FACTORY (PropertyLinkBase_Factory, Core::PropertyLinkBase) | |
DECLARE_PROPERTY_FACTORY (PropertyLinkSetBase_Factory, Core::PropertyLinkSetBase) | |
DECLARE_PROPERTY_FACTORY (PropertyLinkList_Factory, Core::PropertyLinkList) | |
DECLARE_PROPERTY_FACTORY (PropertyLogical_Factory, Core::PropertyLogical) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyLxAttributeDescriptor_Factory, PropertyLxAttributeDescriptor) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyLxFormulaDescriptor_Factory, PropertyLxFormulaDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyMD5_Factory, Core::PropertyMD5) | |
DECLARE_PROPERTY_FACTORY (PropertyMesh_Factory, Core::PropertyMesh) | |
DECLARE_PROPERTY_FACTORY (PropertyPen_Factory, Core::PropertyPen) | |
DECLARE_PROPERTY_FACTORY (PropertyPercent_Factory, Core::PropertyPercent) | |
DECLARE_PROPERTY_FACTORY (PropertyPoint_Factory, Core::PropertyPoint) | |
DECLARE_PROPERTY_FACTORY (PropertyPointList_Factory, Core::PropertyPointList) | |
DECLARE_PROPERTY_FACTORY (PropertyListPointList_Factory, Core::PropertyListPointList) | |
DECLARE_PROPERTY_FACTORY (PropertyPoint2d_Factory, Core::PropertyPoint2d) | |
DECLARE_PROPERTY_FACTORY (PropertyPoint2dList_Factory, Core::PropertyPoint2dList) | |
DECLARE_PROPERTY_FACTORY (PropertyProxy_Factory, Core::PropertyProxy) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyRealOpt, Core::PropertyReal) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyPositiveLengthOpt, Core::PropertyPositiveLength) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyPlaneAngleOpt, Core::PropertyPlaneAngle) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyPositivePlaneAngleOpt, Core::PropertyPositivePlaneAngle) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyNormalisedRatioOpt, Core::PropertyNormalisedRatio) | |
DECLARE_PROPERTY_FACTORY (PropertyReal_Factory, Core::PropertyReal) | |
DECLARE_PROPERTY_FACTORY (PropertyRealOpt_Factory, Core::PropertyRealOpt) | |
DECLARE_PROPERTY_FACTORY (PropertyRealList_Factory, Core::PropertyRealList) | |
DECLARE_PROPERTY_FACTORY (PropertyLength_Factory, Core::PropertyLength) | |
DECLARE_PROPERTY_FACTORY (PropertyLengthMeasure_Factory, Core::PropertyLengthMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyPositiveLength_Factory, Core::PropertyPositiveLength) | |
DECLARE_PROPERTY_FACTORY (PropertyLengthOpt_Factory, Core::PropertyLengthOpt) | |
DECLARE_PROPERTY_FACTORY (PropertyPlaneAngle_Factory, Core::PropertyPlaneAngle) | |
DECLARE_PROPERTY_FACTORY (PropertyPositivePlaneAngle_Factory, Core::PropertyPositivePlaneAngle) | |
DECLARE_PROPERTY_FACTORY (PropertyRatio_Factory, Core::PropertyRatio) | |
DECLARE_PROPERTY_FACTORY (PropertyPositiveRatio_Factory, Core::PropertyPositiveRatio) | |
DECLARE_PROPERTY_FACTORY (PropertyRatioMeasure_Factory, Core::PropertyRatioMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyPositiveRatioMeasure_Factory, Core::PropertyPositiveRatioMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyNormalisedRatio_Factory, Core::PropertyNormalisedRatio) | |
DECLARE_PROPERTY_FACTORY (PropertyDynamicViscosity_Factory, Core::PropertyDynamicViscosity) | |
DECLARE_PROPERTY_FACTORY (PropertyModulusOfElasticity_Factory, Core::PropertyModulusOfElasticity) | |
DECLARE_PROPERTY_FACTORY (PropertyThermalExpansionCoefficient_Factory, Core::PropertyThermalExpansionCoefficient) | |
DECLARE_PROPERTY_FACTORY (PropertyPressure_Factory, Core::PropertyPressure) | |
DECLARE_PROPERTY_FACTORY (PropertyThermodynamicTemperature_Factory, Core::PropertyThermodynamicTemperature) | |
DECLARE_PROPERTY_FACTORY (PropertySpecificHeatCapacity_Factory, Core::PropertySpecificHeatCapacity) | |
DECLARE_PROPERTY_FACTORY (PropertyThermalConductivity_Factory, Core::PropertyThermalConductivity) | |
DECLARE_PROPERTY_FACTORY (PropertyIsothermalMoistureCapacity_Factory, Core::PropertyIsothermalMoistureCapacity) | |
DECLARE_PROPERTY_FACTORY (PropertyVaporPermeability_Factory, Core::PropertyVaporPermeability) | |
DECLARE_PROPERTY_FACTORY (PropertyMoistureDiffusivity_Factory, Core::PropertyMoistureDiffusivity) | |
DECLARE_PROPERTY_FACTORY (PropertyMolecularWeight_Factory, Core::PropertyMolecularWeight) | |
DECLARE_PROPERTY_FACTORY (PropertyMassDensity_Factory, Core::PropertyMassDensity) | |
DECLARE_PROPERTY_FACTORY (PropertyIonConcentration_Factory, Core::PropertyIonConcentration) | |
DECLARE_PROPERTY_FACTORY (PropertyPHMeasure_Factory, Core::PropertyPHMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyHeatingValue_Factory, Core::PropertyHeatingValue) | |
DECLARE_PROPERTY_FACTORY (PropertyThermalTransmittance_Factory, Core::PropertyThermalTransmittance) | |
DECLARE_PROPERTY_FACTORY (PropertyThermalTransmittanceMeasure_Factory, Core::PropertyThermalTransmittanceMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyVolumetricFlowRateMeasure_Factory, Core::PropertyVolumetricFlowRateMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyPositiveLengthMeasure_Factory, Core::PropertyPositiveLengthMeasure) | |
DECLARE_PROPERTY_FACTORY (PropertyRelaxation_Factory, Core::PropertyRelaxation) | |
DECLARE_PROPERTY_FACTORY (PropertyRelaxationSet_Factory, Core::PropertyRelaxationSet) | |
DECLARE_PROPERTY_FACTORY (PropertyScriptParam_Factory, Core::PropertyScriptParam) | |
DECLARE_PROPERTY_FACTORY (PropertySearchSettings_Factory, Core::PropertySearchSettings) | |
DECLARE_PROPERTY_FACTORY (PropertySearchSettingsVector_Factory, Core::PropertySearchSettingsVector) | |
DECLARE_PROPERTY_FACTORY (PropertySolverElementLinkList_Factory, Core::PropertySolverElementLinkVector) | |
DECLARE_PROPERTY_FACTORY (PropertySolverSolverLinkList_Factory, Core::PropertySolverSolverLinkList) | |
DECLARE_OPTIONAL_PROPERTY_HEADER (PropertyStringOpt, Core::PropertyString) | |
DECLARE_PROPERTY_FACTORY (PropertyString_Factory, Core::PropertyString) | |
DECLARE_OBJECT_FACTORY_NOIFC (PropertyStringDescriptor_Factory, PropertyStringDescriptor) | |
DECLARE_PROPERTY_FACTORY (PropertyText_Factory, Core::PropertyText) | |
DECLARE_PROPERTY_FACTORY (PropertyTextList_Factory, Core::PropertyTextList) | |
DECLARE_PROPERTY_FACTORY (PropertyMultiLineText_Factory, Core::PropertyMultiLineText) | |
DECLARE_PROPERTY_FACTORY (PropertyTexture2_Factory, Core::PropertyTexture2) | |
DECLARE_PROPERTY_FACTORY (PropertyTexture2Transform_Factory, Core::PropertyTexture2Transform) | |
DECLARE_PROPERTY_FACTORY (PropertyTextureCoordinateMapping_Factory, Core::PropertyTextureCoordinateMapping) | |
DECLARE_PROPERTY_FACTORY (PropertyTextureCoordinateFunction_Factory, Core::PropertyTextureCoordinateFunction) | |
DECLARE_PROPERTY_FACTORY (PropertyTexture2List_Factory, Core::PropertyTexture2List) | |
DECLARE_PROPERTY_FACTORY (PropertyTransform_Factory, Core::PropertyTransform) | |
DECLARE_PROPERTY_FACTORY (PropertyGTransform_Factory, PropertyGTransform) | |
DECLARE_PROPERTY_FACTORY (PropertyUser_Factory, Core::PropertyUser) | |
DECLARE_PROPERTY_FACTORY (PropertyIfc_Factory, Core::PropertyIfc) | |
DECLARE_PROPERTY_FACTORY (PropertyVector_Factory, Core::PropertyVector) | |
DECLARE_PROPERTY_FACTORY (PropertyVectorList_Factory, Core::PropertyVectorList) | |
DECLARE_OBJECT_FACTORY_NOIFC (Core::PythonClassObject_Factory, Core::PythonClassObject) | |
DECLARE_OBJECT_FACTORY_NOIFC (PythonScriptObject_Factory, PythonScriptObject) | |
methods for the UNDO REDO and Transaction handling | |
Introduce a new concept of transaction ID. Each transaction must be unique inside the document. Multiple transactions from different documents can be grouped together with the same transaction ID. When undo, Gui component can query getAvailableUndo(id) to see if it is possible to undo with a given ID. If there more than one undo transactions, meaning that there are other transactions before the given ID. The Gui component shall ask user if he wants to undo multiple steps. And if the user agrees, call undo(id) to unroll all transaction before and including the the one with the give ID. Same applies for redo. The new transaction ID describe here is fully backward compatible. Calling the APIs with a default id=0 gives the original behavior. | |
void | setUndoMode (int iMode) |
switch the level of Undo/Redo More... | |
int | getUndoMode (void) const |
switch the level of Undo/Redo More... | |
void | setTransactionMode (int iMode) |
switch the transaction mode More... | |
int | openTransaction (const char *name=0) |
void | renameTransaction (const char *name, int id) |
Rename the current transaction if the id matches. More... | |
void | commitTransaction () |
Commit the Command transaction. Do nothing If there is no Command transaction open. More... | |
void | abortTransaction () |
Abort the actually running transaction. More... | |
bool | hasPendingTransaction () const |
Check if a transaction is open. More... | |
int | getTransactionID (bool undo, unsigned pos=0) const |
Return the undo/redo transaction ID starting from the back. More... | |
bool | isTransactionEmpty () const |
void | setUndoLimit (unsigned int UndoMemSize=0) |
Set the Undo limit in Byte! More... | |
void | setMaxUndoStackSize (unsigned int UndoMaxStackSize=20) |
Set the Undo limit as stack size. More... | |
unsigned int | getMaxUndoStackSize (void) const |
Set the Undo limit as stack size. More... | |
void | clearUndos () |
Remove all stored Undos and Redos. More... | |
int | getAvailableUndos (int id=0) const |
Returns the number of stored Undos. If greater than 0 Undo will be effective. More... | |
std::vector< std::string > | getAvailableUndoNames () const |
Returns a list of the Undo names. More... | |
bool | undo (int id=0) |
Will UNDO one step, returns False if no undo was done (Undos == 0). More... | |
int | getAvailableRedos (int id=0) const |
Returns the number of stored Redos. If greater than 0 Redo will be effective. More... | |
std::vector< std::string > | getAvailableRedoNames () const |
Returns a list of the Redo names. More... | |
bool | redo (int id=0) |
Will REDO one step, returns False if no redo was done (Redos == 0). More... | |
bool | isPerformingTransaction () const |
returns true if the document is in an Transaction phase, e.g. currently performing a redo/undo or rollback More... | |
Variables | |
const int | LEXOCAD_CORE_MSGID = 1000 |
DocumentState | _state |
ObjectMap | _all_objects_map |
ObjectVector | _all_objects_vector |
ObjectTypeMap | _immutableObjectsMap |
ObjectGraph * | _graph |
ObjectTypeMap | _typeObjects |
RelGraph * | _relGraph |
RelGraph * | _relGraphBackLink |
std::set< Core::DocObject * > | _references |
std::map< Base::GlobalId, Core::DocObject * > | _guid_map |
std::map< long, Core::DocObject * > | _ifcId_map |
bool | _hasErrorObjectsInRecompute = false |
bool | _needRestoreBeforeRecompute = false |
size_t | _recomputeCnt = 0 |
bool | mSolvingEnabled = true |
LX_CORE_EXPORT Version & | version |
Signals of the document | |
boost::signals2::signal< void(Core::DocChanges &)> | signalDocChanges |
Signals DocChanges (To be removed) More... | |
boost::signals2::signal< void(const Core::DocObject &)> | signalNewObject |
signal on new Object More... | |
boost::signals2::signal< void(const Core::DocObject &)> | signalDeletedObject |
signal on deleted Object More... | |
boost::signals2::signal< void(const Core::DocObject &, const Core::Property &)> | signalBeforeChangeObject |
signal before changing an Object More... | |
boost::signals2::signal< void(const Core::DocObject &, const Core::Property &)> | signalChangedObject |
signal on changed Object More... | |
boost::signals2::signal< void()> | signalBeforeRecompute |
Signals before recompute. More... | |
boost::signals2::signal< void(const std::vector< Core::DocObject * > &, const std::vector< Core::DocObject * > &, const std::vector< Core::DocObject * > &)> | signalRecomputed |
Signals NewObjects, UpdatedObjects, DeletedObjects being recomputed. More... | |
boost::signals2::signal< void()> | signalRecomputeError |
Signals a recompute error. More... | |
boost::signals2::signal< void(const std::map< Core::DocObject *, std::vector< std::string >> &)> | signalRecomputedErrorObjects |
Signals recomputed error DocObjects. More... | |
boost::signals2::signal< void(const std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> &)> | signalDefectLinks |
Signals defect links from object1 to object2. More... | |
boost::signals2::signal< void()> | signalNewFile |
Signals new file. More... | |
typedef std::multimap<Base::String, Core::AttachmentEntry> Core::Attachments |
typedef std::map<std::string, bool> Core::BehaviorAttributeMap |
typedef std::unordered_map<DocObject::IdType, Core::ExecObject*> Core::ExecObjectMap |
typedef std::unordered_set<Core::ExecObject*> Core::ExecObjectSet |
typedef std::vector<Core::ExecObject*> Core::ExecObjectVector |
typedef std::vector<const Core::DocObject*> Core::ObjectConstVector |
typedef std::unordered_map<DocObject::IdType, Core::DocObject*> Core::ObjectMap |
typedef std::unordered_set< Core::DocObject * > Core::ObjectSet |
typedef std::map<Base::Type, ObjectSet> Core::ObjectTypeMap |
typedef std::vector< Core::DocObject * > Core::ObjectVector |
typedef std::shared_ptr<Core::CodeProtectionFlags> Core::pCodeProtectionFlags |
typedef std::unordered_map<std::string, Core::Property*> Core::PropertyMap |
typedef std::unordered_map<std::string, PropertyValue> Core::PropertyValueMap |
using Core::RelGraph_Edge = typedef RelGraph_Type::edge_descriptor |
using Core::RelGraph_Link = typedef std::pair<Core::PropertyLinkBaseBase*,Core::DocObject*> |
using Core::RelGraph_Type = typedef boost::adjacency_list<boost::listS, boost::setS, boost::bidirectionalS,NodeInfo,EdgeInfo > |
using Core::RelGraph_Vertex = typedef RelGraph_Type::vertex_descriptor |
enum Core::ExecuteStatus |
enum Core::Key |
enum Core::MouseButton |
enum Core::ObjectStatus |
enum Core::PickType |
enum Core::PropertyKind |
The PropertyKind enum determines what a modification of this property does to the object it is contained in. The setting of the PropertyKind has direct influence on the recompute of an object:
Enumerator | |
---|---|
P_NO_MODIFICATION | |
P_MODIFY_PLACEMENT | P_NO_MODIFICATION -> triggers NO RECOMPUTE. |
P_LINK | |
P_MODIFY_VISIBLITY | |
P_MODIFY_SHAPE | |
P_MODIFY_APPEARANCE | |
P_BACKLINK |
enum Core::PropertyType |
Enumerator | |
---|---|
Prop_None | No special property type |
Prop_ReadOnly | Property is read-only in the editor |
Prop_Transient | Property content won't be saved to file, but still saves name, type and status |
Prop_Hidden | Property won't appear in the editor |
Prop_Output | Modified property doesn't touch its parent container |
Prop_NoRecompute | Modified property doesn't touch its container for recompute |
Prop_NoPersist | Property won't be saved to file at all |
enum Core::SnapType |
enum Core::SpecialCursor |
|
strong |
|
strong |
|
protected |
|
protected |
|
protected |
Internally called by App::Application to abort the running transaction.
|
protected |
checks if a valid transaction is open
|
protected |
|
protected |
Internally called by App::Application to commit the Command transaction.
|
protected |
Open a new command Undo/Redo, an UTF-8 name can be specified
name | transaction name |
id | transaction ID, if 0 then the ID is auto generated. |
This function creates an actual transaction regardless of Application AutoTransaction setting.
void Core::abortTransaction | ( | ) |
Abort the actually running transaction.
|
protected |
Adds a guid without checking.
bool Core::addFileToZip | ( | const Base::String & | entryName, |
const Base::String & | path | ||
) |
T* Core::addImmutableObject | ( | Core::PropertyBundle< T > * | po | ) |
Adds an immutable object to the document using templates. The Core::PropertyBundle is taken to compare the values with all existing immutable objects.
T* Core::addImmutableObject_NoCheck | ( | Core::PropertyBundle< T > * | po | ) |
Adds an immutable object to the document using templates. The Core::PropertyBundle is taken to compare the values with all existing immutable objects.
|
virtual |
|
virtual |
Inventor search directories - needs to be stored for IV/Z export, but SoInput is not OK...
|
protected |
Adds objects with status 'New' to the graph.
void Core::addPropertyLinkError | ( | const std::string & | from, |
const std::string & | to | ||
) |
void Core::addReferenceFrom | ( | Core::DocObject * | from | ) |
|
protected |
Adds the object to all relevant maps.
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.
void Core::breakLinks | ( | Core::DocObject * | from | ) |
|
protectedvirtual |
Build a map of the objects that get saved. Objects that are marked for delete get removed.
std::vector<std::string> Core::check_graph | ( | ) |
|
protectedvirtual |
Is called when opening a document. Can be overwritten to do some custom check routines.
|
protectedvirtual |
Is called when opening a document after recompute. Can be overwritten to do some custom check routines.
|
protectedvirtual |
Is called before restoring objects of a document.
bool Core::checkDeletedObjectLinks | ( | const std::vector< const Core::DocObject * > & | objToCheck, |
std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> * | errors | ||
) |
|
protected |
bool Core::checkObjectLinks | ( | const std::vector< const 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.
bool Core::checkObjectLinks | ( | const std::vector< const Core::DocObject * > & | objvec, |
const std::vector< const Core::DocObject * > & | objToCheck, | ||
std::vector< std::pair< const Core::DocObject *, const Core::DocObject * >> * | errors = nullptr |
||
) |
|
protected |
Cleans the temporary directory.
|
protectedvirtual |
Cleans the undo stack. Must be overwritten.
void Core::clearUndos | ( | ) |
Remove all stored Undos and Redos.
void Core::commitTransaction | ( | ) |
|
protectedvirtual |
Converts document from older version. Is called when a document with an older version number is opened. Returns true if successful, false if failed to convert.
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
To overwrite. Deprecated, do not use.
T* Core::createObject | ( | ) |
Creates and adds a new object to the document using templates. If a Core::PropertyBundle is given the object is initialized with these properties.
|
protected |
Creates the temporary directory.
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyColorDescriptor_Factory | , |
PropertyColorDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyButtonDescriptor_Factory | , |
PropertyButtonDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyLxAttributeDescriptor_Factory | , |
PropertyLxAttributeDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyStringDescriptor_Factory | , |
PropertyStringDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyGroupDescriptor_Factory | , |
PropertyGroupDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyLxFormulaDescriptor_Factory | , |
PropertyLxFormulaDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyDoubleDescriptor_Factory | , |
PropertyDoubleDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyIntegerDescriptor_Factory | , |
PropertyIntegerDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyBoolDescriptor_Factory | , |
PropertyBoolDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyEnumDescriptor_Factory | , |
PropertyEnumDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PythonScriptObject_Factory | , |
PythonScriptObject | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | Core::PythonClassObject_Factory | , |
Core::PythonClassObject | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyIdentifierOpt | , |
Core::PropertyIdentifier | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyLabelOpt | , |
Core::PropertyLabel | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyRealOpt | , |
Core::PropertyReal | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyCompoundPlaneAngleOpt | , |
Core::PropertyCompoundPlaneAngle | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyStringOpt | , |
Core::PropertyString | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyColorOpt | , |
Core::PropertyColor | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyPositiveLengthOpt | , |
Core::PropertyPositiveLength | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyPlaneAngleOpt | , |
Core::PropertyPlaneAngle | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyPositivePlaneAngleOpt | , |
Core::PropertyPositivePlaneAngle | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyIntegerOpt | , |
Core::PropertyInteger | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyEnumOpt | , |
Core::PropertyEnum | |||
) |
Core::DECLARE_OPTIONAL_PROPERTY_HEADER | ( | PropertyNormalisedRatioOpt | , |
Core::PropertyNormalisedRatio | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyIdentifier_Factory | , |
Core::PropertyIdentifier | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLabel_Factory | , |
Core::PropertyLabel | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyScriptParam_Factory | , |
Core::PropertyScriptParam | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPercent_Factory | , |
Core::PropertyPercent | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPen_Factory | , |
Core::PropertyPen | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBoolean_Factory | , |
Core::PropertyBoolean | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBrush_Factory | , |
Core::PropertyBrush | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyFile_Factory | , |
Core::PropertyFile | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDrawStyle_Factory | , |
Core::PropertyDrawStyle | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyCompoundPlaneAngle_Factory | , |
Core::PropertyCompoundPlaneAngle | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyFont_Factory | , |
Core::PropertyFont | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLogical_Factory | , |
Core::PropertyLogical | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyMesh_Factory | , |
Core::PropertyMesh | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyUser_Factory | , |
Core::PropertyUser | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyProxy_Factory | , |
Core::PropertyProxy | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyString_Factory | , |
Core::PropertyString | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySolverElementLinkList_Factory | , |
Core::PropertySolverElementLinkVector | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySolverSolverLinkList_Factory | , |
Core::PropertySolverSolverLinkList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyEmbeddedFile_Factory | , |
Core::PropertyEmbeddedFile | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyIfc_Factory | , |
Core::PropertyIfc | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyMD5_Factory | , |
Core::PropertyMD5 | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySearchSettings_Factory | , |
Core::PropertySearchSettings | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRelaxation_Factory | , |
Core::PropertyRelaxation | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySearchSettingsVector_Factory | , |
Core::PropertySearchSettingsVector | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRelaxationSet_Factory | , |
Core::PropertyRelaxationSet | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDateTime_Factory | , |
Core::PropertyDateTime | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyVector_Factory | , |
Core::PropertyVector | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDateTimeList_Factory | , |
Core::PropertyDateTimeList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDirection_Factory | , |
Core::PropertyDirection | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyVectorList_Factory | , |
Core::PropertyVectorList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDirection2d_Factory | , |
Core::PropertyDirection2d | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTransform_Factory | , |
Core::PropertyTransform | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis1_Factory | , |
Core::PropertyAxis1 | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBrepData_Factory | , |
Core::PropertyBrepData | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyArrowheads_Factory | , |
Core::PropertyArrowheads | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyGTransform_Factory | , |
PropertyGTransform | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis2D_Factory | , |
PropertyAxis2D | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBrepDataSet_Factory | , |
Core::PropertyBrepDataSet | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyColor_Factory | , |
Core::PropertyColor | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyColorOpt_Factory | , |
Core::PropertyColorOpt | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyGUID_Factory | , |
Core::PropertyGUID | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyColorList_Factory | , |
Core::PropertyColorList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyText_Factory | , |
Core::PropertyText | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTextList_Factory | , |
Core::PropertyTextList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyMultiLineText_Factory | , |
Core::PropertyMultiLineText | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis2_Factory | , |
Core::PropertyAxis2 | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis22D_Factory | , |
Core::PropertyAxis22D | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis2List_Factory | , |
Core::PropertyAxis2List | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTexture2_Factory | , |
Core::PropertyTexture2 | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTexture2Transform_Factory | , |
Core::PropertyTexture2Transform | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTextureCoordinateMapping_Factory | , |
Core::PropertyTextureCoordinateMapping | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTextureCoordinateFunction_Factory | , |
Core::PropertyTextureCoordinateFunction | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTexture2List_Factory | , |
Core::PropertyTexture2List | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPoint_Factory | , |
Core::PropertyPoint | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPointList_Factory | , |
Core::PropertyPointList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyListPointList_Factory | , |
Core::PropertyListPointList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPoint2d_Factory | , |
Core::PropertyPoint2d | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPoint2dList_Factory | , |
Core::PropertyPoint2dList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBackLinkBase_Factory | , |
Core::PropertyBackLinkBase | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBackLinkSetBase_Factory | , |
Core::PropertyBackLinkSetBase | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBackLinkSet_SaveV27AsBackLink_Factory | , |
Core::PropertyBackLinkSetBase | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyInteger_Factory | , |
Core::PropertyInteger | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyNumberOfDecimals_Factory | , |
Core::PropertyNumberOfDecimals | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyIndex_Factory | , |
Core::PropertyIndex | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyIndexList_Factory | , |
Core::PropertyIndexList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyEnum_Factory | , |
Core::PropertyEnum | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyCountMeasure_Factory | , |
Core::PropertyCountMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLinkBase_Factory | , |
Core::PropertyLinkBase | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLinkSetBase_Factory | , |
Core::PropertyLinkSetBase | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLinkList_Factory | , |
Core::PropertyLinkList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyReal_Factory | , |
Core::PropertyReal | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRealOpt_Factory | , |
Core::PropertyRealOpt | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRealList_Factory | , |
Core::PropertyRealList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLength_Factory | , |
Core::PropertyLength | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLengthMeasure_Factory | , |
Core::PropertyLengthMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPositiveLength_Factory | , |
Core::PropertyPositiveLength | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyLengthOpt_Factory | , |
Core::PropertyLengthOpt | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPlaneAngle_Factory | , |
Core::PropertyPlaneAngle | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPositivePlaneAngle_Factory | , |
Core::PropertyPositivePlaneAngle | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRatio_Factory | , |
Core::PropertyRatio | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPositiveRatio_Factory | , |
Core::PropertyPositiveRatio | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRatioMeasure_Factory | , |
Core::PropertyRatioMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPositiveRatioMeasure_Factory | , |
Core::PropertyPositiveRatioMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyNormalisedRatio_Factory | , |
Core::PropertyNormalisedRatio | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDynamicViscosity_Factory | , |
Core::PropertyDynamicViscosity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyModulusOfElasticity_Factory | , |
Core::PropertyModulusOfElasticity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyThermalExpansionCoefficient_Factory | , |
Core::PropertyThermalExpansionCoefficient | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPressure_Factory | , |
Core::PropertyPressure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyThermodynamicTemperature_Factory | , |
Core::PropertyThermodynamicTemperature | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySpecificHeatCapacity_Factory | , |
Core::PropertySpecificHeatCapacity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyThermalConductivity_Factory | , |
Core::PropertyThermalConductivity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyIsothermalMoistureCapacity_Factory | , |
Core::PropertyIsothermalMoistureCapacity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyVaporPermeability_Factory | , |
Core::PropertyVaporPermeability | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyMoistureDiffusivity_Factory | , |
Core::PropertyMoistureDiffusivity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyMolecularWeight_Factory | , |
Core::PropertyMolecularWeight | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyMassDensity_Factory | , |
Core::PropertyMassDensity | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyIonConcentration_Factory | , |
Core::PropertyIonConcentration | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPHMeasure_Factory | , |
Core::PropertyPHMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyHeatingValue_Factory | , |
Core::PropertyHeatingValue | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyThermalTransmittance_Factory | , |
Core::PropertyThermalTransmittance | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyThermalTransmittanceMeasure_Factory | , |
Core::PropertyThermalTransmittanceMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyVolumetricFlowRateMeasure_Factory | , |
Core::PropertyVolumetricFlowRateMeasure | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyPositiveLengthMeasure_Factory | , |
Core::PropertyPositiveLengthMeasure | |||
) |
Core::DECLARE_PROPERTY_TEMPLATES | ( | Core::PropertyGroupDescriptor | , |
LX_CORE_EXPORT | |||
) |
Core::DECLARE_PROPERTY_TEMPLATES | ( | Core::PropertyEnumDescriptor | , |
LX_CORE_EXPORT | |||
) |
Core::DECLARE_PROPERTY_TEMPLATES | ( | Core::PropertyDescriptor | , |
LX_CORE_EXPORT | |||
) |
|
protectedvirtual |
Physically deletes an object without informing the object maps.
std::string Core::dumpGraph | ( | void | ) |
Returns a string representation of the graph.
void Core::emitAndNotify | ( | Core::DocChanges & | aDocChanges | ) |
void Core::forceBackupOnNextSave | ( | ) |
Modifies the _lastBackupFileTime to force backup when the document is saved next time.
std::vector<std::string> Core::getAvailableRedoNames | ( | ) | const |
Returns a list of the Redo names.
int Core::getAvailableRedos | ( | int | id = 0 | ) | const |
Returns the number of stored Redos. If greater than 0 Redo will be effective.
std::vector<std::string> Core::getAvailableUndoNames | ( | ) | const |
Returns a list of the Undo names.
int Core::getAvailableUndos | ( | int | id = 0 | ) | const |
Returns the number of stored Undos. If greater than 0 Undo will be effective.
std::vector<const Core::DocObject*> Core::getBackLinksByProperties | ( | const Core::DocObject * | source | ) | const |
std::vector<const Core::DocObject*> Core::getBackLinksFromMe | ( | const Core::DocObject * | o | ) |
Returns all objects 'o' directly linked from 'o'.
std::vector<const Core::DocObject*> Core::getBackLinksToMe | ( | const Core::DocObject * | o | ) |
Returns all objects that directly linked to 'o'.
LX_CORE_EXPORT Base::String Core::getCurrentScriptFilePath | ( | ) |
LX_CORE_EXPORT Base::GlobalId Core::getCurrentScriptId | ( | ) |
const DocumentState& Core::getDocumentState | ( | ) | const |
std::string Core::getDocXMLAsString | ( | ) |
Base::GlobalId_Policy Core::getGuidPolicy | ( | ) | const |
Returns the default GUID policy.
bool Core::getGuidPolicy | ( | const Base::String & | suffix, |
Base::GlobalId_Policy & | policy | ||
) | const |
Returns the GUID policy for a file suffix.
bool Core::getImmutableObjects | ( | Base::Type | t, |
ObjectSet & | set | ||
) | const |
|
protected |
Returns the object that has the same values as 'pc'. Returns '0' if there is no such object.
QString Core::getImportedIFCFile | ( | ) |
std::vector<std::pair<Core::PropertyLinkBaseBase*,Core::DocObject*> > Core::getInBackLinks | ( | Core::DocObject * | docObj | ) |
std::vector<std::pair<Core::PropertyLinkBaseBase*,Core::DocObject*> > Core::getInLinks | ( | Core::DocObject * | docObj | ) |
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.
LX_CORE_EXPORT Base::String Core::getLastImportedFilePath | ( | ) |
General.
std::vector<PropertyLinkDesc> Core::getLinkDescByProperties | ( | const Core::DocObject * | o | ) | const |
std::vector<const Core::DocObject*> Core::getLinksByProperties | ( | const Core::DocObject * | o | ) | const |
std::vector<const Core::DocObject*> Core::getLinksFromMe | ( | const Core::DocObject * | o | ) |
Returns all objects 'o' directly linked from 'o'.
std::vector<const Core::DocObject*> Core::getLinksToMe | ( | const Core::DocObject * | o | ) |
Returns all objects that directly linked to 'o'.
unsigned int Core::getMaxUndoStackSize | ( | void | ) | const |
Set the Undo limit as stack size.
Core::DocObject* Core::getObjectByGlobalId | ( | const Base::GlobalId & | guid | ) | const |
Returns the DocObject with this GUID.
|
virtual |
Returns the object with this id.
Core::DocObject* Core::getObjectByUserName | ( | const Base::String & | s | ) | const |
Returns the object with this userName.
|
protected |
Returns the object map.
std::vector<T*> Core::getObjectsByType | ( | ) | const |
Return all object of given type and all derived classes.
void Core::getObjectsByType | ( | std::vector< T * > & | objs | ) | const |
Returns all objects of type 'T'.
void Core::getObjectsFromTypeMap | ( | Base::Type | t, |
std::vector< Core::DocObject * > & | ret | ||
) | const |
Returns all objects of type 'T'.
std::vector<Core::DocObject*> Core::getObjectsToSave | ( | ) |
Returns all objects that will be saved in document. Basically interface for build_savemap().
bool Core::getOnSaveChangeToDefaultUser | ( | ) | const |
Return whether the user get changed to default user on next save.
std::vector<std::pair<Core::PropertyLinkBaseBase*,Core::DocObject*> > Core::getOutBackLinks | ( | Core::DocObject * | docObj | ) |
std::vector<const Core::DocObject*> Core::getOuter | ( | const Core::DocObject * | me | ) |
Get ALL Links from me, also indirect.
std::vector<std::pair<Core::PropertyLinkBaseBase*,Core::DocObject*> > Core::getOutLinks | ( | Core::DocObject * | docObj | ) |
|
protectedvirtual |
size_t Core::getRecomputeCount | ( | ) | const |
get count of recomputes()
const std::set<Core::DocObject*>& Core::getReferences | ( | ) | const |
bool Core::getSaveBlocksUntilFinished | ( | ) | const |
Returns whether saving will block until the whole save is finished and file is ready.
Base::String Core::getTmpDirectory | ( | ) |
Returns the temporary directory.
int Core::getTransactionID | ( | bool | undo, |
unsigned | pos = 0 |
||
) | const |
Return the undo/redo transaction ID starting from the back.
const ObjectTypeMap& Core::getTypeMap | ( | ) | const |
int Core::getUndoMode | ( | void | ) | const |
switch the level of Undo/Redo
|
protected |
Returns the next available unique id.
Core::DocObject::IdType Core::getUniqueObjectIdFromInteger | ( | size_t | input | ) | const |
bool Core::hasErrorObjectsInRecompute | ( | ) |
get result of last recompute
bool Core::hasPendingTransaction | ( | ) | const |
Check if a transaction is open.
bool Core::hasReferencesFrom | ( | Core::DocObject * | from | ) | const |
|
protectedvirtual |
Initialize document.. Can be overwritten to do some custom initialization.
bool Core::isActive | ( | ) | const |
Returns 'true' if the Document is the active Document. Otherwise returns 'false'.
|
protected |
Returns true if this document's file is part of catalog.
|
virtual |
Returns 'true' if the document is changed.
bool Core::isPerformingTransaction | ( | ) | const |
returns true if the document is in an Transaction phase, e.g. currently performing a redo/undo or rollback
bool Core::isTransactionEmpty | ( | ) | const |
Check if a transaction is open and its list is empty. If no transaction is open true is returned.
|
protected |
Adds a guid to the map IF this id is not in use yet.
|
virtual |
Can be overwritten to check if the undo stack is clean etc.
void Core::onAddBackLink | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
Core::DocObject * | o | ||
) |
void Core::onAddBackLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::list< Core::DocObject * > & | linkList | ||
) |
void Core::onAddBackLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::unordered_set< Core::DocObject * > & | linkSet | ||
) |
void Core::onAddLink | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
Core::DocObject * | o | ||
) |
void Core::onAddLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::list< Core::DocObject * > & | linkList | ||
) |
void Core::onAddLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::unordered_set< Core::DocObject * > & | linkSet | ||
) |
void Core::onRemoveBackLink | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
Core::DocObject * | o | ||
) |
void Core::onRemoveBackLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::list< Core::DocObject * > & | linkList | ||
) |
void Core::onRemoveBackLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::unordered_set< Core::DocObject * > & | linkSet | ||
) |
void Core::onRemoveLink | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
Core::DocObject * | o | ||
) |
void Core::onRemoveLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::list< Core::DocObject * > & | linkList | ||
) |
void Core::onRemoveLinks | ( | PropertyLinkBaseBase * | p, |
Core::DocObject * | from, | ||
const std::unordered_set< Core::DocObject * > & | linkSet | ||
) |
int Core::openTransaction | ( | const char * | name = 0 | ) |
Open a new command Undo/Redo, an UTF-8 name can be specified
name | transaction name |
This function calls App::Application::setActiveTransaction(name) instead to setup a potential transaction which will only be created if there is actual changes.
Core::CoreDocument Core::PropertyContainer, Base::Subject Core::recompute | ( | std::function< void(DOCOBJECTS newObj, DOCOBJECTS updatedObj, DOCOBJECTS deletedObj, DOCOBJECTS_ERROR_MAP errorObj)> | onRecomputedCB | ) |
bool Core::redo | ( | int | id = 0 | ) |
Will REDO one step, returns False if no redo was done (Redos == 0).
|
protected |
Removes a guid without checking.
void Core::removeBackLinkInProperties | ( | const Core::DocObject * | source, |
Core::DocObject * | link | ||
) |
void Core::removeLinkInProperties | ( | const Core::DocObject * | source, |
Core::DocObject * | link | ||
) |
void Core::removeReferenceFrom | ( | Core::DocObject * | from | ) |
void Core::renameTransaction | ( | const char * | name, |
int | id | ||
) |
Rename the current transaction if the id matches.
|
protectedvirtual |
Handles renaming of types between versions. This method looks whether it is necessary to create object of different type when restoring objects. Returns True if something was changed, false when there is no change.
void Core::resetHasErrorObjectsInRecompute | ( | ) |
reset result of last recompute();
|
protected |
After opening a document this method restores the links declared in the document header.
|
protectedvirtual |
Restores directory to temp.
|
protectedvirtual |
Restores the document. Returns the doc version of the restored document.
bool Core::restoreFileFromZip | ( | const Base::String & | entryName, |
const Base::String & | targetpath, | ||
bool | binaryMode | ||
) |
|
virtual |
|
protectedvirtual |
Tries to restore an object from a given type name.
|
overrideprotected |
|
virtual |
Saves the document under this name.
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.
bool Core::saveAsFileVersion | ( | int | aMajorVersion, |
int | aMinorVersion, | ||
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.
bool Core::saveCopy | ( | const Base::String & | filename | ) |
Saves a copy of the current document, no notify, only store the doc under this name.
|
protectedvirtual |
Saves the document.
bool Core::saveFile | ( | bool | toExport = false , |
bool | saveBackupCopy = false |
||
) |
Saves the file.
|
virtual |
void Core::setFullFileName | ( | const Base::String & | fullfilename | ) |
Sets the full file name including the path.
void Core::setGuidPolicy | ( | const Base::GlobalId_Policy & | policy | ) |
Sets the default GUID policy. This determines what should be done if identical GUIDs are imported.
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.
void Core::setImportedIFCFile | ( | QString | a | ) |
void Core::setMaxUndoStackSize | ( | unsigned int | UndoMaxStackSize = 20 | ) |
Set the Undo limit as stack size.
void Core::setOnSaveChangeToDefaultUser | ( | bool | onoff | ) |
If true: Change to default user on next change. Usually from IFC User to Lexocad User.
void Core::setSaveBlocksUntilFinished | ( | bool | onoff | ) |
If true, saving will block until the whole save is finished and file is ready.
void Core::setStatusBits | ( | Status | pos, |
bool | on | ||
) |
set the status bits
void Core::setTransactionMode | ( | int | iMode | ) |
switch the transaction mode
void Core::setUndoLimit | ( | unsigned int | UndoMemSize = 0 | ) |
Set the Undo limit in Byte!
void Core::setUndoMode | ( | int | iMode | ) |
switch the level of Undo/Redo
|
protectedvirtual |
Stores directory at given path to zip stream.
|
virtual |
void Core::test_graph | ( | ) |
bool Core::testStatusBits | ( | Status | pos | ) | const |
return the status bits
bool Core::undo | ( | int | id = 0 | ) |
Will UNDO one step, returns False if no undo was done (Undos == 0).
|
protected |
Saving runs in Threads, wait for finish.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const int Core::LEXOCAD_CORE_MSGID = 1000 |
|
protected |
boost::signals2::signal<void(const Core::DocObject&, const Core::Property&)> Core::signalBeforeChangeObject |
signal before changing an Object
boost::signals2::signal<void()> Core::signalBeforeRecompute |
Signals before recompute.
boost::signals2::signal<void(const Core::DocObject&, const Core::Property&)> Core::signalChangedObject |
signal on changed Object
boost::signals2::signal<void(const std::vector<std::pair<const Core::DocObject*, const Core::DocObject*>>&)> Core::signalDefectLinks |
Signals defect links from object1 to object2.
boost::signals2::signal<void(const Core::DocObject&)> Core::signalDeletedObject |
signal on deleted Object
boost::signals2::signal<void(Core::DocChanges&)> Core::signalDocChanges |
Signals DocChanges (To be removed)
boost::signals2::signal<void()> Core::signalNewFile |
Signals new file.
boost::signals2::signal<void(const Core::DocObject&)> Core::signalNewObject |
signal on new Object
boost::signals2::signal<void(const std::vector<Core::DocObject*>&, const std::vector<Core::DocObject*>&,const std::vector<Core::DocObject*>&)> Core::signalRecomputed |
Signals NewObjects, UpdatedObjects, DeletedObjects being recomputed.
boost::signals2::signal<void(const std::map<Core::DocObject*, std::vector<std::string>>&)> Core::signalRecomputedErrorObjects |
Signals recomputed error DocObjects.
boost::signals2::signal<void()> Core::signalRecomputeError |
Signals a recompute error.
LX_CORE_EXPORT Version& Core::version |