demisjohn / pyFIMM

Python Interface to PhotonDesign's FimmWave/FimmProp software.
15 stars 4 forks source link

`View` class: for Plots in Fimmprop #72

Open demisjohn opened 8 years ago

demisjohn commented 8 years ago

Devices (and WG's?) shoudl also save a reference to the findorcreateview for the device, to have FimmProp do the plotting.

For example, viewing the propagated fields in a device does this:

Ref& var12 = Device_522942.findorcreateview()
var12.viewzfield(0,0,1,20,255,0,6,0,2,0)

1) creates a refernce to the dev's window 2) tells the window to viewzfield()

demisjohn commented 8 years ago

Doesn't make sense - the reference to a View (the open window showing the device schematic) is destroyed if the window is closed. So actually you need to create the reference each time.

This could use a new View class for the View. However it might need a different class if the View is of a Device vs. WG...