3 #ifndef _APIDocument_H_
4 #define _APIDocument_H_
10 namespace AnyCAD{
namespace API
13 class ElementIterator;
15 class UndoTransaction;
16 class DocumentMetadata;
34 void SetName (
const String& name) ;
54 void SetModified (
bool bModified) ;
59 bool IsModified ()
const;
76 void SetMasterTypeId (
const ElementId& elemId) ;
86 void SetMasterInstanceId (
const ElementId& elemId) ;
96 String GetDocumentType ()
const;
115 bool CanUndo ()
const;
124 bool CanRedo ()
const;
129 bool IsUndoEnabled ()
const;
134 void EnableUndo (
bool bEnable) ;
139 bool IsUndoIgnored ()
const;
144 void IgnoreUndo (
bool bIgnored) ;
149 void ClearUndoList (
int keepCount) ;
166 bool RemoveElement (
const ElementId&
id) ;
187 void AddElementToMaster (
const ElementId&
id) ;
201 void UpdateViews () ;
210 #endif //_APIDocument_H_
Undo/redo transaction.
Definition: APIUndoTransaction.h:18
std::string String
Definition: APIString.h:10
String ParameterId
Definition: APIString.h:11
To iterate the scene node in the scene. Usage: ElementIterator itr = ...; while(itr.More()) { SceneNode node = itr.Next(); .... }.
Definition: APIElementIterator.h:18
The base class for parameter values.
Definition: APIParameterValue.h:19
std::vector< String > StringList
Definition: APIString.h:12
The id.
Definition: APIElementId.h:16
平台基类
Definition: APIObject.h:17
文档类。
Definition: APIDocument.h:25
The base class for the data that need to be stored in document.
Definition: APIElement.h:22
The element table.
Definition: APIElementTable.h:21
std::vector< ElementId > ElementIdList
Definition: APIElementId.h:54
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33