mxcad API 文档 / MdGeDocument
Class: MdGeDocument
所有类的父类, 除去MdGeTopo以及MdGeBrep
Hierarchy
↳
MdGeDocument
Table of contents
Constructors
Properties
Methods
- AbortCommand
- BeforeClose
- ChangeStorageFormat
- ClearRedos
- ClearUndos
- CommitCommand
- EmptyLabelsSavingMode
- GetAvailableRedos
- GetAvailableUndos
- GetName
- GetPath
- GetSavedTime
- GetUndoLimit
- HasOpenCommand
- InitDeltaCompaction
- IsChanged
- IsEmpty
- IsNestedTransactionMode
- IsSaved
- IsValid
- Main
- ModificationMode
- NewCommand
- OpenCommand
- PerformDeltaCompaction
- PurgeModified
- Recompute
- Redo
- RemoveFirstUndo
- SetEmptyLabelsSavingMode
- SetModificationMode
- SetModified
- SetNestedTransactionMode
- SetSaved
- SetSavedTime
- SetUndoLimit
- StorageFormat
- Undo
- UpdateReferences
- getImp
- initTempObject
Constructors
constructor
• new MdGeDocument(p
)
Parameters
Name | Type |
---|---|
p | object |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
AbortCommand
▸ AbortCommand(): void
Returns
void
BeforeClose
▸ BeforeClose(): void
Returns
void
ChangeStorageFormat
▸ ChangeStorageFormat(newStorageFormat
): void
Parameters
Name | Type |
---|---|
newStorageFormat | string |
Returns
void
ClearRedos
▸ ClearRedos(): void
Returns
void
ClearUndos
▸ ClearUndos(): void
Returns
void
CommitCommand
▸ CommitCommand(): boolean
Returns
boolean
EmptyLabelsSavingMode
▸ EmptyLabelsSavingMode(): boolean
Returns
boolean
GetAvailableRedos
▸ GetAvailableRedos(): number
Returns
number
GetAvailableUndos
▸ GetAvailableUndos(): number
Returns
number
GetName
▸ GetName(): string
Returns
string
GetPath
▸ GetPath(): string
Returns
string
GetSavedTime
▸ GetSavedTime(): number
Returns
number
GetUndoLimit
▸ GetUndoLimit(): number
Returns
number
HasOpenCommand
▸ HasOpenCommand(): boolean
Returns
boolean
InitDeltaCompaction
▸ InitDeltaCompaction(): boolean
Returns
boolean
IsChanged
▸ IsChanged(): boolean
Returns
boolean
IsEmpty
▸ IsEmpty(): boolean
Returns
boolean
IsNestedTransactionMode
▸ IsNestedTransactionMode(): boolean
Returns
boolean
IsSaved
▸ IsSaved(): boolean
Returns
boolean
IsValid
▸ IsValid(): boolean
Returns
boolean
Main
▸ Main(): MdGeLabel
Returns
ModificationMode
▸ ModificationMode(): boolean
Returns
boolean
NewCommand
▸ NewCommand(): void
Returns
void
OpenCommand
▸ OpenCommand(): void
Returns
void
PerformDeltaCompaction
▸ PerformDeltaCompaction(): boolean
Returns
boolean
PurgeModified
▸ PurgeModified(): void
Returns
void
Recompute
▸ Recompute(): void
Returns
void
Redo
▸ Redo(): boolean
Returns
boolean
RemoveFirstUndo
▸ RemoveFirstUndo(): void
Returns
void
SetEmptyLabelsSavingMode
▸ SetEmptyLabelsSavingMode(isAllowed
): void
Parameters
Name | Type |
---|---|
isAllowed | boolean |
Returns
void
SetModificationMode
▸ SetModificationMode(theTransactionOnly
): void
Parameters
Name | Type |
---|---|
theTransactionOnly | boolean |
Returns
void
SetModified
▸ SetModified(L
): void
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
void
SetNestedTransactionMode
▸ SetNestedTransactionMode(isAllowed
): void
Parameters
Name | Type |
---|---|
isAllowed | boolean |
Returns
void
SetSaved
▸ SetSaved(): void
Returns
void
SetSavedTime
▸ SetSavedTime(theTime
): void
Parameters
Name | Type |
---|---|
theTime | number |
Returns
void
SetUndoLimit
▸ SetUndoLimit(L
): void
Parameters
Name | Type |
---|---|
L | number |
Returns
void
StorageFormat
▸ StorageFormat(): string
Returns
string
Undo
▸ Undo(): boolean
Returns
boolean
UpdateReferences
▸ UpdateReferences(aDocEntry
): void
Parameters
Name | Type |
---|---|
aDocEntry | string |
Returns
void
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void