calculator

sans.perspectives.calculator.calculator

This software was developed by the University of Tennessee as part of the Distributed Data Analysis of Neutron Scattering Experiments (DANSE) project funded by the US National Science Foundation.

See the license text in license.txt

copyright 2010, University of Tennessee

class sans.perspectives.calculator.calculator.Plugin(standalone=True)

This class defines the interface for a Plugin class for calculator perspective

get_context_menu(graph=None)

This method is optional.

When the context menu of a plot is rendered, the get_context_menu method will be called to give you a chance to add a menu item to the context menu.

A ref to a Graph object is passed so that you can investigate the plot content and decide whether you need to add items to the context menu.

This method returns a list of menu items. Each item is itself a list defining the text to appear in the menu, a tool-tip help text, and a call-back method.

@param graph: the Graph object to which we attach the context menu @return: a list of menu items with call-back function

get_panels(parent)

Create and return the list of wx.Panels for your plug-in. Define the plug-in perspective.

Panels should inherit from DefaultPanel defined below, or should present the same interface. They must define “window_caption” and “window_name”.

@param parent: parent window @return: list of panels

get_perspective()
Get the list of panel names for this perspective
get_tools()
Returns a set of menu entries for tools
help(evt)
Show a general help dialog. TODO: replace the text with a nice image provide more hint on the SLD calculator
on_calculate_sld(event)
Compute the scattering length density of molecula
on_calculate_slit_size(event)
Compute the slit size a given data
on_edit_data(event)
Edit meta data
on_perspective(event)
Call back function for the perspective menu item. We notify the parent window that the perspective has changed. @param event: menu event
populate_menu(id, owner)

Create and return the list of application menu items for the plug-in.

@param id: deprecated. Un-used. @param parent: parent window @return: plug-in menu

post_init()
Post initialization call back to close the loose ends

Table Of Contents

Previous topic

aperture_editor

Next topic

calculator_widgets

This Page