Version: 9.12.0
GEOM_Gen_i Class Referenceabstract

#include <GEOM_Gen_i.hh>

Inheritance diagram for GEOM_Gen_i:
Inheritance graph

Public Member Functions

 GEOM_Gen_i ()
 
 GEOM_Gen_i (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName, bool withRegistry=true)
 
virtual ~GEOM_Gen_i ()
 
CORBA::ORB_ptr GetORB ()
 
virtual SALOMEDS::Study_var getStudyServant ()=0
 
SALOMEDS::TMPFile * Save (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 
SALOMEDS::TMPFile * SaveASCII (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 
CORBA::Boolean Load (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theStream, const char *theURL, bool isMultiFile)
 
CORBA::Boolean LoadASCII (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theStream, const char *theURL, bool isMultiFile)
 
void Close (SALOMEDS::SComponent_ptr theComponent)
 
char * ComponentDataType ()
 
char * IORToLocalPersistentID (SALOMEDS::SObject_ptr theSObject, const char *IORString, CORBA::Boolean isMultiFile, CORBA::Boolean isASCII)
 
char * LocalPersistentIDToIOR (SALOMEDS::SObject_ptr theSObject, const char *aLocalPersistentID, CORBA::Boolean isMultiFile, CORBA::Boolean isASCII)
 
bool CanPublishInStudy (CORBA::Object_ptr theIOR)
 
SALOMEDS::SObject_ptr PublishInStudy (SALOMEDS::SObject_ptr theSObject, CORBA::Object_ptr theObject, const char *theName)
 
GEOM::ListOfGOPublishNamedShapesInStudy (CORBA::Object_ptr theObject)
 
CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr theObject)
 
SALOMEDS::TMPFile * CopyFrom (SALOMEDS::SObject_ptr theObject, CORBA::Long &theObjectID)
 
CORBA::Boolean CanPaste (const char *theComponentName, CORBA::Long theObjectID)
 
SALOMEDS::SObject_ptr PasteInto (const SALOMEDS::TMPFile &theStream, CORBA::Long theObjectID, SALOMEDS::SObject_ptr theObject)
 
SALOMEDS::SObject_ptr AddInStudy (GEOM::GEOM_BaseObject_ptr theObject, const char *theName, GEOM::GEOM_BaseObject_ptr theFather)
 Adds theObject in the study with a name = theName, if theFather is not null the object is placed under theFather. More...
 
GEOM::ListOfGORestoreSubShapesO (GEOM::GEOM_Object_ptr theObject, const GEOM::ListOfGO &theArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theInheritFirstArg, CORBA::Boolean theAddPrefix)
 Publish sub-shapes, standing for arguments and sub-shapes of arguments. To be used from python scripts out of geompy.addToStudy (non-default usage) More...
 
GEOM::ListOfGORestoreGivenSubShapesO (GEOM::GEOM_Object_ptr theObject, const GEOM::ListOfGO &theArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theInheritFirstArg, CORBA::Boolean theAddPrefix)
 Publish sub-shapes, standing for given in theArgs arguments and sub-shapes. To be used from python scripts, generated by Dump Python. More...
 
GEOM::ListOfGORestoreSubShapesSO (SALOMEDS::SObject_ptr theSObject, const GEOM::ListOfGO &theArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theInheritFirstArg, CORBA::Boolean theAddPrefix)
 Publish sub-shapes, standing for arguments and sub-shapes of arguments. To be used from GUI and from geompy.addToStudy. More...
 
SALOMEDS::TMPFile * GetDependencyTree (const GEOM::string_array &theObjectEntries)
 
virtual void Undo ()
 
virtual void Redo ()
 
virtual GEOM::GEOM_IBasicOperations_ptr GetIBasicOperations ()
 
virtual GEOM::GEOM_ITransformOperations_ptr GetITransformOperations ()
 
virtual GEOM::GEOM_I3DPrimOperations_ptr GetI3DPrimOperations ()
 
virtual GEOM::GEOM_IShapesOperations_ptr GetIShapesOperations ()
 
virtual GEOM::GEOM_IBlocksOperations_ptr GetIBlocksOperations ()
 
virtual GEOM::GEOM_IBooleanOperations_ptr GetIBooleanOperations ()
 
virtual GEOM::GEOM_ICurvesOperations_ptr GetICurvesOperations ()
 
virtual GEOM::GEOM_ILocalOperations_ptr GetILocalOperations ()
 
virtual GEOM::GEOM_IHealingOperations_ptr GetIHealingOperations ()
 
virtual GEOM::GEOM_IInsertOperations_ptr GetIInsertOperations ()
 
virtual GEOM::GEOM_IMeasureOperations_ptr GetIMeasureOperations ()
 
virtual GEOM::GEOM_IGroupOperations_ptr GetIGroupOperations ()
 
virtual GEOM::GEOM_IFieldOperations_ptr GetIFieldOperations ()
 
virtual GEOM::GEOM_ITestOperations_ptr GetITestOperations ()
 
virtual GEOM::GEOM_ICanonicalRecognition_ptr GetICanonicalRecognition ()
 
virtual GEOM::GEOM_IOperations_ptr GetPluginOperations (const char *theLibName)
 
virtual GEOM::GEOM_Object_ptr AddSubShape (GEOM::GEOM_Object_ptr theMainShape, const GEOM::ListOfLong &theIndices)
 
virtual void RemoveObject (GEOM::GEOM_BaseObject_ptr theObject)
 
virtual char * GetStringFromIOR (GEOM::GEOM_Object_ptr theObject)
 
virtual GEOM::GEOM_Object_ptr GetIORFromString (const char *stringIOR)
 
virtual Engines::TMPFile * DumpPython (CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript)
 
char * GetDumpName (const char *theStudyEntry)
 
GEOM::string_arrayGetAllDumpNames ()
 
virtual bool hasObjectInfo ()
 
virtual char * getObjectInfo (const char *entry)
 
virtual char * getVersion ()
 
SALOMEDS::SObject_ptr CreateFolder (const char *theName, SALOMEDS::SObject_ptr theFather)
 
void MoveToFolder (GEOM::GEOM_Object_ptr theObject, SALOMEDS::SObject_ptr theFolder)
 
void MoveListToFolder (const GEOM::ListOfGO &theListOfGO, SALOMEDS::SObject_ptr theFolder)
 
void Move (const GEOM::object_list &what, SALOMEDS::SObject_ptr where, CORBA::Long row)
 
void GetEntriesToReduceStudy (GEOM::string_array &theSelectedEntries, GEOM::string_array &theParentEntries, GEOM::string_array &theSubEntries, GEOM::string_array &theOtherEntries)
 Fills 3 lists that is used to clean study of redundant objects. To be used from GUI. More...
 
virtual GEOM::GEOM_BaseObject_ptr GetObject (const char *theEntry)
 

Private Member Functions

SALOMEDS::SComponent_var findOrCreateComponent ()
 
GEOM::ListOfGORestoreSubShapes (GEOM::GEOM_Object_ptr theObject, SALOMEDS::SObject_ptr theSObject, const GEOM::ListOfGO &theArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theInheritFirstArg, CORBA::Boolean theAddPrefix)
 
GEOM::ListOfGORestoreSubShapesOneLevel (SALOMEDS::SObject_ptr theOldSO, SALOMEDS::SObject_ptr theNewSO, GEOM::GEOM_Object_ptr theNewO, GEOM::ListOfGO &theOutArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theAddPrefix)
 
GEOM::ListOfGORestoreGivenSubShapes (GEOM::GEOM_Object_ptr theObject, SALOMEDS::SObject_ptr theSObject, const GEOM::ListOfGO &theArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theInheritFirstArg, CORBA::Boolean theAddPrefix)
 
GEOM::ListOfGORestoreGivenSubShapesOneLevel (SALOMEDS::SObject_ptr theOldSO, SALOMEDS::SObject_ptr theNewSO, GEOM::GEOM_Object_ptr theNewO, std::set< std::string > theArgs, GEOM::find_shape_method theFindMethod, CORBA::Boolean theAddPrefix)
 
void CreateAndPublishGroup (GEOM::GEOM_Object_var theMainShape, const TopTools_IndexedMapOfShape &anIndices, const TopTools_SequenceOfShape &SeqS, const TColStd_SequenceOfAsciiString &SeqN, const Standard_CString &GrName, GEOM::ListOfGO_var aResList)
 
void getUpwardDependency (GEOM::GEOM_BaseObject_ptr gbo, GEOMUtils::LevelsList &upLevelList, std::map< std::string, std::set< std::string > > &passedEntries, int level=0)
 
void getDownwardDependency (GEOM::GEOM_BaseObject_ptr gbo, GEOMUtils::LevelsList &downLevelList, std::map< std::string, std::set< std::string > > &passedEntries, int level=0)
 
void includeParentDependencies (GEOM::GEOM_BaseObject_ptr gbo, std::set< std::string > &aSelected, std::set< std::string > &aParents, std::set< std::string > &aChildren, std::set< std::string > &anOthers)
 
void includeSubObjects (const std::string &aSelectedEntry, std::set< std::string > &aSelected, std::set< std::string > &aParents, std::set< std::string > &aChildren, std::set< std::string > &anOthers)
 
void LoadPlugin (const std::string &theLibName)
 
virtual void BreakLink (const char *)
 

Private Attributes

::GEOMImpl_Gen_impl
 
char * _name
 
std::map< std::string, GEOM_GenericOperationsCreator * > myOpCreatorMap
 

Constructor & Destructor Documentation

◆ GEOM_Gen_i() [1/2]

GEOM_Gen_i::GEOM_Gen_i ( )

◆ GEOM_Gen_i() [2/2]

GEOM_Gen_i::GEOM_Gen_i ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName,
bool  withRegistry = true 
)

