casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
casa::PlotMSDataCollapsible Class Reference

Represents a single plot's properties that can be shown maximized or minimized; handles whether a plot will be shown on the display. More...

#include <PlotMSDataCollapsible.qo.h>

Inheritance diagram for casa::PlotMSDataCollapsible:

Signals

void close (PlotMSDataCollapsible *)
 

Public Member Functions

 PlotMSDataCollapsible (PlotMSPlotter *plotter, QWidget *parent, int plotIndex=-1)
 
 ~PlotMSDataCollapsible ()
 
PlotMSDataTabgetSingleData ()
 Return the plot tab. More...
 
void setGridSize (int rowCount, int colCount)
 Set the numbers of rows and cols that the page can currently support. More...
 
void getLocation (int &rowIndex, int &colIndex)
 Return the row and column location for this plot. More...
 
void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)
 Plot parameters have changed. More...
 
virtual QSize minimumSizeHint () const
 Return the minimum size for the plot properties. More...
 
virtual QSize sizeHint () const
 Return the size. More...
 
void resetHeight (int diff)
 Reset the height based on the positive or negative amount of new space that is available. More...
 
void plotsChanged (const PlotMSPlotManager &manager, int index)
 The plots being displayed have changed. More...
 
PlotMSPlotgetPlot ()
 Returns the plot. More...
 
bool plot (bool forceReload)
 Force (or not) the plots to update their displays. More...
 
bool managesPlot (PlotMSPlot *plot) const
 Returns whether or not the plot is displayed by this Collapsible. More...
 
std::vector< PMS::Axis > getSelectedLoadAxes () const
 
std::vector< PMS::Axis > getSelectedReleaseAxes () const
 
bool isPlottable () const
 Returns whether this plot will be plotted, i.e., its gridRow and gridCol are nonnegative AND there is an empty location for the plot, either at its preferred gridRow and gridCol or at an empty location somewhere else. More...
 
void minimizeDisplay ()
 Change to a compact display. More...
 
void maximizeDisplay ()
 Change to an expanded display. More...
 
bool isMinimized () const
 Returns whether or not the display is compact (minimized) or expanded. More...
 
void completePlotting (bool success)
 This was put in to support overplotting. More...
 
void clearData ()
 
casacore::String getFile () const
 Return the ms that was loaded or an empty string. More...
 

Private Slots

void closePlot ()
 
void openCloseDisplay ()
 
void showContextMenu (const QPoint &location)
 

Private Attributes

QAction minimizeAction
 
QAction maximizeAction
 
QAction closeAction
 
const int PMS_SIZE_COLLAPSED
 
const int PMS_SIZE_EXPANDED
 
const int PMS_SIZE_WIDTH
 
int minimumSize
 
QLineEdit * nameLabel
 
PlotMSPlotTabplotTab
 
Ui::PlotMSDataCollapsibleClass ui
 

Detailed Description

Represents a single plot's properties that can be shown maximized or minimized; handles whether a plot will be shown on the display.

Definition at line 48 of file PlotMSDataCollapsible.qo.h.

Constructor & Destructor Documentation

casa::PlotMSDataCollapsible::PlotMSDataCollapsible ( PlotMSPlotter plotter,
QWidget *  parent,
int  plotIndex = -1 
)
casa::PlotMSDataCollapsible::~PlotMSDataCollapsible ( )

Member Function Documentation

void casa::PlotMSDataCollapsible::clearData ( )
void casa::PlotMSDataCollapsible::close ( PlotMSDataCollapsible )
signal
void casa::PlotMSDataCollapsible::closePlot ( )
privateslot
void casa::PlotMSDataCollapsible::completePlotting ( bool  success)

This was put in to support overplotting.

When two plots are sharing the same canvas, we don't want to trigger a redraw until all the plots sharing the same canvas are done updating their data in background threads.

casacore::String casa::PlotMSDataCollapsible::getFile ( ) const

Return the ms that was loaded or an empty string.

void casa::PlotMSDataCollapsible::getLocation ( int &  rowIndex,
int &  colIndex 
)

