Back to index

salome-paravis  6.5.0
Functions | Variables
A7 Namespace Reference

Functions

def after_set
def change_representation

Variables

tuple picturedir = get_picture_dir(sys.argv[1], "3D_viewer/A7")
 my_paravis = paravis.myParavis
tuple my_view = GetRenderView()
string file_name = "Tetra4.med"
tuple proxy = GetActiveSource()
list represents
list shrinks = [0, 1]
list shadings = [0, 1]
list opacities = [1.0, 0.5, 0.0]
list linewidths = [1.0, 3.0, 10.0]
float compare_prec = 0.00001
string field_name = 'scalar_field'
tuple cut_planes
tuple repr = RepresentationType.get_name(reprCode)
tuple is_good = call_and_check(cut_planes, "Representation", repr, 0)
string msg = "VOLUME representation must be not available for Iso Surface"
string pic_name = "params_"
 myParavis = paravis.myParavis
string theFileName = "TimeStamps.med"
tuple aProxy = GetActiveSource()
tuple aView = GetRenderView()
tuple prs = CutLinesOnField(aProxy,EntityType.CELL,'pression' , 2)
string my_format = "png"
tuple scene = AnimateReader(aProxy,aView,picturedir+"A7_dom."+my_format)
tuple nb_frames = len(scene.TimeKeeper.TimestepValues)
tuple pics = os.listdir(picturedir)
string file = "Tetra4.med"
int timestamp_nb = 1
tuple med_reader = pvsimple.GetActiveSource()
tuple view = pvsimple.GetRenderView()
tuple time = get_time(med_reader, timestamp_nb)
int delay = 1
string file_path = "ResOK_0000.med"
 node_entity = EntityType.NODE
tuple scmap = ScalarMapOnField(med_reader, node_entity, field_name, 1)
tuple slines = StreamLinesOnField(med_reader, node_entity, field_name, 1)
tuple vec = VectorsOnField(med_reader, node_entity, field_name, 1)
tuple iso = IsoSurfacesOnField(med_reader, node_entity, field_name, 1)
tuple clines = CutPlanesOnField(med_reader, node_entity, field_name, 1)
tuple cplanes = CutPlanesOnField(med_reader, node_entity, field_name, 1)
tuple defmap
tuple defshape = DeformedShapeOnField(med_reader, node_entity, field_name, 1)
tuple plot3d = Plot3DOnField(med_reader, node_entity, field_name, 1)

Function Documentation

def A7.after_set (   error_string,
  prop_name,
  old_value,
  new_value 
)

Definition at line 36 of file A7.py.

00036 
00037 def after_set(error_string, prop_name, old_value, new_value):
00038     print prop_name, ": old_value = ", old_value, "new_value  = ", new_value
00039     if error_string == "":
00040         time.sleep(delay)
00041     else:
00042         print prop_name, " error = ", error_string
00043         pass
00044     pass
00045 

Here is the caller graph for this function:

def A7.change_representation (   prs,
  repres,
  opacity,
  linew 
)

Definition at line 46 of file A7.py.

00046 
00047 def change_representation(prs, repres, opacity, linew):
00048     if prs is None:
00049         print "FAILED"
00050         return
00051     else:
00052         print "OK"
00053 
00054     display_only(prs, view)
00055     view.ResetCamera()
00056 
00057     time.sleep(delay)
00058 
00059     old_prs_type = prs.Representation
00060     if old_prs_type != repres:
00061         err_str = ''
00062         try:
00063             prs.Representation = repres
00064         except:
00065             err_str = "Error"
00066         after_set(err_str, "Representation", old_prs_type, repres)
00067         pass
00068 
00069     old_opacity = prs.Opacity
00070     if old_opacity != opacity:
00071         err_str = ''
00072         try:
00073             prs.Opacity = opacity  # double value [0, 1]
00074         except:
00075             err_str = "Error"
00076         after_set(err_str, "Opacity", old_opacity, opacity)
00077         pass
00078 
00079     old_linew = prs.LineWidth
00080     if old_linew != linew:
00081         err_str = ''
00082         try:
00083             prs.LineWidth = linew  # double value, recommended round [1, 10]
00084         except:
00085             err_str = "Error"
00086         after_set(err_str, "LineWidth", old_linew, linew)
00087         pass
00088 
00089     print ""
00090     pass
00091 
00092 
00093 # ResOK_0000.med

Here is the call graph for this function:


Variable Documentation

tuple A7.aProxy = GetActiveSource()

Definition at line 42 of file A7.py.

tuple A7.aView = GetRenderView()

Definition at line 48 of file A7.py.

tuple A7.clines = CutPlanesOnField(med_reader, node_entity, field_name, 1)

Definition at line 124 of file A7.py.

float A7.compare_prec = 0.00001

Definition at line 62 of file A7.py.

tuple A7.cplanes = CutPlanesOnField(med_reader, node_entity, field_name, 1)

Definition at line 152 of file A7.py.

Initial value:
00001 CutPlanesOnField(proxy, EntityType.CELL, field_name, 1,
00002 nb_planes=10, orientation=Orientation.YZ, displacement=0.5)

Definition at line 67 of file A7.py.

tuple A7.defmap
Initial value:
00001 DeformedShapeAndScalarMapOnField(med_reader, node_entity,
00002                                           field_name, 1)

Definition at line 156 of file A7.py.

tuple A7.defshape = DeformedShapeOnField(med_reader, node_entity, field_name, 1)

Definition at line 161 of file A7.py.

int A7.delay = 1

Definition at line 33 of file A7.py.

string A7.field_name = 'scalar_field'

Definition at line 64 of file A7.py.

string A7.file = "Tetra4.med"

Definition at line 34 of file A7.py.

string A7.file_name = "Tetra4.med"

Definition at line 44 of file A7.py.

string A7.file_path = "ResOK_0000.med"

Definition at line 95 of file A7.py.

tuple A7.is_good = call_and_check(cut_planes, "Representation", repr, 0)

Definition at line 81 of file A7.py.

tuple A7.iso = IsoSurfacesOnField(med_reader, node_entity, field_name, 1)

Definition at line 120 of file A7.py.

list A7.linewidths = [1.0, 3.0, 10.0]

Definition at line 61 of file A7.py.

Definition at line 43 of file A7.py.

string A7.msg = "VOLUME representation must be not available for Iso Surface"

Definition at line 83 of file A7.py.

string A7.my_format = "png"

Definition at line 60 of file A7.py.

Definition at line 37 of file A7.py.

tuple A7.my_view = GetRenderView()

Definition at line 40 of file A7.py.

Definition at line 31 of file A7.py.

tuple A7.nb_frames = len(scene.TimeKeeper.TimestepValues)

Definition at line 73 of file A7.py.

Definition at line 97 of file A7.py.

list A7.opacities = [1.0, 0.5, 0.0]

Definition at line 60 of file A7.py.

string A7.pic_name = "params_"

Definition at line 103 of file A7.py.

tuple A7.pics = os.listdir(picturedir)

Definition at line 75 of file A7.py.

tuple A7.picturedir = get_picture_dir(sys.argv[1], "3D_viewer/A7")

Definition at line 31 of file A7.py.

tuple A7.plot3d = Plot3DOnField(med_reader, node_entity, field_name, 1)

Definition at line 170 of file A7.py.

tuple A7.proxy = GetActiveSource()

Definition at line 50 of file A7.py.

tuple A7.prs = CutLinesOnField(aProxy,EntityType.CELL,'pression' , 2)

Definition at line 56 of file A7.py.

Definition at line 79 of file A7.py.

Initial value:
00001 [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
00002 RepresentationType.SURFACE, RepresentationType.VOLUME]

Definition at line 56 of file A7.py.

tuple A7.scene = AnimateReader(aProxy,aView,picturedir+"A7_dom."+my_format)

Definition at line 72 of file A7.py.

tuple A7.scmap = ScalarMapOnField(med_reader, node_entity, field_name, 1)

Definition at line 108 of file A7.py.

list A7.shadings = [0, 1]

Definition at line 59 of file A7.py.

list A7.shrinks = [0, 1]

Definition at line 58 of file A7.py.

tuple A7.slines = StreamLinesOnField(med_reader, node_entity, field_name, 1)

Definition at line 112 of file A7.py.

string A7.theFileName = "TimeStamps.med"

Definition at line 36 of file A7.py.

tuple A7.time = get_time(med_reader, timestamp_nb)

Definition at line 54 of file A7.py.

int A7.timestamp_nb = 1

Definition at line 40 of file A7.py.

tuple A7.vec = VectorsOnField(med_reader, node_entity, field_name, 1)

Definition at line 116 of file A7.py.

Definition at line 53 of file A7.py.