◆ ~GEOM_Gen_i()

GEOM_Gen_i::~GEOM_Gen_i ( )
virtual

References _impl, and myOpCreatorMap.

Member Function Documentation

◆ AddInStudy()

SALOMEDS::SObject_ptr GEOM_Gen_i::AddInStudy ( GEOM::GEOM_BaseObject_ptr  theObject,
const char *  theName,
GEOM::GEOM_BaseObject_ptr  theFather 
)

◆ AddSubShape()

GEOM::GEOM_Object_ptr GEOM_Gen_i::AddSubShape ( GEOM::GEOM_Object_ptr  theMainShape,
const GEOM::ListOfLong theIndices 
)
virtual

AddSubShape

References _impl, GetObject(), Handle(), and theIndices.

◆ BreakLink()

virtual void GEOM_Gen_i::BreakLink ( const char *  )
inlineprivatevirtual

◆ CanCopy()

CORBA::Boolean GEOM_Gen_i::CanCopy ( SALOMEDS::SObject_ptr  theObject)

◆ CanPaste()

CORBA::Boolean GEOM_Gen_i::CanPaste ( const char *  theComponentName,
CORBA::Long  theObjectID 
)

References ComponentDataType().

◆ CanPublishInStudy()

bool GEOM_Gen_i::CanPublishInStudy ( CORBA::Object_ptr  theIOR)

