General KERNEL Documentation     End User KERNEL Services  


salome_test Namespace Reference


Functions

def addStudy

Variables

tuple MedComp = salome.myStudy.FindComponent("MED")
tuple obj = salome.naming_service.Resolve('Kernel/ModulCatalog')
tuple catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
tuple comp = catalog.GetComponent("GEOM")
tuple A = geompy.myBuilder.FindOrCreateAttribute(geompy.father, "AttributeReal")
tuple A = A._narrow(SALOMEDS.AttributeReal)
tuple box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
tuple idbox = geompy.addToStudy(box,"box")
tuple comp = catalog.GetComponent("SMESH")
tuple comp = catalog.GetComponent("MED")
tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
tuple smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple smeshgui = salome.ImportComponentGUI("SMESH")
int ShapeTypeCompSolid = 1
int ShapeTypeSolid = 2
int ShapeTypeShell = 3
int ShapeTypeFace = 4
int ShapeTypeWire = 5
int ShapeTypeEdge = 6
int ShapeTypeVertex = 7
tuple box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
tuple idbox = geompy.addToStudy(box,"box")
tuple subShapeList = geompy.SubShapeAll(box,ShapeTypeFace)
list face = subShapeList[0]
tuple name = geompy.SubShapeName(face, box)
tuple idface = geompy.addToStudyInFather(box,face,name)
tuple subShellList = geompy.SubShapeAll(box,ShapeTypeShell)
list shell = subShellList[0]
tuple name = geompy.SubShapeName(shell, box)
tuple idshell = geompy.addToStudyInFather(box,shell,name)
tuple edgeList = geompy.SubShapeAll(face,ShapeTypeEdge)
list edge = edgeList[0]
tuple name = geompy.SubShapeName(edge, face)
tuple idedge = geompy.addToStudyInFather(face,edge,name)
tuple hypLen1 = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" )
tuple hypNbSeg1 = smesh.CreateHypothesis( "NumberOfSegments", "libStdMeshersEngine.so" )
tuple hypArea1 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" )
tuple hypArea2 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" )
tuple algoReg = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" )
tuple listHyp = algoReg.GetCompatibleHypothesis()
tuple algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
tuple listHyp = algoMef.GetCompatibleHypothesis()
tuple box = salome.IDToObject(idbox)
tuple mesh = smesh.CreateMesh(box)
tuple ret = mesh.AddHypothesis(box,algoReg)
tuple ret = mesh.AddHypothesis(box,algoMef)
tuple ret = mesh.AddHypothesis(box,hypNbSeg1)
tuple ret = mesh.AddHypothesis(box,hypArea1)
tuple edge = salome.IDToObject(idedge)
tuple submesh = mesh.GetSubMesh(edge, "SubMeshEdge")
tuple ret = mesh.AddHypothesis(edge,algoReg)
tuple ret = mesh.AddHypothesis(edge,hypLen1)
tuple face = salome.IDToObject(idface)
tuple submesh = mesh.GetSubMesh(face, "SubMeshFace")
tuple ret = mesh.AddHypothesis(face,hypArea2)
tuple comp = catalog.GetComponent("SUPERV")
 myStudy = salome.myStudy
