Back to index

salome-paravis  6.5.0
Functions | Variables
paravis Namespace Reference

Functions

def Initialize
 Initialization of paravis server.
def ImportFile
def createFunction
def createConstructors

Variables

 myORB = None
 myNamingService = None
 myLifeCycleCORBA = None
 myLocalStudyManager = None
 myLocalStudy = None
 myLocalParavis = None
 myDelay = None
 mySession = None
tuple myParavis = Initialize(orb, naming_service,lcc,myStudyManager,myStudy, 2)
 Initialize of a PARAVIS interface.
tuple vtkSMObject = vtkSMObject()
 Initialize constructor functions.
tuple vtkProcessModule = vtkProcessModule()
tuple vtkPVPythonModule = vtkPVPythonModule()
tuple vtkSMProxyManager = vtkSMProxyManager()

Function Documentation

Definition at line 78 of file paravis.py.

00078 
00079 def createConstructors():
00080     "Create constructor functions according to list of extracted classes"
00081     g = globals()
00082     aClassNames = myParavis.GetClassesList();
00083     for aName in aClassNames:
00084         g[aName] = createFunction(aName)

Here is the call graph for this function:

def paravis.createFunction (   theName)

Definition at line 71 of file paravis.py.

00071 
00072 def createFunction(theName):
00073     "Create function - constructor of Paravis object"
00074     def MyFunction():
00075         return myParavis.CreateClass(theName)
00076     return MyFunction
00077 

Here is the caller graph for this function:

def paravis.ImportFile (   theFileName)

Definition at line 66 of file paravis.py.

00066 
00067 def ImportFile(theFileName):
00068     "Import a file of any format supported by ParaView"
00069     myParavis.ImportFile(theFileName)
00070 

def paravis.Initialize (   theORB,
  theNamingService,
  theLifeCycleCORBA,
  theStudyManager,
  theStudy,
  theDelay 
)

Initialization of paravis server.

Definition at line 45 of file paravis.py.

00045 
00046 def Initialize(theORB, theNamingService, theLifeCycleCORBA, theStudyManager, theStudy, theDelay) :
00047     global myORB, myNamingService, myLifeCycleCORBA, myLocalStudyManager, myLocalStudy
00048     global mySession, myDelay
00049     myDelay = theDelay
00050     myORB = theORB
00051     myNamingService = theNamingService
00052     myLifeCycleCORBA = theLifeCycleCORBA
00053     myLocalStudyManager = theStudyManager
00054     while mySession == None:
00055         mySession = myNamingService.Resolve("/Kernel/Session")
00056     mySession = mySession._narrow(SALOME.Session)
00057     mySession.GetInterface()
00058     myDelay = theDelay
00059     sleep(myDelay)
00060     myLocalParavis = myLifeCycleCORBA.FindOrLoadComponent("FactoryServer", "PARAVIS")
00061     myLocalStudy = theStudy
00062     myLocalParavis.SetCurrentStudy(myLocalStudy)
00063     myLocalParavis.ActivateModule()
00064     return myLocalParavis
00065 


Variable Documentation

Definition at line 41 of file paravis.py.

Definition at line 36 of file paravis.py.

Definition at line 40 of file paravis.py.

Definition at line 39 of file paravis.py.

Definition at line 38 of file paravis.py.

Definition at line 35 of file paravis.py.

paravis.myORB = None

Definition at line 34 of file paravis.py.

tuple paravis.myParavis = Initialize(orb, naming_service,lcc,myStudyManager,myStudy, 2)

Initialize of a PARAVIS interface.

Definition at line 86 of file paravis.py.

Definition at line 42 of file paravis.py.

Definition at line 93 of file paravis.py.

Definition at line 94 of file paravis.py.

Initialize constructor functions.

Initialize Paravis static objects

Definition at line 92 of file paravis.py.

Definition at line 95 of file paravis.py.