Return the row and column location for this plot.

PlotMSPlot* casa::PlotMSDataCollapsible::getPlot ( )

Returns the plot.

std::vector<PMS::Axis> casa::PlotMSDataCollapsible::getSelectedLoadAxes ( ) const
std::vector<PMS::Axis> casa::PlotMSDataCollapsible::getSelectedReleaseAxes ( ) const
PlotMSDataTab* casa::PlotMSDataCollapsible::getSingleData ( )

Return the plot tab.

bool casa::PlotMSDataCollapsible::isMinimized ( ) const

Returns whether or not the display is compact (minimized) or expanded.

bool casa::PlotMSDataCollapsible::isPlottable ( ) const

Returns whether this plot will be plotted, i.e., its gridRow and gridCol are nonnegative AND there is an empty location for the plot, either at its preferred gridRow and gridCol or at an empty location somewhere else.

bool casa::PlotMSDataCollapsible::managesPlot ( PlotMSPlot plot) const

Returns whether or not the plot is displayed by this Collapsible.

void casa::PlotMSDataCollapsible::maximizeDisplay ( )

Change to an expanded display.

void casa::PlotMSDataCollapsible::minimizeDisplay ( )

Change to a compact display.

virtual QSize casa::PlotMSDataCollapsible::minimumSizeHint ( ) const
virtual

Return the minimum size for the plot properties.

void casa::PlotMSDataCollapsible::openCloseDisplay ( )
privateslot
void casa::PlotMSDataCollapsible::parametersHaveChanged ( const PlotMSWatchedParameters params,
int  updateFlag 
)

Plot parameters have changed.

bool casa::PlotMSDataCollapsible::plot ( bool  forceReload)

Force (or not) the plots to update their displays.

void casa::PlotMSDataCollapsible::plotsChanged ( const PlotMSPlotManager manager,
int  index 
)

The plots being displayed have changed.

void casa::PlotMSDataCollapsible::resetHeight ( int  diff)

Reset the height based on the positive or negative amount of new space that is available.

void casa::PlotMSDataCollapsible::setGridSize ( int  rowCount,
int  colCount 
)

Set the numbers of rows and cols that the page can currently support.

void casa::PlotMSDataCollapsible::showContextMenu ( const QPoint &  location)
privateslot
virtual QSize casa::PlotMSDataCollapsible::sizeHint ( ) const
virtual

Return the size.

Member Data Documentation

QAction casa::PlotMSDataCollapsible::closeAction
private

Definition at line 130 of file PlotMSDataCollapsible.qo.h.

QAction casa::PlotMSDataCollapsible::maximizeAction
private

Definition at line 129 of file PlotMSDataCollapsible.qo.h.

QAction casa::PlotMSDataCollapsible::minimizeAction
private

Definition at line 128 of file PlotMSDataCollapsible.qo.h.

int casa::PlotMSDataCollapsible::minimumSize
private

Definition at line 134 of file PlotMSDataCollapsible.qo.h.

QLineEdit* casa::PlotMSDataCollapsible::nameLabel
private

Definition at line 136 of file PlotMSDataCollapsible.qo.h.

PlotMSPlotTab* casa::PlotMSDataCollapsible::plotTab
private

Definition at line 137 of file PlotMSDataCollapsible.qo.h.

const int casa::PlotMSDataCollapsible::PMS_SIZE_COLLAPSED
private

Definition at line 131 of file PlotMSDataCollapsible.qo.h.

const int casa::PlotMSDataCollapsible::PMS_SIZE_EXPANDED
private

Definition at line 132 of file PlotMSDataCollapsible.qo.h.

const int casa::PlotMSDataCollapsible::PMS_SIZE_WIDTH
private

Definition at line 133 of file PlotMSDataCollapsible.qo.h.

Ui::PlotMSDataCollapsibleClass casa::PlotMSDataCollapsible::ui
private

Definition at line 138 of file PlotMSDataCollapsible.qo.h.


The documentation for this class was generated from the following file: