camitk.Application

class camitk.Application

The generic/default application. Once this class is instantiated in the main, everything is setup. The constructor can take the command line arguments. It can also be asked not to load the extensions automatically,see Application().

If you do not have a specific MainWindow extension, then the default CamiTK MainWindow is used, see setMainWindow().

This class manages all application-level instances, structures and all. This explains the number of static methods in this class.

It manages: - the registered/loaded action extensions and all the actions - the registered/loaded component extensions and all the component instances - the registered/loaded viewer extensions and all the viewer instances - the refresh mechanism - the current selection (selected components) - the recently opened documents - the application language/internationalization settings - the opening/closing/saving of components - the main window - the history of applied actions (including saving it as a CamitK SCXML document) - some application level settings

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

applyAction(*args, **kwargs)

Overloaded function.

close(arg0, arg1)

Close a Component: if it has been changed, ask the user for more information, then if everything is ok, delete it.

closeAll()

Closes all opened Components, prompting the user to save modified ones.

connectViewerSelectionChanged(viewerName, ...)

Connects a Python callback to a Viewer's selectionChanged() signal by name (if not already connected).

disconnectViewerSelectionChanged(viewerName, ...)

Disconnects a Python callback from a Viewer's selectionChanged() signal by name (if already connected).

getAction(arg0)

get a registered action given its name

getActions()

get all the actions registered in the application (note: the returned ActionList is guaranteed to be sorted by action name and to contain no duplicates)

getTopLevelComponents()

get the current application wide list of instantiated top-level Components.

isAlive(*args, **kwargs)

Overloaded function.

open(fileName[, blockRefresh])

load the filename and returns the corresponding top level Component (returns nullptr if an error occurs)

save(arg0)

save a component to its file (as given by component->getFileName()).

saveAs(arg0)

Saves the given Component by prompting the user for a file name.

update3DClippingPlanes()

Updates the clipping planes of the default 3D Viewer.