◆ Close()

void GEOM_Gen_i::Close ( SALOMEDS::SComponent_ptr  theComponent)

References _impl, and GEOM_Engine::Close().

◆ ComponentDataType()

char * GEOM_Gen_i::ComponentDataType ( )

◆ CopyFrom()

SALOMEDS::TMPFile * GEOM_Gen_i::CopyFrom ( SALOMEDS::SObject_ptr  theObject,
CORBA::Long &  theObjectID 
)

◆ CreateAndPublishGroup()

void GEOM_Gen_i::CreateAndPublishGroup ( GEOM::GEOM_Object_var  theMainShape,
const TopTools_IndexedMapOfShape &  anIndices,
const TopTools_SequenceOfShape &  SeqS,
const TColStd_SequenceOfAsciiString &  SeqN,
const Standard_CString &  GrName,
GEOM::ListOfGO_var  aResList 
)
private

◆ CreateFolder()

SALOMEDS::SObject_ptr GEOM_Gen_i::CreateFolder ( const char *  theName,
SALOMEDS::SObject_ptr  theFather 
)

◆ DumpPython()

Engines::TMPFile * GEOM_Gen_i::DumpPython ( CORBA::Boolean  isPublished,
CORBA::Boolean  isMultiFile,
CORBA::Boolean &  isValidScript 
)
virtual

