Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOM_Engine Class Reference

#include <GEOM_Engine.hxx>

Inheritance diagram for GEOM_Engine:
Inheritance graph

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
 

Constructor & Destructor Documentation

GEOM_Engine::GEOM_Engine ( )

Constructor

References _UndoLimit, and GEOM_BaseObject::GetSubShapeID().

GEOM_Engine::~GEOM_Engine ( )
virtual

Destructor

References _mapIDDocument, _objects, Close(), Handle(), and RemoveObject().

Member Function Documentation

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)
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 
)
std::list< int > GEOM_Engine::getAllTextures ( int  theDocID)
int GEOM_Engine::GetDocID ( Handle(TDocStd_Document)  theDocument)

GetDocID

References _mapIDDocument.

const char * GEOM_Engine::GetDumpName ( const char *  theStudyEntry) const

References _studyEntry2NameMap, and NULL.

GEOM_Engine * GEOM_Engine::GetEngine ( )
static

GetEngine

References TheEngine.

const Standard_GUID & GEOM_Engine::GetTextureGUID ( )
static
Standard_EXPORT GEOM_Engine::Handle ( TDocStd_Document  )
Standard_EXPORT GEOM_Engine::Handle ( TDocStd_Application  )
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  )
GEOM_Engine::Handle ( GEOM_Application  )
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::Save ( int  theDocID,
const char *  theFileName 
)

Save

References _mapIDDocument, and Handle().

void GEOM_Engine::SetEngine ( GEOM_Engine theEngine)
staticprotected

SetEngine

Standard_EXPORT void GEOM_Engine::SetUndoLimit ( int  theLimit)
inline

References _UndoLimit.

void GEOM_Engine::Undo ( int  theDocID)

Undo

Member Data Documentation

TFreeLabelsList GEOM_Engine::_freeLabels
private
TColStd_DataMapOfIntegerTransient GEOM_Engine::_mapIDDocument
private
TColStd_MapOfInteger GEOM_Engine::_mapModifiedDocs
private
GEOM_DataMapOfAsciiStringTransient GEOM_Engine::_objects
private
Resource_DataMapOfAsciiStringAsciiString GEOM_Engine::_studyEntry2NameMap
private
int GEOM_Engine::_UndoLimit
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

The documentation for this class was generated from the following files: