23 #ifndef _GEOM_Engine_HXX_
24 #define _GEOM_Engine_HXX_
30 #include <TColStd_DataMapOfIntegerTransient.hxx>
32 #include <Resource_DataMapOfAsciiStringAsciiString.hxx>
33 #include <TDocStd_Document.hxx>
34 #include <TColStd_HArray1OfInteger.hxx>
35 #include <TColStd_HArray1OfByte.hxx>
36 #include <TColStd_HSequenceOfAsciiString.hxx>
37 #include <TColStd_MapOfInteger.hxx>
38 #include <TDF_Label.hxx>
61 TVariable(
const TCollection_AsciiString& theVariable,
bool theFlag =
true):
66 typedef std::vector<TVariable>
TState;
100 Standard_EXPORT
Handle(TDocStd_Document) GetDocument(
bool force=
true);
113 Standard_EXPORT
Handle(GEOM_Object) AddObject(
int theType);
125 Standard_EXPORT
void Close();
131 Standard_EXPORT
void Undo();
134 Standard_EXPORT
void Redo();
137 Standard_EXPORT
Handle(GEOM_Object) AddSubShape(
Handle(GEOM_Object) theMainShape,
141 Standard_EXPORT TCollection_AsciiString
DumpPython(std::vector<TObjectData>& theObjectData,
147 Standard_EXPORT
const char*
GetDumpName (
const char* theStudyEntry)
const;
149 Standard_EXPORT
Handle(TColStd_HSequenceOfAsciiString) GetAllDumpNames()
const;
152 const Handle(TColStd_HArray1OfByte)& theTexture,
155 Standard_EXPORT
Handle(TColStd_HArray1OfByte) getTexture(
int theTextureID,
163 Standard_EXPORT
void healPyName( TCollection_AsciiString& pyName,
164 const TCollection_AsciiString& anEntry,
165 Resource_DataMapOfAsciiStringAsciiString& aNameToEntry);
static const TopTools_IndexedMapOfShape & theIndices
Definition: GEOMImpl_ShapeDriver.cxx:128
NCollection_DataMap< TCollection_AsciiString, Handle(Standard_Transient)> GEOM_DataMapOfAsciiStringTransient
Definition: GEOM_DataMapOfAsciiStringTransient.hxx:30
std::map< TCollection_AsciiString, ObjectStates * > TVariablesList
Definition: GEOM_Engine.hxx:86
std::vector< TVariable > TState
Definition: GEOM_Engine.hxx:66
std::map< int, std::list< TDF_Label > > TFreeLabelsList
Definition: GEOM_Engine.hxx:88
std::vector< TState > TAllStates
Definition: GEOM_Engine.hxx:67
Definition: GEOM_Application.hxx:32
Definition: GEOM_Engine.hxx:91
Standard_EXPORT int addTexture(int theWidth, int theHeight, const Handle(TColStd_HArray1OfByte)&theTexture, const TCollection_AsciiString &theFileName="")
Standard_EXPORT Handle(GEOM_BaseObject) AddBaseObject(int theType)
Standard_EXPORT int int & theHeight
Definition: GEOM_Engine.hxx:156
Standard_EXPORT bool isStandaloneOperation
Definition: GEOM_Engine.hxx:139
Standard_EXPORT Handle(TDocStd_Document) GetDocument(bool force
Standard_EXPORT Handle(GEOM_BaseObject) GetObject(const char *theEntry
Standard_EXPORT TCollection_AsciiString DumpPython(std::vector< TObjectData > &theObjectData, TVariablesList theVariables, bool isPublished, bool isMultiFile, bool &aValidScript)
Definition: GEOM_Engine.cxx:699
std::list< TDF_Label > _freeLabels
Definition: GEOM_Engine.hxx:180
Handle(TDocStd_Document) _document
Standard_EXPORT Handle(TDocStd_Application) GetApplication()
Definition: GEOM_Engine.hxx:103
Standard_EXPORT const char * GetDumpName(const char *theStudyEntry) const
Definition: GEOM_Engine.cxx:951
Standard_EXPORT Handle(TColStd_HSequenceOfAsciiString) GetAllDumpNames() const
Standard_EXPORT int int TCollection_AsciiString & theFileName
Definition: GEOM_Engine.hxx:157
Standard_EXPORT Handle(TColStd_HArray1OfInteger) theIndices
Standard_EXPORT bool RemoveObject(Handle(GEOM_BaseObject)&theObject)
Definition: GEOM_Engine.cxx:545
Standard_EXPORT std::list< int > getAllTextures()
Definition: GEOM_Engine.cxx:1066
static Standard_EXPORT void SetEngine(GEOM_Engine *theEngine)
Definition: GEOM_Engine.cxx:327
Standard_EXPORT GEOM_Engine()
Definition: GEOM_Engine.cxx:334
Standard_EXPORT void SetUndoLimit(int theLimit)
Definition: GEOM_Engine.hxx:128
Resource_DataMapOfAsciiStringAsciiString _studyEntry2NameMap
Definition: GEOM_Engine.hxx:178
Handle(GEOM_Application) _OCAFApp
static Standard_EXPORT GEOM_Engine * GetEngine()
Definition: GEOM_Engine.cxx:320
GEOM_DataMapOfAsciiStringTransient _objects
Definition: GEOM_Engine.hxx:176
Standard_EXPORT int & theWidth
Definition: GEOM_Engine.hxx:156
Standard_EXPORT Handle(GEOM_Object) AddSubShape(Handle(GEOM_Object) theMainShape
Standard_EXPORT void Undo()
Definition: GEOM_Engine.cxx:606
Standard_EXPORT bool Save(const char *theFileName)
Definition: GEOM_Engine.cxx:626
virtual Standard_EXPORT ~GEOM_Engine()
Definition: GEOM_Engine.cxx:348
Standard_EXPORT void healPyName(TCollection_AsciiString &pyName, const TCollection_AsciiString &anEntry, Resource_DataMapOfAsciiStringAsciiString &aNameToEntry)
Fix up the name of python variable.
Definition: GEOM_Engine.cxx:279
Standard_EXPORT void Redo()
Definition: GEOM_Engine.cxx:616
Standard_EXPORT void Close()
Definition: GEOM_Engine.cxx:673
int _UndoLimit
Definition: GEOM_Engine.hxx:175
Standard_EXPORT bool Load(const char *theFileName)
Definition: GEOM_Engine.cxx:644
Standard_EXPORT Handle(TColStd_HArray1OfByte) getTexture(int theTextureID
Standard_EXPORT bool force
Definition: GEOM_Engine.hxx:107
static const Standard_GUID & GetTextureGUID()
Definition: GEOM_Engine.cxx:309
Standard_EXPORT Handle(GEOM_Object) AddObject(int theType)
Definition: GEOM_Engine.hxx:70
int _dumpstate
Definition: GEOM_Engine.hxx:83
TAllStates GetAllStates() const
Definition: GEOM_Engine.hxx:75
TState GetCurrectState() const
Return current object state.
Definition: GEOM_Engine.cxx:2034
TAllStates _states
Definition: GEOM_Engine.hxx:82
~ObjectStates()
Destructor.
Definition: GEOM_Engine.cxx:2024
Standard_EXPORT ObjectStates()
Constructor.
Definition: GEOM_Engine.cxx:2014
Standard_EXPORT void AddState(const TState &theState)
Add new object state.
Definition: GEOM_Engine.cxx:2047
void IncrementState()
Increment object state.
Definition: GEOM_Engine.cxx:2057
Data of GEOM_Object.
Definition: GEOM_Engine.hxx:49
TCollection_AsciiString _studyEntry
Definition: GEOM_Engine.hxx:51
bool _unpublished
Definition: GEOM_Engine.hxx:54
TCollection_AsciiString _pyName
Definition: GEOM_Engine.hxx:53
TCollection_AsciiString _name
Definition: GEOM_Engine.hxx:52
TCollection_AsciiString _entry
Definition: GEOM_Engine.hxx:50
Definition: GEOM_Engine.hxx:57
TCollection_AsciiString myVariable
Definition: GEOM_Engine.hxx:58
bool isVariable
Definition: GEOM_Engine.hxx:59
TVariable(const TCollection_AsciiString &theVariable, bool theFlag=true)
Definition: GEOM_Engine.hxx:61