modCalcVlsr::modCalcVlsr(QWidget *parentSplit) : QFrame(parentSplit), velocityFlag(0) { setupUi(this); RA->setDegType(false); Date->setDateTime( KStarsDateTime::currentDateTime().dateTime() ); initGeo(); VLSR->setValidator( new QDoubleValidator( VLSR ) ); VHelio->setValidator( new QDoubleValidator( VHelio ) ); VGeo->setValidator( new QDoubleValidator( VGeo ) ); VTopo->setValidator( new QDoubleValidator( VTopo ) ); // signals and slots connections connect(Date, SIGNAL( dateTimeChanged( const QDateTime & ) ), this, SLOT( slotCompute() ) ); connect(NowButton, SIGNAL( clicked() ), this, SLOT( slotNow() ) ); connect(LocationButton, SIGNAL( clicked() ), this, SLOT( slotLocation() ) ); connect(ObjectButton, SIGNAL( clicked() ), this, SLOT( slotFindObject() ) ); connect(RA, SIGNAL( editingFinished() ), this, SLOT( slotCompute() ) ); connect(Dec, SIGNAL( editingFinished() ), this, SLOT( slotCompute() ) ); connect(VLSR, SIGNAL( editingFinished() ), this, SLOT( slotCompute() ) ); connect(VHelio, SIGNAL( editingFinished() ), this, SLOT( slotCompute() ) ); connect(VGeo, SIGNAL( editingFinished() ), this, SLOT( slotCompute() ) ); connect(VTopo, SIGNAL( editingFinished() ), this, SLOT( slotCompute() ) ); connect(RunButtonBatch, SIGNAL(clicked()), this, SLOT(slotRunBatch())); show(); }
modCalcAzel::modCalcAzel(QWidget *parentSplit, const char *name) : modCalcAzelDlg (parentSplit,name) { showCurrentDateTime(); initGeo(); showLongLat(); horInputCoords = FALSE; raBox->setDegType(FALSE); show(); }
QuadPrimitive::QuadPrimitive() { m_center = { 0.0f, 0.0f, 0.0f }; m_localX = { 0.0f, 0.0f, 0.0f }; m_localX = { 0.0f, 0.0f, 0.0f }; m_unitLength = { 0.0f, 0.0f }; m_height = 0.0f; m_width = 0.0f; m_vertexArray = new osg::Vec3Array(4); _colors = new osg::Vec4Array(1); _root = new osg::Geode(); initGeo(); initOutLine(); }
modCalcDayLength::modCalcDayLength(QWidget *parentSplit) : QFrame(parentSplit) { setupUi(this); showCurrentDate(); initGeo(); slotComputeAlmanac(); connect( Date, SIGNAL(dateChanged(const QDate&)), this, SLOT(slotComputeAlmanac() ) ); connect( Location, SIGNAL( clicked() ), this, SLOT( slotLocation() ) ); connect( LocationBatch, SIGNAL( clicked() ), this, SLOT( slotLocationBatch() ) ); connect( InputFileBatch, SIGNAL(urlSelected(const QUrl&)), this, SLOT(slotCheckFiles()) ); connect( OutputFileBatch, SIGNAL(urlSelected(const QUrl&)), this, SLOT(slotCheckFiles()) ); connect( RunButtonBatch, SIGNAL(clicked()), this, SLOT(slotRunBatch()) ); connect( ViewButtonBatch, SIGNAL(clicked()), this, SLOT(slotViewBatch()) ); RunButtonBatch->setEnabled( false ); ViewButtonBatch->setEnabled( false ); show(); }
/// @param parameters A filename containing the .sim file. void BioSim::Simulation::init(const std::string ¶meters) { param_reader_.read(parameters); // reads file & sets values try { toolbox::randomGen(randseed); } catch ( std::logic_error &e) { // fixes a quasi-bug in the RandomGenereator class, required for multiple simulations srand(randseed); } if (_cells != std::string("")) { initGeo(_cells,_geography); } else if (_cellSpec != std::string("")) { initGeoSpec(_cellSpec,_geography); } else { throw std::runtime_error("Malformed .sim file: No valid cell spec."); } // All genera are added to a single array for genus creation. genera.push_back(_prey); genera.push_back(_pred); std::list<std::string>::iterator iter = genera.begin(); while (iter != genera.end()) { initSpecies(*iter); iter++; } // Reads and vivifies populæ from .pop files. iter = populae.begin(); while (iter != populae.end()) { readPopulation(*iter); iter++; } createOutputDir(); openReport_dat(); }
modCalcDayLength::modCalcDayLength(QWidget *parentSplit, const char *name) : modCalcDayLengthDlg(parentSplit,name) { showCurrentDate(); initGeo(); show(); }