◆ findOrCreateComponent()

SALOMEDS::SComponent_var GEOM_Gen_i::findOrCreateComponent ( )
private

◆ GetAllDumpNames()

GEOM::string_array * GEOM_Gen_i::GetAllDumpNames ( )

References _impl, and Handle().

◆ GetDependencyTree()

SALOMEDS::TMPFile * GEOM_Gen_i::GetDependencyTree ( const GEOM::string_array theObjectEntries)

◆ getDownwardDependency()

void GEOM_Gen_i::getDownwardDependency ( GEOM::GEOM_BaseObject_ptr  gbo,
GEOMUtils::LevelsList downLevelList,
std::map< std::string, std::set< std::string > > &  passedEntries,
int  level = 0 
)
private

◆ GetDumpName()

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

◆ GetEntriesToReduceStudy()

void GEOM_Gen_i::GetEntriesToReduceStudy ( GEOM::string_array theSelectedEntries,
GEOM::string_array theParentEntries,
GEOM::string_array theSubEntries,
GEOM::string_array theOtherEntries 
)

◆ GetI3DPrimOperations()

GEOM::GEOM_I3DPrimOperations_ptr GEOM_Gen_i::GetI3DPrimOperations ( )
virtual

◆ GetIBasicOperations()

GEOM::GEOM_IBasicOperations_ptr GEOM_Gen_i::GetIBasicOperations ( )
virtual

◆ GetIBlocksOperations()

GEOM::GEOM_IBlocksOperations_ptr GEOM_Gen_i::GetIBlocksOperations ( )
virtual

◆ GetIBooleanOperations()

GEOM::GEOM_IBooleanOperations_ptr GEOM_Gen_i::GetIBooleanOperations ( )
virtual

◆ GetICanonicalRecognition()

GEOM::GEOM_ICanonicalRecognition_ptr GEOM_Gen_i::GetICanonicalRecognition ( )
virtual

◆ GetICurvesOperations()

GEOM::GEOM_ICurvesOperations_ptr GEOM_Gen_i::GetICurvesOperations ( )
virtual

◆ GetIFieldOperations()

GEOM::GEOM_IFieldOperations_ptr GEOM_Gen_i::GetIFieldOperations ( )
virtual

◆ GetIGroupOperations()

GEOM::GEOM_IGroupOperations_ptr GEOM_Gen_i::GetIGroupOperations ( )
virtual

◆ GetIHealingOperations()

GEOM::GEOM_IHealingOperations_ptr GEOM_Gen_i::GetIHealingOperations ( )
virtual

◆ GetIInsertOperations()

GEOM::GEOM_IInsertOperations_ptr GEOM_Gen_i::GetIInsertOperations ( )
virtual

◆ GetILocalOperations()

GEOM::GEOM_ILocalOperations_ptr GEOM_Gen_i::GetILocalOperations ( )
virtual

◆ GetIMeasureOperations()