tuple myBuilder = myStudy.NewBuilder()
tuple SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","SUPERV")
tuple father = myStudy.FindComponent("SUPERV")
tuple father = myBuilder.NewComponent("SUPERV")
tuple A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName")
int FName = 1
tuple A2 = myBuilder.FindOrCreateAttribute(father, "AttributePixMap")
int aPixmap = 2
tuple dir = os.getenv("DATA_DIR")
string xmlfile = "/Superv/Graphs/GraphGeomEssaiGates.xml"
tuple myGraph = StreamGraph( xmlfile )
tuple res = myGraph.IsDone()
tuple tmpdir = os.getenv("TmpDir")
string tmpdir = "/tmp"
string file = "/newsupervisionexample"
tuple ior = salome.orb.object_to_string(myGraph.G)
tuple GraphName = myGraph.Name()
tuple nodes = myGraph.G.Nodes()
tuple length_bs = len(nodes)
list names = []
tuple GraphInLines = StreamGraph( 'GraphInLines' )
list PyAdd = []
tuple Add = GraphInLines.INode( 'Add' , PyAdd )
list PySub = []
tuple Sub = GraphInLines.INode( 'Sub' , PySub )
list PyMul = []
tuple Mul = GraphInLines.INode( 'Mul' , PyMul )
tuple Addf = Add.Port( 'f' )
tuple Mula = GraphInLines.Link( Addf , Mul.Port( 'a' ) )
tuple Subf = Sub.Port( 'f' )
tuple Mulb = GraphInLines.Link( Subf , Mul.Port( 'b' ) )
tuple Addb = GraphInLines.Link( Subf , Add.Port( 'b' ) )
tuple Adda = Add.Input( 'a' , 1)
tuple Suba = Sub.Input( 'a' , 3)
tuple Subb = Sub.Input( 'b' , 4)
tuple MulResult = Mul.Port( 'Result' )
tuple comp = catalog.GetComponent("VISU")
string medFileName = "pointe.med"
tuple medFile = os.getenv('DATA_DIR')
 studyCurrent = salome.myStudyName
tuple med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
tuple myVisu = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU")
string medFileNew = "/tmp/"
 medFile = medFileNew
tuple med_obj = visu_gui.visu.getMedObjectFromStudy()
tuple myField1 = visu_gui.visu.getFieldObjectFromStudy(2,1)
string aMeshName = "maa1"
 anEntity = VISU.NODE
int aTimeStampId = 1
tuple myResult1 = myVisu.ImportMedField(myField1)
tuple aMesh1 = myVisu.MeshOnEntity(myResult1, aMeshName, anEntity)
tuple aScalarMap1 = myVisu.ScalarMapOnField(myResult1, aMeshName, anEntity, myField1.getName(), aTimeStampId)
tuple myResult2 = myVisu.ImportFile(medFile)
tuple aMesh2 = myVisu.MeshOnEntity(myResult2, aMeshName, anEntity)
int aTimeStampId = 3
tuple aScalarMap2 = myVisu.ScalarMapOnField(myResult2, aMeshName, anEntity, myField1.getName(), aTimeStampId)


Function Documentation

def salome_test::addStudy   ior  ) 
 


Variable Documentation

tuple salome_test::MedComp = salome.myStudy.FindComponent("MED") [static]
 

tuple salome_test::obj = salome.naming_service.Resolve('Kernel/ModulCatalog') [static]
 

tuple salome_test::catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog) [static]
 

tuple salome_test::comp = catalog.GetComponent("GEOM") [static]
 

tuple salome_test::A = geompy.myBuilder.FindOrCreateAttribute(geompy.father, "AttributeReal") [static]
 

tuple salome_test::A = A._narrow(SALOMEDS.AttributeReal) [static]
 

tuple salome_test::box = geompy.MakeBox(0., 0., 0., 100., 200., 300.) [static]
 

tuple salome_test::idbox = geompy.addToStudy(box,"box") [static]
 

tuple salome_test::comp = catalog.GetComponent("SMESH") [static]
 

tuple salome_test::comp = catalog.GetComponent("MED") [static]
 

tuple salome_test::geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM") [static]
 

tuple salome_test::myBuilder = salome.myStudy.NewBuilder() [static]
 

tuple salome_test::smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") [static]
 

tuple salome_test::smeshgui = salome.ImportComponentGUI("SMESH") [static]
 

int salome_test::ShapeTypeCompSolid = 1 [static]
 

int salome_test::ShapeTypeSolid = 2 [static]
 

int salome_test::ShapeTypeShell = 3 [static]
 

int salome_test::ShapeTypeFace = 4 [static]
 

int salome_test::ShapeTypeWire = 5 [static]
 

