sbt-277 - 2023-05-31

Lets say I have a navigation bar with three buttons where I want to change to a different visualization when the user clicks on one of the buttons. Each button/visualization could represent a settings visualization where the user can modify machine parameters.

As I want to use object oriented programming I created different visualizations for each machine type. In the interface editor of each visualization I defined a VAR_IN_OUT custom variable with the custom data type of the machine like:

Machine A:

Data : MachineTypeA

Machine B:

Data : MachineTypeB

and so one....

Inside of the Data parameter (pointer to the instance of the MachineType) are all necessary parameters/data stored that are displayed and modified at the specific visualization that is presented to the user.

Obviously I could have three times the same machine type or three different machine types (every machine type comes with its specific visualization and the already mentioned VAR_IN_OUT configuration).

Now I'm looking for a way to change the displayed visualization or a visualization frame. If the user clicks on the first button the visualization for MachineTypeA should be displayed including the machine data which is passed over by the VAR_IN_OUT parameter. If the user clicks on the second button the visualization for MachineTypeB should be displayed including the machine data which is passed over by the VAR_IN_OUT parameter for MachineTypeB.

I have an array with a pointer to each of the instances of the different machine types and a pointer to the VisuStructClientData ready to use. But now I'm lost in the visualization documentation and I can't figure out how to get it done.

I discovered a method:

VisuElems.VisuElemBase.g_VisuManager.SetMainVisu

But I think its not the right method because I can't see any possibility to pass the data to the VAR_IN_OUT parameter of the visualization. This seems to be a methode just to change the displayed visualization at runtime without changing the passed data set. But I can't predefine the reference date in the visualization editor because this would change when the user switches the displayed visualization.

I hope someone understands my problem.