#include <GEOM_Engine.hxx>
Public Member Functions | |
Standard_EXPORT | GEOM_Engine () |
virtual Standard_EXPORT | ~GEOM_Engine () |
Standard_EXPORT | Handle (TDocStd_Document) GetDocument(int theDocID |
Standard_EXPORT int | GetDocID (Handle(TDocStd_Document) theDocument) |
Standard_EXPORT | Handle (TDocStd_Application) GetApplication() |
Standard_EXPORT | Handle (GEOM_BaseObject) GetObject(int theDocID |
Standard_EXPORT | Handle (GEOM_BaseObject) AddBaseObject(int theDocID |
Standard_EXPORT | Handle (GEOM_Object) AddObject(int theDocID |
Standard_EXPORT bool | RemoveObject (Handle(GEOM_BaseObject)&theObject) |
Standard_EXPORT bool | Save (int theDocID, const char *theFileName) |
Standard_EXPORT bool | Load (int theDocID, const char *theFileName) |
Standard_EXPORT void | Close (int theDocID) |
Standard_EXPORT void | SetUndoLimit (int theLimit) |
Standard_EXPORT void | Undo (int theDocID) |
Standard_EXPORT void | Redo (int theDocID) |
Standard_EXPORT | Handle (GEOM_Object) AddSubShape(Handle(GEOM_Object) theMainShape |
Standard_EXPORT | Handle (TColStd_HArray1OfInteger) theIndices |
Standard_EXPORT TCollection_AsciiString | DumpPython (int theDocID, std::vector< TObjectData > &theObjectData, TVariablesList theVariables, bool isPublished, bool isMultiFile, bool &aValidScript) |
Standard_EXPORT const char * | GetDumpName (const char *theStudyEntry) const |
Standard_EXPORT | Handle (TColStd_HSequenceOfAsciiString) GetAllDumpNames() const |
Standard_EXPORT int | addTexture (int theDocID, int theWidth, int theHeight, const Handle(TColStd_HArray1OfByte)&theTexture, const TCollection_AsciiString &theFileName="") |
Standard_EXPORT | Handle (TColStd_HArray1OfByte) getTexture(int theDocID |
Standard_EXPORT std::list< int > | getAllTextures (int theDocID) |
Standard_EXPORT void | healPyName (TCollection_AsciiString &pyName, const TCollection_AsciiString &anEntry, Resource_DataMapOfAsciiStringAsciiString &aNameToEntry) |
Fix up the name of python variable. More... | |
Standard_EXPORT void | DocumentModified (const int theDocId, const bool isModified) |
Standard_EXPORT bool | DocumentModified (const int theDocId) |
Static Public Member Functions | |
static Standard_EXPORT GEOM_Engine * | GetEngine () |
static const Standard_GUID & | GetTextureGUID () |
Public Attributes | |
Standard_EXPORT bool | force =true) |
Standard_EXPORT const char * | theEntry |
Standard_EXPORT const char bool | force =true) |
Standard_EXPORT int | theType |
Standard_EXPORT bool | isStandaloneOperation = false) |
Standard_EXPORT int | theTextureID |
Standard_EXPORT int int & | theWidth |
Standard_EXPORT int int int & | theHeight |
Standard_EXPORT int int int TCollection_AsciiString & | theFileName |
Static Protected Member Functions | |
static Standard_EXPORT void | SetEngine (GEOM_Engine *theEngine) |
Private Member Functions | |
Handle (GEOM_Application) _OCAFApp | |
Private Attributes | |
TColStd_DataMapOfIntegerTransient | _mapIDDocument |
TColStd_MapOfInteger | _mapModifiedDocs |
int | _UndoLimit |
GEOM_DataMapOfAsciiStringTransient | _objects |
Resource_DataMapOfAsciiStringAsciiString | _studyEntry2NameMap |
TFreeLabelsList | _freeLabels |
GEOM_Engine::GEOM_Engine | ( | ) |
Constructor
References _UndoLimit, and GEOM_BaseObject::GetSubShapeID().
|
virtual |
Destructor
References _mapIDDocument, _objects, Close(), Handle(), and RemoveObject().
int GEOM_Engine::addTexture | ( | int | theDocID, |
int | theWidth, | ||
int | theHeight, | ||
const Handle(TColStd_HArray1OfByte)& | theTexture, | ||
const TCollection_AsciiString & | theFileName = "" |
||
) |
void GEOM_Engine::Close | ( | int | theDocID | ) |
Close
References _freeLabels, _mapIDDocument, _objects, ExtractDocID(), and Handle().
void GEOM_Engine::DocumentModified | ( | const int | theDocId, |
const bool | isModified | ||
) |
References _mapModifiedDocs.
bool GEOM_Engine::DocumentModified | ( | const int | theDocId | ) |
References _mapModifiedDocs.
TCollection_AsciiString GEOM_Engine::DumpPython | ( | int | theDocID, |
std::vector< TObjectData > & | theObjectData, | ||
TVariablesList | theVariables, | ||
bool | isPublished, | ||
bool | isMultiFile, | ||
bool & | aValidScript | ||
) |
DumpPython
References TObjectData::_entry, TObjectData::_pyName, TObjectData::_studyEntry, _studyEntry2NameMap, TObjectData::_unpublished, AddObjectColors(), AddTextures(), FillMapOfRef(), GEOM_Function::GetFunctionTreeID(), GetPublishCommands(), GEOM_BaseObject::GetSubShapeID(), Handle(), ProcessFunction(), PublishObject(), and ReplaceEntriesByNames().
std::list< int > GEOM_Engine::getAllTextures | ( | int | theDocID | ) |
References GetTextureGUID(), Handle(), and TEXTURE_LABEL_ID.
int GEOM_Engine::GetDocID | ( | Handle(TDocStd_Document) | theDocument | ) |
GetDocID
References _mapIDDocument.
const char * GEOM_Engine::GetDumpName | ( | const char * | theStudyEntry | ) | const |
References _studyEntry2NameMap, and NULL.
|
static |
GetEngine
References TheEngine.
|
static |
Standard_EXPORT GEOM_Engine::Handle | ( | TDocStd_Document | ) |
|
inline |
Standard_EXPORT GEOM_Engine::Handle | ( | GEOM_BaseObject | ) |
Standard_EXPORT GEOM_Engine::Handle | ( | GEOM_BaseObject | ) |
Standard_EXPORT GEOM_Engine::Handle | ( | GEOM_Object | ) |
Standard_EXPORT GEOM_Engine::Handle | ( | GEOM_Object | ) |
Standard_EXPORT GEOM_Engine::Handle | ( | TColStd_HArray1OfInteger | ) |
Standard_EXPORT GEOM_Engine::Handle | ( | TColStd_HSequenceOfAsciiString | ) | const |
Standard_EXPORT GEOM_Engine::Handle | ( | TColStd_HArray1OfByte | ) |
|
private |
void GEOM_Engine::healPyName | ( | TCollection_AsciiString & | pyName, |
const TCollection_AsciiString & | anEntry, | ||
Resource_DataMapOfAsciiStringAsciiString & | aNameToEntry | ||
) |
bool GEOM_Engine::Load | ( | int | theDocID, |
const char * | theFileName | ||
) |
Load
References _mapIDDocument, _UndoLimit, and Handle().
void GEOM_Engine::Redo | ( | int | theDocID | ) |
Redo
bool GEOM_Engine::RemoveObject | ( | Handle(GEOM_BaseObject)& | theObject | ) |
RemoveObject
References GEOM_BaseObject::_docID, _freeLabels, GEOM_BaseObject::_ior, GEOM_BaseObject::_label, _mapIDDocument, _objects, GEOM_BaseObject::_parameters, BuildIDFromObject(), GEOM_BaseObject::GetDocID(), GEOM_BaseObject::GetEntry(), GEOM_Function::GetFunctionTreeID(), GEOM_BaseObject::GetNbFunctions(), and Handle().
bool GEOM_Engine::Save | ( | int | theDocID, |
const char * | theFileName | ||
) |
Save
References _mapIDDocument, and Handle().
|
staticprotected |
SetEngine
|
inline |
References _UndoLimit.
void GEOM_Engine::Undo | ( | int | theDocID | ) |
Undo
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Standard_EXPORT bool GEOM_Engine::force =true) |
Standard_EXPORT const char bool GEOM_Engine::force =true) |
Standard_EXPORT bool GEOM_Engine::isStandaloneOperation = false) |
Standard_EXPORT const char* GEOM_Engine::theEntry |
Standard_EXPORT int int int TCollection_AsciiString& GEOM_Engine::theFileName |
Standard_EXPORT int int int& GEOM_Engine::theHeight |
Standard_EXPORT int GEOM_Engine::theTextureID |
Standard_EXPORT int GEOM_Engine::theType |
Standard_EXPORT int int& GEOM_Engine::theWidth |