3 \page tui_point_marker_page Example of using Point Markers
11 data_dir = os.getenv("DATA_DIR")
14 myViewManager = myVisu.GetViewManager();
16 myView = myViewManager.Create3DView()
17 myView.SetTitle("The viewer for Point Marker Example")
18 print "myViewManager.Create3DView()"
21 medFile = data_dir + '/MedFiles/' + medFile
22 myResult = myVisu.ImportFile(medFile)
24 aMeshName ="LE VOLUME"
26 aFieldName = "VITESSE";
29 aScalarMap = myVisu.ScalarMapOnField(myResult,aMeshName,anEntity,aFieldName,aTimeStampId)
30 myView.Display(aScalarMap);
33 print "Set representation type to Point"
34 myView.SetPresentationType(aScalarMap, VISU.POINT)
36 print "Set standard marker"
37 aScalarMap.SetMarkerStd(VISU.MT_PLUS, VISU.MS_25)
39 time.sleep(sleep_delay)
41 print "Set custom marker"
42 custom_texture = myVisu.LoadTexture(os.path.join(data_dir, "Textures", "texture1.dat"))
43 aScalarMap.SetMarkerTexture(custom_texture)