#include <GEOM_Gen_i.hh>
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::ListOfGO * | PublishNamedShapesInStudy (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::ListOfGO * | RestoreSubShapesO (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::ListOfGO * | RestoreGivenSubShapesO (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::ListOfGO * | RestoreSubShapesSO (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_array * | GetAllDumpNames () |
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::ListOfGO * | RestoreSubShapes (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::ListOfGO * | RestoreSubShapesOneLevel (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::ListOfGO * | RestoreGivenSubShapes (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::ListOfGO * | 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) |
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 |
GEOM_Gen_i::GEOM_Gen_i | ( | ) |
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 |
||
) |
References _impl, LoadPlugin(), and GEOMUtils::ReadPluginInfo().
|
virtual |
References _impl, and myOpCreatorMap.
SALOMEDS::SObject_ptr GEOM_Gen_i::AddInStudy | ( | GEOM::GEOM_BaseObject_ptr | theObject, |
const char * | theName, | ||
GEOM::GEOM_BaseObject_ptr | theFather | ||
) |
References getStudyServant(), and PublishInStudy().
|
virtual |
AddSubShape
References _impl, GetObject(), Handle(), and theIndices.
|
inlineprivatevirtual |
CORBA::Boolean GEOM_Gen_i::CanCopy | ( | SALOMEDS::SObject_ptr | theObject | ) |
CORBA::Boolean GEOM_Gen_i::CanPaste | ( | const char * | theComponentName, |
CORBA::Long | theObjectID | ||
) |
References ComponentDataType().
bool GEOM_Gen_i::CanPublishInStudy | ( | CORBA::Object_ptr | theIOR | ) |
void GEOM_Gen_i::Close | ( | SALOMEDS::SComponent_ptr | theComponent | ) |
References _impl, and GEOM_Engine::Close().
char * GEOM_Gen_i::ComponentDataType | ( | ) |
SALOMEDS::TMPFile * GEOM_Gen_i::CopyFrom | ( | SALOMEDS::SObject_ptr | theObject, |
CORBA::Long & | theObjectID | ||
) |
|
private |
References AddInStudy(), GetIGroupOperations(), and Handle().
SALOMEDS::SObject_ptr GEOM_Gen_i::CreateFolder | ( | const char * | theName, |
SALOMEDS::SObject_ptr | theFather | ||
) |
References findOrCreateComponent(), and getStudyServant().
|
virtual |
|
private |
References ComponentDataType(), and getStudyServant().
GEOM::string_array * GEOM_Gen_i::GetAllDumpNames | ( | ) |
SALOMEDS::TMPFile * GEOM_Gen_i::GetDependencyTree | ( | const GEOM::string_array & | theObjectEntries | ) |
References GEOMUtils::ConvertTreeToString(), getDownwardDependency(), GetObject(), and getUpwardDependency().
|
private |
References GEOM_Engine::GetEngine(), GetObject(), and Handle().
char * GEOM_Gen_i::GetDumpName | ( | const char * | theStudyEntry | ) |
References _impl, and GEOM_Engine::GetDumpName().
void GEOM_Gen_i::GetEntriesToReduceStudy | ( | GEOM::string_array & | theSelectedEntries, |
GEOM::string_array & | theParentEntries, | ||
GEOM::string_array & | theSubEntries, | ||
GEOM::string_array & | theOtherEntries | ||
) |
References _impl, GEOM_Engine::GetEngine(), GetIORFromString(), GetObject(), Handle(), includeParentDependencies(), and includeSubObjects().
|
virtual |
References _impl, and GEOMImpl_Gen::GetI3DPrimOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIBasicOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIBlocksOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIBooleanOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetICanonicalRecognition().
|
virtual |
References _impl, and GEOMImpl_Gen::GetICurvesOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIFieldOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIGroupOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIHealingOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIInsertOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetILocalOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetIMeasureOperations().
|
virtual |
|
virtual |
References _impl, and GEOMImpl_Gen::GetIShapesOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetITestOperations().
|
virtual |
References _impl, and GEOMImpl_Gen::GetITransformOperations().
|
virtual |
References _impl, GEOM::FDT_Bool, GEOM::FDT_Double, GEOM::FDT_Int, GEOM_FIELD, GEOM_FIELD_STEP, and Handle().
|
virtual |
References GEOM::GEOM_IKindOfShape::ARC_CIRCLE, GEOM::GEOM_IKindOfShape::ARC_ELLIPSE, GEOM::GEOM_IKindOfShape::BOX, GEOM::GEOM_IKindOfShape::CIRCLE, ComponentDataType(), GEOM::GEOM_IKindOfShape::COMPOUND, GEOM::GEOM_IKindOfShape::COMPSOLID, GEOM::GEOM_IKindOfShape::CONE, GEOM::GEOM_IKindOfShape::CONE2D, GEOM::GEOM_IKindOfShape::CRV_BEZIER, GEOM::GEOM_IKindOfShape::CRV_BSPLINE, GEOM::GEOM_IKindOfShape::CYLINDER, GEOM::GEOM_IKindOfShape::CYLINDER2D, GEOM::GEOM_IKindOfShape::DISK_CIRCLE, GEOM::GEOM_IKindOfShape::DISK_ELLIPSE, GEOM::GEOM_IKindOfShape::EDGE, GEOM::GEOM_IKindOfShape::ELLIPSE, GEOM::GEOM_IKindOfShape::FACE, GetIMeasureOperations(), getStudyServant(), GEOM::GEOM_IKindOfShape::HYPERBOLA, GEOM::GEOM_IKindOfShape::LINE, GEOM::GEOM_IKindOfShape::PARABOLA, GEOM::GEOM_IKindOfShape::PLANAR, GEOM::GEOM_IKindOfShape::PLANE, GEOM::GEOM_IKindOfShape::POLYGON, GEOM::GEOM_IKindOfShape::POLYHEDRON, GEOM::GEOM_IKindOfShape::ROTATED_BOX, GEOM::GEOM_IKindOfShape::SEGMENT, GEOM::GEOM_IKindOfShape::SHELL, GEOM::GEOM_IKindOfShape::SOLID, GEOM::GEOM_IKindOfShape::SPHERE, GEOM::GEOM_IKindOfShape::SPHERE2D, GEOM::GEOM_IKindOfShape::TORUS, GEOM::GEOM_IKindOfShape::TORUS2D, GEOM::GEOM_IKindOfShape::VERTEX, and GEOM::GEOM_IKindOfShape::WIRE.
|
inline |
|
virtual |
References _impl, LoadPlugin(), and myOpCreatorMap.
|
virtual |
|
pure virtual |
Implemented in GEOM_Gen_Session_i, and GEOM_Gen_No_Session_i.
|
private |
|
virtual |
|
virtual |
|
private |
|
private |
char * GEOM_Gen_i::IORToLocalPersistentID | ( | SALOMEDS::SObject_ptr | theSObject, |
const char * | IORString, | ||
CORBA::Boolean | isMultiFile, | ||
CORBA::Boolean | isASCII | ||
) |
CORBA::Boolean GEOM_Gen_i::Load | ( | SALOMEDS::SComponent_ptr | theComponent, |
const SALOMEDS::TMPFile & | theStream, | ||
const char * | theURL, | ||
bool | isMultiFile | ||
) |
References _impl, getStudyServant(), and GEOM_Engine::Load().
CORBA::Boolean GEOM_Gen_i::LoadASCII | ( | SALOMEDS::SComponent_ptr | theComponent, |
const SALOMEDS::TMPFile & | theStream, | ||
const char * | theURL, | ||
bool | isMultiFile | ||
) |
References Load().
|
private |
References GetOperationsCreator(), GetProc, LibHandle, LoadLib, myOpCreatorMap, and UnLoadLib.
char * GEOM_Gen_i::LocalPersistentIDToIOR | ( | SALOMEDS::SObject_ptr | theSObject, |
const char * | aLocalPersistentID, | ||
CORBA::Boolean | isMultiFile, | ||
CORBA::Boolean | isASCII | ||
) |
References _impl, GetObject(), and Handle().
void GEOM_Gen_i::Move | ( | const GEOM::object_list & | what, |
SALOMEDS::SObject_ptr | where, | ||
CORBA::Long | row | ||
) |
References getStudyServant().
void GEOM_Gen_i::MoveListToFolder | ( | const GEOM::ListOfGO & | theListOfGO, |
SALOMEDS::SObject_ptr | theFolder | ||
) |
References getStudyServant(), and Move().
void GEOM_Gen_i::MoveToFolder | ( | GEOM::GEOM_Object_ptr | theObject, |
SALOMEDS::SObject_ptr | theFolder | ||
) |
References getStudyServant(), and Move().
SALOMEDS::SObject_ptr GEOM_Gen_i::PasteInto | ( | const SALOMEDS::TMPFile & | theStream, |
CORBA::Long | theObjectID, | ||
SALOMEDS::SObject_ptr | theObject | ||
) |
References _impl, COPY_WITHOUT_REF, GetObject(), getStudyServant(), and Handle().
SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy | ( | SALOMEDS::SObject_ptr | theSObject, |
CORBA::Object_ptr | theObject, | ||
const char * | theName | ||
) |
GEOM::ListOfGO * GEOM_Gen_i::PublishNamedShapesInStudy | ( | CORBA::Object_ptr | theObject | ) |
References _impl, CreateAndPublishGroup(), and Handle().
|
virtual |
References _impl, and GEOM_Engine::Redo().
|
virtual |
RemoveObject
References _impl, Handle(), and GEOM_Engine::RemoveObject().
|
private |
References _impl, addToListOfGO(), GEOM::FSM_GetInPlace, GEOM::FSM_GetInPlaceByHistory, GEOM::FSM_GetSame, GEOM::FSM_GetShapesOnShape, GEOM::FSM_MultiTransformed, GEOM::FSM_Transformed, GetIGroupOperations(), GetIShapesOperations(), GetITransformOperations(), getStudyServant(), Handle(), GEOM::MT_USER, PublishInStudy(), RestoreGivenSubShapesOneLevel(), GEOM::SOLID, GEOM::ST_ONIN, GEOM_ITransformOperations_i::TransformLikeOtherCopy(), and GEOM::VERTEX.
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 | ||
) |
References getStudyServant(), and RestoreGivenSubShapes().
|
private |
References _impl, addToListOfGO(), GEOM::FSM_GetInPlace, GEOM::FSM_GetInPlaceByHistory, GEOM::FSM_GetSame, GEOM::FSM_GetShapesOnShape, GEOM::FSM_MultiTransformed, GEOM::FSM_Transformed, GetIGroupOperations(), GetIShapesOperations(), GetITransformOperations(), getStudyServant(), Handle(), GEOM::MT_USER, PublishInStudy(), GEOM::SOLID, GEOM::ST_ONIN, GEOM_ITransformOperations_i::TransformLikeOtherCopy(), and GEOM::VERTEX.
|
private |
References _impl, addToListOfGO(), GEOM::FSM_GetInPlace, GEOM::FSM_GetInPlaceByHistory, GEOM::FSM_GetSame, GEOM::FSM_GetShapesOnShape, GEOM::FSM_MultiTransformed, GEOM::FSM_Transformed, GetIGroupOperations(), GetIShapesOperations(), GetITransformOperations(), getStudyServant(), Handle(), GEOM::MT_USER, PublishInStudy(), RestoreSubShapesOneLevel(), GEOM::SOLID, GEOM::ST_ONIN, GEOM_ITransformOperations_i::TransformLikeOtherCopy(), and GEOM::VERTEX.
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 | ||
) |
References getStudyServant(), and RestoreSubShapes().
|
private |
References _impl, addToListOfGO(), GEOM::FSM_GetInPlace, GEOM::FSM_GetInPlaceByHistory, GEOM::FSM_GetSame, GEOM::FSM_GetShapesOnShape, GEOM::FSM_MultiTransformed, GEOM::FSM_Transformed, GetIGroupOperations(), GetIShapesOperations(), GetITransformOperations(), getStudyServant(), Handle(), GEOM::MT_USER, PublishInStudy(), GEOM::SOLID, GEOM::ST_ONIN, GEOM_ITransformOperations_i::TransformLikeOtherCopy(), and GEOM::VERTEX.
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 | ||
) |
References getStudyServant(), and RestoreSubShapes().
SALOMEDS::TMPFile * GEOM_Gen_i::Save | ( | SALOMEDS::SComponent_ptr | theComponent, |
const char * | theURL, | ||
bool | isMultiFile | ||
) |
References _impl, getStudyServant(), and GEOM_Engine::Save().
SALOMEDS::TMPFile * GEOM_Gen_i::SaveASCII | ( | SALOMEDS::SComponent_ptr | theComponent, |
const char * | theURL, | ||
bool | isMultiFile | ||
) |
References Save().
|
virtual |
References _impl, and GEOM_Engine::Undo().
|
private |
|
private |
|
private |