OpenLexocad
27.0
|
Typedefs | |
typedef std::map< std::string, bool > | BehaviorAttributeMap |
typedef std::vector< Core::DocObject * > | ObjectVector |
typedef std::vector< const Core::DocObject * > | ObjectConstVector |
typedef boost::unordered_set< Core::DocObject * > | ObjectSet |
typedef boost::unordered_map< DocObject::IdType, Core::DocObject * > | ObjectMap |
typedef std::vector< Core::ExecObject * > | ExecObjectVector |
typedef boost::unordered_set< Core::ExecObject * > | ExecObjectSet |
typedef boost::unordered_map< DocObject::IdType, Core::ExecObject * > | ExecObjectMap |
typedef std::map< Base::Type, ObjectSet > | ObjectTypeMap |
typedef std::multimap< Base::String, Core::AttachmentEntry > | Attachments |
typedef std::unordered_map< std::string, Core::Property * > | PropertyMap |
typedef std::unordered_map< std::string, PropertyValue > | PropertyValueMap |
typedef std::shared_ptr< Core::CodeProtectionFlags > | pCodeProtectionFlags |
Enumerations | |
enum | SnapType { NO_SNAP = 0x00, GRID_SNAP = 0x01, ENDPOINT_SNAP = 0x02, INTERSECT_SNAP = 0x04, MIDPOINT_SNAP = 0x08, TANGENT_SNAP = 0x16, PERPENDICULAR_SNAP = 0x32, ALL_SNAP = 0xFF } |
enum | PickType { NO_PICK = 0x00, PICK_STRAIGHT_SEGMENTS = 0x01, PICK_ARC_SEGMENTS = 0x02, PICK_CIRCLES = 0x04, PICK_AUX_LINES = 0x08, PICK_ALL = 0xFF } |
enum | Key { KEY_NONE = 0x00, KEY_ESCAPE = 0x01000000, KEY_ENTER = 0x01000005, KEY_RETURN = 0x01000004, KEY_DELETE = 0x01000007, KEY_0 = 0x30, KEY_1 = 0x31, KEY_2 = 0x32, KEY_3 = 0x33, KEY_4 = 0x34, KEY_5 = 0x35, KEY_6 = 0x36, KEY_7 = 0x37, KEY_8 = 0x38, KEY_9 = 0x39, KEY_PLUS = 0x2b, KEY_MINUS = 0x2d, KEY_A = 0x41, KEY_B = 0x42, KEY_C = 0x43, KEY_D = 0x44, KEY_E = 0x45, KEY_F = 0x46, KEY_G = 0x47, KEY_H = 0x48, KEY_I = 0x49, KEY_J = 0x4a, KEY_K = 0x4b, KEY_L = 0x4c, KEY_M = 0x4d, KEY_N = 0x4e, KEY_O = 0x4f, KEY_P = 0x50, KEY_Q = 0x51, KEY_R = 0x52, KEY_S = 0x53, KEY_T = 0x54, KEY_U = 0x55, KEY_V = 0x56, KEY_W = 0x57, KEY_X = 0x58, KEY_Y = 0x59, KEY_Z = 0x5a } |
enum | MouseButton { NONE_BUTTON = 0x00000000, LEFT_BUTTON = 0x00000001, RIGHT_BUTTON = 0x00000002, MIDDLE_BUTTON = 0x00000004 } |
enum | KeyboardModifiers { NO_MOD = 0x00000000, SHIFT = 0x02000000, CONTROL = 0x04000000, ALT = 0x08000000, META = 0x10000000, KEYPAD = 0x20000000, GROUP_SWITCH = 0x40000000 } |
enum | ExecuteStatus { EXECUTE_OK = 0, EXECUTE_FAILED = 1 } |
enum | LOGLEVEL { D_OFF = 0, D_FATAL = 1, D_ERROR = 2, D_WARN = 3, D_INFO = 4, D_DEBUG = 5, D_ALL = 6 } |
enum | PropertyKind { P_NO_MODIFICATION = 0, P_MODIFY_PLACEMENT = 1 << 0, P_LINK = 1 << 1, P_MODIFY_VISIBLITY = 1 << 3, P_MODIFY_SHAPE = 1 << 4, P_MODIFY_APPEARANCE = 1 << 5, P_BACKLINK = 1 << 6 } |
enum | ViewerType { ViewerType::MAIN_VIEWER = 0, ViewerType::SECOND_VIEWER = 1, ViewerType::THIRD_VIEWER = 2 } |
enum | ViewType { ViewType::MAIN_VIEW = 0, ViewType::TOP_VIEW = 1, ViewType::VERTICAL_VIEW = 2, ViewType::CROSSSECTION_VIEW = 3 } |
enum | SpecialCursor { CURSOR_DOT, CURSOR_DELETE } |
Functions | |
CORE_EXPORT Base::String | getLastImportedFilePath () |
General. More... | |
CORE_EXPORT Base::String | getCurrentScriptFilePath () |
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 () |
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... | |
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 (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 | 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 * > | 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) |
std::vector< PropertyLinkDesc > | getLinkDescByProperties (const Core::DocObject *o) |
void | getBackLinksByProperties (const Core::DocObject *source, std::vector< const Core::DocObject * > &links) |
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 | 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 | 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... | |
virtual void | deleteObject (Core::DocObject *o) |
Physically deletes an object without informing the object maps. 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 () |
CoreDocument () | |
CoreDocument (const CoreDocument &rhs) | |
virtual | ~CoreDocument () |
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::PersistanceVersion &version) override |
virtual void | saveDocument (std::shared_ptr< Base::AbstractWriter > writer, int version2save, 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 () |
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... | |
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 void | 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 | convertFromOlderVersions (int docVersion, int appVersion) |
virtual bool | getPatchedUserTypes (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 |
CORE_EXPORT void | setLogLevel (LOGLEVEL) |
CORE_EXPORT LOGLEVEL | getLogLevel () |
void | LogV (LOGLEVEL level, const QString &s, va_list ap) |
CORE_EXPORT LogClass | Log (Core::LOGLEVEL level) |
CORE_EXPORT LogClass | Log (Core::LOGLEVEL level, const char *msg,...) |
CORE_EXPORT void | MessageAtScreen (QString fontName, int fontsize, Geom::Vec2d position, Geom::Vec color, const char *msg,...) |
CORE_EXPORT void | MessageAtScreen (const char *msg,...) |
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_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, 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, 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, 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) | |
Variables | |
const int | LEXOCAD_CORE_MSGID = 1000 |
DocumentState | _state |
ObjectMap | _all_objects_map |
ObjectVector | _all_objects_vector |
ExecObjectMap | _exec_objects_map |
ObjectMap | _non_exec_objects_map |
ObjectTypeMap | _immutableObjectsMap |
ObjectMap | _solvable_objects_map |
ObjectGraph * | _graph |
ObjectTypeMap | _typeObjects |
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 |
typedef std::multimap<Base::String, Core::AttachmentEntry> Core::Attachments |
typedef std::map<std::string, bool> Core::BehaviorAttributeMap |
typedef boost::unordered_map<DocObject::IdType, Core::ExecObject*> Core::ExecObjectMap |
typedef boost::unordered_set<Core::ExecObject*> Core::ExecObjectSet |
typedef std::vector<Core::ExecObject*> Core::ExecObjectVector |
typedef std::vector<const Core::DocObject*> Core::ObjectConstVector |
typedef boost::unordered_map<DocObject::IdType, Core::DocObject*> Core::ObjectMap |
typedef boost::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 |
enum Core::ExecuteStatus |
enum Core::Key |
enum Core::LOGLEVEL |
enum Core::MouseButton |
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::SnapType |
enum Core::SpecialCursor |
|
strong |
|
strong |
|
protected |
|
protected |
|
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.
|
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::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.
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 |
||
) |
|
protected |
Cleans the temporary directory.
|
protectedvirtual |
Cleans the undo stack. Must be overwritten.
|
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 | ( | PropertyLxFormulaDescriptor_Factory | , |
PropertyLxFormulaDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyDoubleDescriptor_Factory | , |
PropertyDoubleDescriptor | |||
) |
Core::DECLARE_OBJECT_FACTORY_NOIFC | ( | PropertyGroupDescriptor_Factory | , |
PropertyGroupDescriptor | |||
) |
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 | ( | PropertyDrawStyle_Factory | , |
Core::PropertyDrawStyle | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyFile_Factory | , |
Core::PropertyFile | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyFont_Factory | , |
Core::PropertyFont | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyCompoundPlaneAngle_Factory | , |
Core::PropertyCompoundPlaneAngle | |||
) |
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 | ( | PropertyEmbeddedFile_Factory | , |
Core::PropertyEmbeddedFile | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySolverSolverLinkList_Factory | , |
Core::PropertySolverSolverLinkList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySolverElementLinkList_Factory | , |
Core::PropertySolverElementLinkVector | |||
) |
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 | ( | PropertyDateTime_Factory | , |
Core::PropertyDateTime | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRelaxation_Factory | , |
Core::PropertyRelaxation | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertySearchSettingsVector_Factory | , |
Core::PropertySearchSettingsVector | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDateTimeList_Factory | , |
Core::PropertyDateTimeList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDirection_Factory | , |
Core::PropertyDirection | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyRelaxationSet_Factory | , |
Core::PropertyRelaxationSet | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyVector_Factory | , |
Core::PropertyVector | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyDirection2d_Factory | , |
Core::PropertyDirection2d | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyVectorList_Factory | , |
Core::PropertyVectorList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyArrowheads_Factory | , |
Core::PropertyArrowheads | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis1_Factory | , |
Core::PropertyAxis1 | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBrepData_Factory | , |
Core::PropertyBrepData | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyTransform_Factory | , |
Core::PropertyTransform | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyAxis2D_Factory | , |
PropertyAxis2D | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBrepDataSet_Factory | , |
Core::PropertyBrepDataSet | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyGTransform_Factory | , |
PropertyGTransform | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyColor_Factory | , |
Core::PropertyColor | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyColorOpt_Factory | , |
Core::PropertyColorOpt | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyColorList_Factory | , |
Core::PropertyColorList | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyGUID_Factory | , |
Core::PropertyGUID | |||
) |
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 | ( | PropertyBackLinkBase_Factory | , |
Core::PropertyBackLinkBase | |||
) |
Core::DECLARE_PROPERTY_FACTORY | ( | PropertyBackLinkSetBase_Factory | , |
Core::PropertyBackLinkSetBase | |||
) |
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 | ( | 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 | , |
CORE_EXPORT | |||
) |
Core::DECLARE_PROPERTY_TEMPLATES | ( | Core::PropertyEnumDescriptor | , |
CORE_EXPORT | |||
) |
Core::DECLARE_PROPERTY_TEMPLATES | ( | Core::PropertyDescriptor | , |
CORE_EXPORT | |||
) |
|
virtual |
Physically deletes an object without informing the object maps.
std::string Core::dumpGraph | ( | void | ) |
Returns a string representation of the graph.
void Core::forceBackupOnNextSave | ( | ) |
Modifies the _lastBackupFileTime to force backup when the document is saved next time.
void Core::getBackLinksByProperties | ( | const Core::DocObject * | source, |
std::vector< const Core::DocObject * > & | links | ||
) |
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'.
CORE_EXPORT Base::String Core::getCurrentScriptFilePath | ( | ) |
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<const Core::DocObject*> Core::getInner | ( | const Core::DocObject * | me, |
std::function< bool(const Core::DocObject *)> * | allowToAddObject = 0 |
||
) |
Get ALL Links to me, also indirect.
CORE_EXPORT Base::String Core::getLastImportedFilePath | ( | ) |
General.
std::vector<PropertyLinkDesc> Core::getLinkDescByProperties | ( | const Core::DocObject * | o | ) |
std::vector<const Core::DocObject*> Core::getLinksByProperties | ( | const Core::DocObject * | o | ) |
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'.
CORE_EXPORT LOGLEVEL Core::getLogLevel | ( | ) |
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<const Core::DocObject*> Core::getOuter | ( | const Core::DocObject * | me | ) |
Get ALL Links from me, also indirect.
|
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.
const ObjectTypeMap& Core::getTypeMap | ( | ) | const |
|
protected |
Returns the next available unique id.
bool Core::hasErrorObjectsInRecompute | ( | ) |
get result of last recompute
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.
CORE_EXPORT LogClass Core::Log | ( | Core::LOGLEVEL | level | ) |
CORE_EXPORT LogClass Core::Log | ( | Core::LOGLEVEL | level, |
const char * | msg, | ||
... | |||
) |
void Core::LogV | ( | LOGLEVEL | level, |
const QString & | s, | ||
va_list | ap | ||
) |
|
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.
CORE_EXPORT void Core::MessageAtScreen | ( | QString | fontName, |
int | fontsize, | ||
Geom::Vec2d | position, | ||
Geom::Vec | color, | ||
const char * | msg, | ||
... | |||
) |
CORE_EXPORT void Core::MessageAtScreen | ( | const char * | msg, |
... | |||
) |
|
protectedvirtual |
Is called when the file was opened, but before the message FileOpened gets emitted. Can be overwritten to add custom behavior.
Core::CoreDocument Core::PropertyContainer, Base::Subject Core::recompute | ( | std::function< void(DOCOBJECTS newObj, DOCOBJECTS updatedObj, DOCOBJECTS deletedObj, DOCOBJECTS_ERROR_MAP errorObj)> | onRecomputedCB | ) |
|
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 | ) |
|
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 | 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.
|
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 | ) |
CORE_EXPORT void Core::setLogLevel | ( | LOGLEVEL | ) |
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.
|
protectedvirtual |
Stores directory at given path to zip stream.
|
virtual |
|
protected |
Saving runs in Threads, wait for finish.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const int Core::LEXOCAD_CORE_MSGID = 1000 |
|
protected |
LX_CORE_EXPORT Version& Core::version |