Skip to content

PrestoPlot Class

The PrestoPlot class gives an interface to high level and application features. It is the main entry point to all you can do by interacting with PrestoPlot. It gives access to several managers to handle different parts of the application and data. A singleton is available through the PP global function.

Here is an example of getting the dataset manager to create a dataset :

set datasetManager [PP datasetManager]
set newDataset [$datasetManager createDataset "MyParameter"]
There is also helpers (global functions) to get quick access to the different managers. The same example can be achieved with the following code :
set newDataset [Datasets createDataset "MyParameter"]
The table below gives the helpers functions associated to each manager.

Global helper Associated method
Datasets datasetManager
Dates dateManager
Files fileManager
Graphs graphManager
UI ui

Then you can do what you need with the dataset manager.


Public Functions

currentPlugin
datasetManager
dateManager
exit{}
fileManager
graphManager
ui
version


Detailed Functions Descriptions

currentPlugin

currentPlugin

Get the Plugin object for the current plugin.

Return : An instance of Plugin.

datasetManager

datasetManager

Get the DatasetManager object to handle dataset collection.

Return : An instance of DatasetManager.

dateManager

dateManager

Get the DateManager object to handle dates.

Return : An instance of DateManager.

exit

exit{ }

This function will terminate and exit PrestoPlot.

fileManager

fileManager

Get the FileManager object to deal with files.

Return : An instance of FileManager.

graphManager

graphManager

Get the GraphManager object to handle graphs.

Return : An instance of GraphManager.

ui

ui

Get the UserInterface object to interact with the user interface of the current PrestoPlot session.

Return : An instance of UserInterface.

version

version

This function returns the current PrestoPlot version as a string. For example, the function can return "25.07".

Return : A string representing the current PrestoPlot version.