#include <OdTraceRuntime.h>
This class is designed to work with tracing. Corresponding C++ library: AcTrace
<group Other_Classes>
Definition at line 136 of file OdTraceRuntime.h.
◆ ~OdTraceRuntime()
| virtual OdTraceRuntime::~OdTraceRuntime |
( |
| ) |
|
|
virtual |
◆ OdTraceRuntime() [1/2]
| OdTraceRuntime::OdTraceRuntime |
( |
OdDbDatabase * | , |
|
|
const bool | ) |
|
protected |
◆ OdTraceRuntime() [2/2]
| OdTraceRuntime::OdTraceRuntime |
( |
| ) |
|
|
protecteddelete |
◆ appendDwgAsTrace() [1/2]
Adds the specified .dwg file to the current database as a trace.
- Parameters
-
| sPath2DwgFileAsTrace | [in] A string containing the path to the dwg file. |
| traceName | [in/out] String with the name which will given to the trace. If the name is not unique, traceName will be changed. |
- Returns
- * eOk if dwg file added as trace successful. eNoFileName if the argument sPath2DwgFileAsTrace is empty. eFileAccessErr if the file sPath2DwgFileAsTrace is not available. eInvalidContext if OdDbTraceStore in the current database is not available. eCantOpenFile if can't create temporary zip file in temporary folder. eAlreadyActive if some trace is open.
◆ appendDwgAsTrace() [2/2]
Adds the specified .dwg file to the current database as a trace.
- Parameters
-
| sPath2DwgFileAsTrace | [in] A dwg database. |
| traceName | [in/out] String with the name which will given to the trace. If the name is not unique, traceName will be changed. |
- Returns
- * eOk if dwg file added as trace successful. eNoFileName if the argument sPath2DwgFileAsTrace is empty. eFileAccessErr if the file sPath2DwgFileAsTrace is not available. eInvalidContext if OdDbTraceStore in the current database is not available. eCantOpenFile if can't create temporary zip file in temporary folder. eAlreadyActive if some trace is open.
◆ closeTrace()
Closes currently open trace. All changes in trace will be saved.
- Returns
- * eOk if trace closed successful. eAlreadyInactive if no open trace. eNotInDatabase if this OdTraceRuntime does not have a reference to dwg database. eCantOpenFile if can't create temporary zip file in temporary folder.
◆ getCurrentUserInfo()
Gets information about current user.
- Returns
- OdTraceUserProfile object with current user information.
◆ getInstance()
Gets a pointer to the OdTraceRuntime instance associated with the specified database.
- Parameters
-
| pDb | [in] Pointer to dwg database. |
| bCreateIfNotFound | [in][optional] Create an instance of OdTraceRuntime for the specified database if not it no exist. |
- Returns
- Pointer to the OdTraceRuntime if it exists, otherwise nullptr.
◆ getOpenTraceCollaborators()
Gets trace collaborators of currently open trace.
- Parameters
-
- Returns
- * eOk if new user information was set correctly. eAlreadyInactive if no open trace.
◆ getOpenTraceExtents()
Gets extents of open trace.
- Returns
- * eOk if extents are retrieved successfully. eAlreadyInactive if no open trace.
◆ getTraceCollaborators()
Gets trace collaborators of the specified trace.
- Parameters
-
| trace | [in] Information about trace. |
| traceCollaborators | [out] Array of OdTraceUserProfile objects. |
- Returns
- * eOk if new user information was set correctly. eInvalidInput if traceId from input argument 'trace' is empty. eInvalidContext if OdDbTraceStore in the current database is not available. eKeyNotFound if no trace was found with the specified data from the input argument 'trace'
◆ getTraceRuntimeId()
Only internal use.
- Returns
- OdDbObjectId to an OdDbTraceRuntimeObject.
◆ getTracesUserInfo()
Gets information of traces. Get an array of OdTraceUserInfo objects. Each array object contains information about one trace.
- Parameters
-
| userInfoArr | [in] Information about traces. |
- Returns
- * eOk if new user information was set correctly. eInvalidContext if OdDbTraceStore in the current database is not available.
◆ isObjectFromTrace()
| bool OdTraceRuntime::isObjectFromTrace |
( |
const OdDbObject * | pSubject | ) |
const |
This method allows to known if the object belongs to the drawing or some trace.
- Parameters
-
| pSubject | [in] Pointer to object. |
- Returns
- Return true if pSubject loaded from the trace.
◆ newTrace()
Creates a new trace and open it to edit.
- Returns
- * eOk if a trace opened successfully. eAlreadyActive if some trace is already open. eMustBeNonZero if user data is empty. eNoInternalSpace if cannot add a trace paper.
◆ openTrace()
Opens the specified trace.
- Parameters
-
| traceInfo | [in] Trace information to open. |
- Returns
- * eOk if a trace open successful. eAlreadyActive if some trace already open. eNoFileName if the trace file is not found. eInvalidContext if OdDbTraceStore in the current database is not available. eNoInternalSpace if cannot add a trace paper. eProfileDoesNotExist if user info is not set. eNoLayout if no layout is found for this trace.
◆ removeSubTrace()
Deletes the specified sub trace.
- Parameters
-
| traceInfo | [in] Trace information in which subtrace needs to be removed. |
| subTrace | [in] SubTrace to remove. |
- Returns
- * eOk if a subtrace is deleted successfully. eNoFileName if the trace file is not found. eInvalidContext if OdDbTraceStore in the current database is not available. eUnableToRemoveAssociation if subTrace.m_traceFile == traceInfo.m_traceFile
◆ removeTrace()
Deletes the specified trace.
- Parameters
-
| traceInfo | [in] Trace information to remove. |
- Returns
- * eOk if a trace is deleted successfully. eNoFileName if the trace file is not found. eInvalidContext if OdDbTraceStore in the current database is not available.
◆ renameTrace()
Renames the specified trace.
- Parameters
-
| traceInfo | [in] Trace information to rename. |
| newTraceName | [in] New trace name. |
- Returns
- * eOk if a trace renaming is successful. eNoFileName if the trace file is not found. eInvalidContext if OdDbTraceStore in the current database is not available.
◆ setCurrentUserInfo()
Sets current user for working with traces.
- Parameters
-
| currentUserInfo | [in] Information about user. |
- Returns
- * eOk if new user information was set correctly. eAlreadyActive if some trace is open.
◆ showOpenTraceCollaborators()
Display/hide trace collaborator changes.
- Parameters
-
- Returns
- * eOk if display collaborators are updated successfully. eAlreadyInactive if no open trace. eInvalidContext if count of elements in traceCollaborators array is not equal to trace colloborators in the open trace. eInvalidInput if at least one collaborator from the array traceCollaborators does not match any collaborator in the open trace.
◆ traceBack()
| OdResult OdTraceRuntime::traceBack |
( |
| ) |
const |
Saturation is given to main drawing, and fading to the tracing. Trace view enabled. Editing the main drawing enabled.
- Returns
- * eOk if traceBack executed successful. eAlreadyInactive if no open trace. eNotInDatabase if this OdTraceRuntime does not have a reference to dwg database. eLongTransReferenceError if can't end editing a trace.
◆ traceFront()
| OdResult OdTraceRuntime::traceFront |
( |
| ) |
const |
Saturation is given to tracing, and fading to the main drawing. Trace editing enabled. Editing the main drawing disabled.
- Returns
- * eOk if traceFront is executed successfully. eAlreadyInactive if no open trace. eNotInDatabase if this OdTraceRuntime does not have a reference to dwg database. eLongTransReferenceError if can't start editing a trace.
◆ m_traceRuntimeId
The documentation for this class was generated from the following file: