Version: 9.12.0
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(bool force
 
Standard_EXPORT Handle (TDocStd_Application) GetApplication()
 
Standard_EXPORT Handle (GEOM_BaseObject) GetObject(const char *theEntry
 
Standard_EXPORT Handle (GEOM_BaseObject) AddBaseObject(int theType)
 
Standard_EXPORT Handle (GEOM_Object) AddObject(int theType)
 
Standard_EXPORT bool RemoveObject (Handle(GEOM_BaseObject)&theObject)
 
Standard_EXPORT bool Save (const char *theFileName)
 
Standard_EXPORT bool Load (const char *theFileName)
 
Standard_EXPORT void Close ()
 
Standard_EXPORT void SetUndoLimit (int theLimit)
 
Standard_EXPORT void Undo ()
 
Standard_EXPORT void Redo ()
 
Standard_EXPORT Handle (GEOM_Object) AddSubShape(Handle(GEOM_Object) theMainShape
 
Standard_EXPORT Handle (TColStd_HArray1OfInteger) theIndices
 
Standard_EXPORT TCollection_AsciiString DumpPython (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 theWidth, int theHeight, const Handle(TColStd_HArray1OfByte)&theTexture, const TCollection_AsciiString &theFileName="")
 
Standard_EXPORT Handle (TColStd_HArray1OfByte) getTexture(int theTextureID
 
Standard_EXPORT std::list< int > getAllTextures ()
 
Standard_EXPORT void healPyName (TCollection_AsciiString &pyName, const TCollection_AsciiString &anEntry, Resource_DataMapOfAsciiStringAsciiString &aNameToEntry)
 Fix up the name of python variable. More...
 

Static Public Member Functions

static Standard_EXPORT GEOM_EngineGetEngine ()
 
static const Standard_GUID & GetTextureGUID ()
 

Public Attributes

Standard_EXPORT bool force =true)
 
Standard_EXPORT bool isStandaloneOperation = false)
 
Standard_EXPORT int & theWidth
 
Standard_EXPORT int int & theHeight
 
Standard_EXPORT int int TCollection_AsciiString & theFileName
 

Static Protected Member Functions

static Standard_EXPORT void SetEngine (GEOM_Engine *theEngine)
 

Private Member Functions

 Handle (GEOM_Application) _OCAFApp
 
 Handle (TDocStd_Document) _document
 

Private Attributes

int _UndoLimit
 
GEOM_DataMapOfAsciiStringTransient _objects
 
Resource_DataMapOfAsciiStringAsciiString _studyEntry2NameMap
 
std::list< TDF_Label > _freeLabels
 

Constructor & Destructor Documentation

◆ GEOM_Engine()

GEOM_Engine::GEOM_Engine ( )

Constructor

References _UndoLimit.

◆ ~GEOM_Engine()

GEOM_Engine::~GEOM_Engine ( )
virtual

Destructor

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

Member Function Documentation

◆ addTexture()

Standard_EXPORT int GEOM_Engine::addTexture ( int  theWidth,
int  theHeight,
const Handle(TColStd_HArray1OfByte)&  theTexture,
const TCollection_AsciiString &  theFileName = "" 
)

◆ Close()

void GEOM_Engine::Close ( )

Close

References _freeLabels, and _objects.

◆ DumpPython()

TCollection_AsciiString GEOM_Engine::DumpPython ( std::vector< TObjectData > &  theObjectData,
TVariablesList  theVariables,
bool  isPublished,
bool  isMultiFile,
bool &  aValidScript 
)

◆ getAllTextures()

std::list< int > GEOM_Engine::getAllTextures ( )

◆ GetDumpName()

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

References _studyEntry2NameMap.

◆ GetEngine()

GEOM_Engine * GEOM_Engine::GetEngine ( )
static

GetEngine

References TheEngine.

◆ GetTextureGUID()

const Standard_GUID & GEOM_Engine::GetTextureGUID ( )
static

◆ Handle() [1/11]

GEOM_Engine::Handle ( GEOM_Application  )
private

◆ Handle() [2/11]

Standard_EXPORT GEOM_Engine::Handle ( GEOM_BaseObject  )

◆ Handle() [3/11]

Standard_EXPORT GEOM_Engine::Handle ( GEOM_BaseObject  ) const

◆ Handle() [4/11]

Standard_EXPORT GEOM_Engine::Handle ( GEOM_Object  )

◆ Handle() [5/11]

Standard_EXPORT GEOM_Engine::Handle ( GEOM_Object  )

◆ Handle() [6/11]

Standard_EXPORT GEOM_Engine::Handle ( TColStd_HArray1OfByte  )

◆ Handle() [7/11]

Standard_EXPORT GEOM_Engine::Handle ( TColStd_HArray1OfInteger  )

◆ Handle() [8/11]

Standard_EXPORT GEOM_Engine::Handle ( TColStd_HSequenceOfAsciiString  ) const

◆ Handle() [9/11]

Standard_EXPORT GEOM_Engine::Handle ( TDocStd_Application  )
inline

◆ Handle() [10/11]

GEOM_Engine::Handle ( TDocStd_Document  )
private

◆ Handle() [11/11]

Standard_EXPORT GEOM_Engine::Handle ( TDocStd_Document  )

◆ healPyName()

void GEOM_Engine::healPyName ( TCollection_AsciiString &  pyName,
const TCollection_AsciiString &  anEntry,
Resource_DataMapOfAsciiStringAsciiString &  aNameToEntry 
)

◆ Load()

bool GEOM_Engine::Load ( const char *  theFileName)

Load

References _UndoLimit, Handle(), and theFileName.

◆ Redo()

void GEOM_Engine::Redo ( )

Redo

◆ RemoveObject()

bool GEOM_Engine::RemoveObject ( Handle(GEOM_BaseObject)&  theObject)

RemoveObject

References _freeLabels, _objects, BuildIDFromObject(), and Handle().

◆ Save()

bool GEOM_Engine::Save ( const char *  theFileName)

Save

References theFileName.

◆ SetEngine()

void GEOM_Engine::SetEngine ( GEOM_Engine theEngine)
staticprotected

SetEngine

References TheEngine.

◆ SetUndoLimit()

Standard_EXPORT void GEOM_Engine::SetUndoLimit ( int  theLimit)
inline

References _UndoLimit.

◆ Undo()

void GEOM_Engine::Undo ( )

Undo

Member Data Documentation

◆ _freeLabels

std::list<TDF_Label> GEOM_Engine::_freeLabels
private

◆ _objects

GEOM_DataMapOfAsciiStringTransient GEOM_Engine::_objects
private

◆ _studyEntry2NameMap

Resource_DataMapOfAsciiStringAsciiString GEOM_Engine::_studyEntry2NameMap
private

◆ _UndoLimit

int GEOM_Engine::_UndoLimit
private

◆ force

Standard_EXPORT bool GEOM_Engine::force =true)

◆ isStandaloneOperation

Standard_EXPORT bool GEOM_Engine::isStandaloneOperation = false)

◆ theFileName

Standard_EXPORT int int TCollection_AsciiString& GEOM_Engine::theFileName

◆ theHeight

Standard_EXPORT int int& GEOM_Engine::theHeight

◆ theWidth

Standard_EXPORT int& GEOM_Engine::theWidth

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