Brief description of class still missing. More...
#include <SignalViewer.h>
Public Member Functions | |
void | lock () |
void | setDisplayRange (double l) |
void | setMaximumTime (double t) |
void | setSignals (SubSignalPool *subPool) |
SignalViewer (QWidget *parent) | |
void | unlock () |
~SignalViewer () |
Brief description of class still missing.
Full description of class still missing
SignalViewer::SignalViewer | ( | QWidget * | parent | ) |
Description of constructor still missing
References SciFigs::Axis::setAutoTicks(), GeopsyGui::SignalLayer::setClip(), GeopsyGui::SignalLayer::setNormalize(), SciFigs::Axis::setNumberType(), GeopsyGui::SignalLayer::setOffset(), SciFigs::Axis::setRange(), SciFigs::Axis::setReversedScale(), SciFigs::Axis::setScaleType(), SciFigs::Axis::setSizeInfo(), SciFigs::Axis::setTitle(), GeopsyGui::SignalLayer::setVariableArea(), SciFigs::Axis::setZoomEnabled(), QGpCoreTools::tr(), TRACE, SciFigs::AxisWindow::xAxis(), and SciFigs::AxisWindow::yAxis().
: AxisWindow(parent) { TRACE; _signalLayer=new SignalLayer(this); _signalLayer->setOffset(SignalLayer::VisibleOffset); _signalLayer->setClip(SignalLayer::NoClip); _signalLayer->setNormalize(SignalLayer::NormalizeVisibleAll); _signalLayer->setVariableArea(false); xAxis()->setTitle(tr( "Time" )); xAxis()->setNumberType(Number::Weeks); xAxis()->setScaleType(Scale::Linear); xAxis()->setAutoTicks(true); yAxis()->setTitle( "" ); yAxis()->setReversedScale(true); yAxis()->setZoomEnabled(false); xAxis()->setSizeInfo(15.0); yAxis()->setSizeInfo(10.0); yAxis()->setRange(0.0, 1.0); }
void SignalViewer::lock | ( | ) |
References SciFigs::GraphContentLayer::lockDelayPainting().
{ _signalLayer->lockDelayPainting(); }
void SignalViewer::setDisplayRange | ( | double | l | ) |
References SciFigs::AxisWindow::deepUpdate(), SciFigs::Axis::maximum(), SciFigs::Axis::setRange(), and SciFigs::AxisWindow::xAxis().
{ double maxTime=xAxis()->maximum(); xAxis()->setRange(maxTime-l, maxTime); deepUpdate(); }
void SignalViewer::setMaximumTime | ( | double | t | ) |
void SignalViewer::setSignals | ( | SubSignalPool * | subPool | ) |
References SciFigs::Axis::addStringLabel(), GeopsyCore::SubSignalPool::at(), GeopsyCore::SubSignalPool::count(), GeopsyCore::Signal::effectiveAmplitudeUnit(), GeopsyCore::SubSignalPool::first(), GeopsyGui::SignalLayer::minMaxY(), GeopsyCore::Signal::nameComponent(), SciFigs::Axis::removeStringLabels(), SciFigs::Axis::setAutoTicks(), SciFigs::Axis::setMajorTicks(), SciFigs::Axis::setMinorTicks(), SciFigs::Axis::setNumberType(), SciFigs::Axis::setRange(), SciFigs::Axis::setReversedScale(), SciFigs::Axis::setScaleType(), SciFigs::Axis::setTitle(), GeopsyGui::SignalLayer::subPoolUpdate(), TRACE, SciFigs::AxisWindow::update(), and SciFigs::AxisWindow::yAxis().
{ TRACE; _signalLayer->subPoolUpdate(subPool); // Adjust Y axis double ymin=0, ymax=1; _signalLayer->minMaxY(ymin, ymax); Axis& a=*yAxis(); a.setRange(ymin, ymax); switch(subPool->count()) { case 0: break; case 1: a.setTitle(subPool->first()->effectiveAmplitudeUnit()); a.setNumberType(Number::Scientific); a.setAutoTicks(true); a.setScaleType(Scale::Linear); a.removeStringLabels(); a.setReversedScale(false); break; default: a.setReversedScale(true); a.setTitle( "" ); a.setAutoTicks(false); a.setMajorTicks(1.0); a.setMinorTicks(1.0); a.setScaleType(Scale::Linear); a.removeStringLabels(); int n=subPool->count() - 1; for(int i=0; i<n; i++ ) { a.addStringLabel(subPool->at(i)->nameComponent(), false); } // Update axis... while adding the last label a.addStringLabel(subPool->at(n)->nameComponent(), true); } update(); }
void SignalViewer::unlock | ( | ) |
References SciFigs::GraphContentLayer::unlock().
{ _signalLayer->unlock(); }