#include <PickTable.h>
Inheritance diagram for PickTable:
It provides an PickTable which lists points selected by the user.
Sanket B Malde <sanket@stanford.edu>
Definition at line 41 of file PickTable.h.
Public Member Functions | |
void | addItem (std::vector< double > &v) |
Adds a new point to the pick NTuple and the PickTable's window. | |
virtual void | on_m_pick_table_selectionChanged () |
Responds to change of selection in the QListView. | |
PickTable (PlotterBase *plotter) | |
A constructor. | |
Protected Member Functions | |
virtual void | addDataRepButton () |
Responds to addDataRep button. | |
virtual void | clear () |
Responds to the 'clear' button click. | |
virtual void | deleteSelectedItem () |
Responds to the 'Delete Selected Item' button click. | |
unsigned int | indexOf (QListViewItem *target) |
Finds the index of the target QListViewItem. | |
virtual void | listSorted (int) |
void | refreshItems (unsigned int select) |
Refreshes the view of all the items. | |
Private Attributes | |
NTupleSorter * | m_sorter |
The object that maintains the NTuple of picked data points. | |
PlotterBase * | m_target |
The target PlotterBase object. |
|
A constructor. A constructor taking the PlotterBase object as argument. The plotter is the one from which one is picking. Definition at line 41 of file PickTable.cxx. References PlotterBase::getDataRep(), DataSourceController::instance(), listSorted(), m_sorter, m_target, DataSourceController::registerNTuple(), num_util::size(), and num_util::type(). |
|
Responds to addDataRep button.
Definition at line 248 of file PickTable.cxx. References hippodraw::Symbol::CIRCLE, DisplayController::instance(), m_sorter, m_target, and Color::red. |
|
Adds a new point to the pick NTuple and the PickTable's window.
Definition at line 141 of file PickTable.cxx. References m_sorter, and refreshItems(). |
|
Responds to the 'clear' button click. Clears the list of picked points. Definition at line 133 of file PickTable.cxx. References NTupleSorter::clear(), and m_sorter. Referenced by refreshItems(). |
|
Responds to the 'Delete Selected Item' button click. Deletes the selected point. Definition at line 229 of file PickTable.cxx. References NTupleSorter::eraseRow(), indexOf(), m_sorter, and refreshItems(). |
|
Finds the index of the target QListViewItem.
Definition at line 202 of file PickTable.cxx. References QListViewItem::nextSibling(). Referenced by deleteSelectedItem(). |
|
Definition at line 114 of file PickTable.cxx. References m_sorter, refreshItems(), std::sort(), and QString::toUInt(). Referenced by PickTable(). |
|
Responds to change of selection in the QListView.
Definition at line 273 of file PickTable.cxx. |
|
Refreshes the view of all the items. Refreshes the view of the picked items. Sets the select item to be selected and scrolled so it is visible. If select is greater or equal to the number of rows, then no item will be selected. Definition at line 152 of file PickTable.cxx. References clear(), NTupleSorter::getRow(), m_sorter, NTupleSorter::rows(), and num_util::size(). Referenced by addItem(), deleteSelectedItem(), and listSorted(). |
|
The object that maintains the NTuple of picked data points.
Definition at line 52 of file PickTable.h. Referenced by addDataRepButton(), addItem(), clear(), deleteSelectedItem(), listSorted(), PickTable(), and refreshItems(). |
|
The target PlotterBase object. The target PlotterBase object upon which one is picking. Definition at line 57 of file PickTable.h. Referenced by addDataRepButton(), and PickTable(). |