GEOM::GEOM_IMeasureOperations_ptr GEOM_Gen_i::GetIMeasureOperations ( )
virtual

◆ GetIORFromString()

GEOM::GEOM_Object_ptr GEOM_Gen_i::GetIORFromString ( const char *  stringIOR)
virtual

◆ GetIShapesOperations()

GEOM::GEOM_IShapesOperations_ptr GEOM_Gen_i::GetIShapesOperations ( )
virtual

◆ GetITestOperations()

GEOM::GEOM_ITestOperations_ptr GEOM_Gen_i::GetITestOperations ( )
virtual

◆ GetITransformOperations()

GEOM::GEOM_ITransformOperations_ptr GEOM_Gen_i::GetITransformOperations ( )
virtual

◆ GetObject()

GEOM::GEOM_BaseObject_ptr GEOM_Gen_i::GetObject ( const char *  theEntry)
virtual

◆ getObjectInfo()

◆ GetORB()

CORBA::ORB_ptr GEOM_Gen_i::GetORB ( )
inline

◆ GetPluginOperations()

GEOM::GEOM_IOperations_ptr GEOM_Gen_i::GetPluginOperations ( const char *  theLibName)
virtual

References _impl, LoadPlugin(), and myOpCreatorMap.

◆ GetStringFromIOR()

char * GEOM_Gen_i::GetStringFromIOR ( GEOM::GEOM_Object_ptr  theObject)
virtual

◆ getStudyServant()

virtual SALOMEDS::Study_var GEOM_Gen_i::getStudyServant ( )
pure virtual

◆ getUpwardDependency()

void GEOM_Gen_i::getUpwardDependency ( GEOM::GEOM_BaseObject_ptr  gbo,
GEOMUtils::LevelsList upLevelList,
std::map< std::string, std::set< std::string > > &  passedEntries,
int  level = 0 
)
private

◆ getVersion()

char * GEOM_Gen_i::getVersion ( )
virtual

◆ hasObjectInfo()

bool GEOM_Gen_i::hasObjectInfo ( )
virtual

◆ includeParentDependencies()

void GEOM_Gen_i::includeParentDependencies ( GEOM::GEOM_BaseObject_ptr  gbo,
std::set< std::string > &  aSelected,
std::set< std::string > &  aParents,
std::set< std::string > &  aChildren,
std::set< std::string > &  anOthers 
)
private

◆ includeSubObjects()

void GEOM_Gen_i::includeSubObjects ( const std::string &  aSelectedEntry,
std::set< std::string > &  aSelected,
std::set< std::string > &  aParents,
std::set< std::string > &  aChildren,
std::set< std::string > &  anOthers 
)
private

References _impl, and Handle().

◆ IORToLocalPersistentID()

char * GEOM_Gen_i::IORToLocalPersistentID ( SALOMEDS::SObject_ptr  theSObject,
const char *  IORString,
CORBA::Boolean  isMultiFile,
CORBA::Boolean  isASCII 
)

◆ Load()

CORBA::Boolean GEOM_Gen_i::Load ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theStream,
const char *  theURL,
bool  isMultiFile 
)

◆ LoadASCII()

CORBA::Boolean GEOM_Gen_i::LoadASCII ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theStream,
const char *  theURL,
bool  isMultiFile 
)

References Load().

◆ LoadPlugin()

void GEOM_Gen_i::LoadPlugin ( const std::string &  theLibName)
private

◆ LocalPersistentIDToIOR()

char * GEOM_Gen_i::LocalPersistentIDToIOR ( SALOMEDS::SObject_ptr  theSObject,
const char *  aLocalPersistentID,
CORBA::Boolean  isMultiFile,
CORBA::Boolean  isASCII 
)

References _impl, GetObject(), and Handle().

◆ Move()

void GEOM_Gen_i::Move ( const GEOM::object_list what,
SALOMEDS::SObject_ptr  where,
CORBA::Long  row 
)

References getStudyServant().