int salome_test::ShapeTypeEdge = 6 [static]
 

int salome_test::ShapeTypeVertex = 7 [static]
 

tuple salome_test::box = geompy.MakeBox(0., 0., 0., 100., 200., 300.) [static]
 

tuple salome_test::idbox = geompy.addToStudy(box,"box") [static]
 

tuple salome_test::subShapeList = geompy.SubShapeAll(box,ShapeTypeFace) [static]
 

list salome_test::face = subShapeList[0] [static]
 

tuple salome_test::name = geompy.SubShapeName(face, box) [static]
 

tuple salome_test::idface = geompy.addToStudyInFather(box,face,name) [static]
 

tuple salome_test::subShellList = geompy.SubShapeAll(box,ShapeTypeShell) [static]
 

list salome_test::shell = subShellList[0] [static]
 

tuple salome_test::name = geompy.SubShapeName(shell, box) [static]
 

tuple salome_test::idshell = geompy.addToStudyInFather(box,shell,name) [static]
 

tuple salome_test::edgeList = geompy.SubShapeAll(face,ShapeTypeEdge) [static]
 

list salome_test::edge = edgeList[0] [static]
 

tuple salome_test::name = geompy.SubShapeName(edge, face) [static]
 

tuple salome_test::idedge = geompy.addToStudyInFather(face,edge,name) [static]
 

tuple salome_test::hypLen1 = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" ) [static]
 

tuple salome_test::hypNbSeg1 = smesh.CreateHypothesis( "NumberOfSegments", "libStdMeshersEngine.so" ) [static]
 

tuple salome_test::hypArea1 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) [static]
 

tuple salome_test::hypArea2 = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" ) [static]
 

tuple salome_test::algoReg = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" ) [static]
 

tuple salome_test::listHyp = algoReg.GetCompatibleHypothesis() [static]
 

tuple salome_test::algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" ) [static]
 

tuple salome_test::listHyp = algoMef.GetCompatibleHypothesis() [static]
 

tuple salome_test::box = salome.IDToObject(idbox) [static]
 

tuple salome_test::mesh = smesh.CreateMesh(box) [static]
 

tuple salome_test::ret = mesh.AddHypothesis(box,algoReg) [static]
 

tuple salome_test::ret = mesh.AddHypothesis(box,algoMef) [static]
 

tuple salome_test::ret = mesh.AddHypothesis(box,hypNbSeg1) [static]
 

tuple salome_test::ret = mesh.AddHypothesis(box,hypArea1) [static]
 

tuple salome_test::edge = salome.IDToObject(idedge) [static]
 

tuple salome_test::submesh = mesh.GetSubMesh(edge, "SubMeshEdge") [static]
 

tuple salome_test::ret = mesh.AddHypothesis(edge,algoReg) [static]
 

tuple salome_test::ret = mesh.AddHypothesis(edge,hypLen1) [static]
 

tuple salome_test::face = salome.IDToObject(idface) [static]
 

tuple salome_test::submesh = mesh.GetSubMesh(face, "SubMeshFace") [static]
 

tuple salome_test::ret = mesh.AddHypothesis(face,hypArea2) [static]
 

tuple salome_test::comp = catalog.GetComponent("SUPERV") [static]
 

salome_test::myStudy = salome.myStudy [static]
 

tuple salome_test::myBuilder = myStudy.NewBuilder() [static]
 

tuple salome_test::SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","SUPERV") [static]
 

tuple salome_test::father = myStudy.FindComponent("SUPERV") [static]
 

tuple salome_test::father = myBuilder.NewComponent("SUPERV") [static]
 

tuple salome_test::A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName") [static]
 

int salome_test::FName = 1 [static]
 

tuple salome_test::A2 = myBuilder.FindOrCreateAttribute(father, "AttributePixMap") [static]
 

int salome_test::aPixmap = 2 [static]
 

tuple salome_test::dir = os.getenv("DATA_DIR") [static]
 

