An API is provided to add attributes shortcut panels. These panels appear on the bottom left of the INTViewer desktop. An example of such panel is shown below:
To add an attributes shortcut panel for a 2D layer, follow these 4 steps:
- create a panel object extending com.interactive.intviewerapi.editors.AbstractVisualAttributesShortcutPanel
- create an editor object extending com.interactive.intviewerapi.editors.AbstractVisualAttributesShortcutEditor
- create an adapter object implementing com.interactive.intviewerapi.editors.IAttributesShortcutAdapter
- reference this adapter in the layer.xml file as "AttributesShortcut"
The role of the panel is to allow the display and input of information,
The role of the editor is to act as a lightweight controller of the panel being displayed,
The role of the adapter is to match the selected layer to the appropriate editor.
A sample implementation is provided for triangle mesh 2D layers. A similar implementation can be done for any IVisual.
The API is virtually identical to add window shortcut panels. These panels appear on the middle left of the INTViewer desktop. An example of such panel is shown below:
To add a window shortcut panel for a 2D window, follow these 4 steps:
- create a panel object extending com.interactive.intviewerapi.editors.AbstractViewerWindowAttributesShortcutPanel
- create an editor object extending com.interactive.intviewerapi.editors.AbstractViewerWindowAttributesShortcutEditor
- create an adapter object implementing com.interactive.intviewerapi.editors.IAttributesShortcutAdapter
- reference this adapter in the layer.xml file as "WindowShortcut".
A sample implementation is provided for FK windows. A similar implementation can be done for any IViewerWindow.