◆ MoveListToFolder()

void GEOM_Gen_i::MoveListToFolder ( const GEOM::ListOfGO theListOfGO,
SALOMEDS::SObject_ptr  theFolder 
)

References getStudyServant(), and Move().

◆ MoveToFolder()

void GEOM_Gen_i::MoveToFolder ( GEOM::GEOM_Object_ptr  theObject,
SALOMEDS::SObject_ptr  theFolder 
)

References getStudyServant(), and Move().

◆ PasteInto()

SALOMEDS::SObject_ptr GEOM_Gen_i::PasteInto ( const SALOMEDS::TMPFile &  theStream,
CORBA::Long  theObjectID,
SALOMEDS::SObject_ptr  theObject 
)

◆ PublishInStudy()

SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy ( SALOMEDS::SObject_ptr  theSObject,
CORBA::Object_ptr  theObject,
const char *  theName 
)

◆ PublishNamedShapesInStudy()

GEOM::ListOfGO * GEOM_Gen_i::PublishNamedShapesInStudy ( CORBA::Object_ptr  theObject)

◆ Redo()

void GEOM_Gen_i::Redo ( )
virtual

References _impl, and GEOM_Engine::Redo().

◆ RemoveObject()

void GEOM_Gen_i::RemoveObject ( GEOM::GEOM_BaseObject_ptr  theObject)
virtual

RemoveObject

References _impl, Handle(), and GEOM_Engine::RemoveObject().

◆ RestoreGivenSubShapes()

◆ RestoreGivenSubShapesO()

GEOM::ListOfGO * GEOM_Gen_i::RestoreGivenSubShapesO ( GEOM::GEOM_Object_ptr  theObject,
const GEOM::ListOfGO theArgs,
GEOM::find_shape_method  theFindMethod,
CORBA::Boolean  theInheritFirstArg,
CORBA::Boolean  theAddPrefix 
)

◆ RestoreGivenSubShapesOneLevel()

GEOM::ListOfGO * GEOM_Gen_i::RestoreGivenSubShapesOneLevel ( SALOMEDS::SObject_ptr  theOldSO,
SALOMEDS::SObject_ptr  theNewSO,
GEOM::GEOM_Object_ptr  theNewO,
std::set< std::string >  theArgs,
GEOM::find_shape_method  theFindMethod,
CORBA::Boolean  theAddPrefix 
)
private

◆ RestoreSubShapes()

◆ RestoreSubShapesO()

GEOM::ListOfGO * GEOM_Gen_i::RestoreSubShapesO ( GEOM::GEOM_Object_ptr  theObject,
const GEOM::ListOfGO theArgs,
GEOM::find_shape_method  theFindMethod,
CORBA::Boolean  theInheritFirstArg,
CORBA::Boolean  theAddPrefix 
)

◆ RestoreSubShapesOneLevel()

◆ RestoreSubShapesSO()

GEOM::ListOfGO * GEOM_Gen_i::RestoreSubShapesSO ( SALOMEDS::SObject_ptr  theSObject,
const GEOM::ListOfGO theArgs,
GEOM::find_shape_method  theFindMethod,
CORBA::Boolean  theInheritFirstArg,
CORBA::Boolean  theAddPrefix 
)

◆ Save()

SALOMEDS::TMPFile * GEOM_Gen_i::Save ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

◆ SaveASCII()

SALOMEDS::TMPFile * GEOM_Gen_i::SaveASCII ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

References Save().

◆ Undo()

void GEOM_Gen_i::Undo ( )
virtual

References _impl, and GEOM_Engine::Undo().

Member Data Documentation

◆ _impl

::GEOMImpl_Gen* GEOM_Gen_i::_impl
private

◆ _name

char* GEOM_Gen_i::_name
private

◆ myOpCreatorMap

std::map<std::string, GEOM_GenericOperationsCreator*> GEOM_Gen_i::myOpCreatorMap
private

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