Source
xxxxxxxxxx
void setCoordinatesAndUnits( region::Coord c, region::Units x_units, region::Units y_units, const std::string &bounding_units );
//# QtRegionState.h: region properties, populates region dock
//# Copyright (C) 2012
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id$
namespace casa {
class HistogramTab;
namespace viewer {
class Region;
class QtRegionState : public QFrame, protected Ui::QtRegionState {
Q_OBJECT
public:
// initializing the display depends upon having signals & slots connected
// which cannot happen until after the ctor of QtRegionState...
void init( );
QtRegionState( const QString &name,
QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN,
Region *region=0, QWidget *parent=0 );
~QtRegionState( );
bool statisticsIsVisible( ) {
return categories->tabText(categories->currentIndex( )) == "stats";
}
Region *region( ) {
return region_;
}
void setRegion( Region *r );
void updateCoord( );
void updateStatistics( );
void updateStatistics( std::list<std::shared_ptr<RegionInfo> > *stats );
void updateFrameInformation( int count );
void reloadStatistics( );
void updateCenters( std::list<std::shared_ptr<RegionInfo> > *centers );
void setCenterBackground(QString background);
void clearStatistics( );
void addHistogram(QWidget* histogram);
void updateStackOrder( int firstImage );
int getStackIndex() const;
std::string lineColor( ) const;
std::string centerColor( ) const;
int lineWidth( ) const {
return line_width->value( );
}
region::LineStyle lineStyle( ) const;
int markerScale( ) const {
return marker_scale->value( );
}
void setMarkerScale( int v );