Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PickTable Class Reference

#include <PickTable.h>

Inheritance diagram for PickTable:

Inheritance graph
[legend]
Collaboration diagram for PickTable:

Collaboration graph
[legend]
List of all members.

Detailed Description

A derived class of PickTableBase class which is generated by the Qt designer.

It provides an PickTable which lists points selected by the user.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

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

NTupleSorterm_sorter
 The object that maintains the NTuple of picked data points.
PlotterBasem_target
 The target PlotterBase object.


Constructor & Destructor Documentation

PickTable::PickTable PlotterBase plotter  ) 
 

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().


Member Function Documentation

void PickTable::addDataRepButton  )  [protected, virtual]
 

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.

void PickTable::addItem std::vector< double > &  v  ) 
 

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().

void PickTable::clear  )  [protected, virtual]
 

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().

void PickTable::deleteSelectedItem  )  [protected, virtual]
 

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().

unsigned int PickTable::indexOf QListViewItem target  )  [protected]
 

Finds the index of the target QListViewItem.

Definition at line 202 of file PickTable.cxx.

References QListViewItem::nextSibling().

Referenced by deleteSelectedItem().

void PickTable::listSorted int   )  [protected, virtual]
 

Definition at line 114 of file PickTable.cxx.

References m_sorter, refreshItems(), std::sort(), and QString::toUInt().

Referenced by PickTable().

void PickTable::on_m_pick_table_selectionChanged  )  [virtual]
 

Responds to change of selection in the QListView.

Definition at line 273 of file PickTable.cxx.

void PickTable::refreshItems unsigned int  select  )  [protected]
 

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().


Member Data Documentation

NTupleSorter* PickTable::m_sorter [private]
 

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().

PlotterBase* PickTable::m_target [private]
 

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().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3