string salome_test::xmlfile = "/Superv/Graphs/GraphGeomEssaiGates.xml" [static]
 

tuple salome_test::myGraph = StreamGraph( xmlfile ) [static]
 

tuple salome_test::res = myGraph.IsDone() [static]
 

tuple salome_test::tmpdir = os.getenv("TmpDir") [static]
 

string salome_test::tmpdir = "/tmp" [static]
 

string salome_test::file = "/newsupervisionexample" [static]
 

tuple salome_test::ior = salome.orb.object_to_string(myGraph.G) [static]
 

tuple salome_test::GraphName = myGraph.Name() [static]
 

tuple salome_test::nodes = myGraph.G.Nodes() [static]
 

tuple salome_test::length_bs = len(nodes) [static]
 

list salome_test::names = [] [static]
 

tuple salome_test::GraphInLines = StreamGraph( 'GraphInLines' ) [static]
 

list salome_test::PyAdd = [] [static]
 

tuple salome_test::Add = GraphInLines.INode( 'Add' , PyAdd ) [static]
 

list salome_test::PySub = [] [static]
 

tuple salome_test::Sub = GraphInLines.INode( 'Sub' , PySub ) [static]
 

list salome_test::PyMul = [] [static]
 

tuple salome_test::Mul = GraphInLines.INode( 'Mul' , PyMul ) [static]
 

tuple salome_test::Addf = Add.Port( 'f' ) [static]
 

tuple salome_test::Mula = GraphInLines.Link( Addf , Mul.Port( 'a' ) ) [static]
 

tuple salome_test::Subf = Sub.Port( 'f' ) [static]
 

tuple salome_test::Mulb = GraphInLines.Link( Subf , Mul.Port( 'b' ) ) [static]
 

tuple salome_test::Addb = GraphInLines.Link( Subf , Add.Port( 'b' ) ) [static]
 

tuple salome_test::Adda = Add.Input( 'a' , 1) [static]
 

tuple salome_test::Suba = Sub.Input( 'a' , 3) [static]
 

tuple salome_test::Subb = Sub.Input( 'b' , 4) [static]
 

tuple salome_test::MulResult = Mul.Port( 'Result' ) [static]
 

tuple salome_test::comp = catalog.GetComponent("VISU") [static]
 

string salome_test::medFileName = "pointe.med" [static]
 

tuple salome_test::medFile = os.getenv('DATA_DIR') [static]
 

salome_test::studyCurrent = salome.myStudyName [static]
 

tuple salome_test::med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED") [static]
 

tuple salome_test::myVisu = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU") [static]
 

string salome_test::medFileNew = "/tmp/" [static]
 

salome_test::medFile = medFileNew [static]
 

tuple salome_test::med_obj = visu_gui.visu.getMedObjectFromStudy() [static]
 

tuple salome_test::myField1 = visu_gui.visu.getFieldObjectFromStudy(2,1) [static]
 

string salome_test::aMeshName = "maa1" [static]
 

salome_test::anEntity = VISU.NODE [static]
 

int salome_test::aTimeStampId = 1 [static]
 

tuple salome_test::myResult1 = myVisu.ImportMedField(myField1) [static]
 

tuple salome_test::aMesh1 = myVisu.MeshOnEntity(myResult1, aMeshName, anEntity) [static]
 

tuple salome_test::aScalarMap1 = myVisu.ScalarMapOnField(myResult1, aMeshName, anEntity, myField1.getName(), aTimeStampId) [static]
 

tuple salome_test::myResult2 = myVisu.ImportFile(medFile) [static]
 

tuple salome_test::aMesh2 = myVisu.MeshOnEntity(myResult2, aMeshName, anEntity) [static]
 

int salome_test::aTimeStampId = 3 [static]
 

tuple salome_test::aScalarMap2 = myVisu.ScalarMapOnField(myResult2, aMeshName, anEntity, myField1.getName(), aTimeStampId) [static]