//! Copy Constructor DVRLookupTable::DVRLookupTable(const DVRLookupTable &source) : Inherited(source) { #if 0 commonConstructor(); #endif }
Camera::Camera(const QCameraInfo& camera_info, const QString& stylesheet, QWidget* parent) : OpenableWidget(parent) { commonConstructor(stylesheet); setCamera(camera_info); }
KstRMatrix::KstRMatrix(KstDataSourcePtr file, const QString &field, const QString &tag, int xStart, int yStart, int xNumSteps, int yNumSteps, bool doAve, bool doSkip, int skip) : KstMatrix(tag, 0L, 1, 1, 0,0,1,1) { commonConstructor(file, field, xStart, yStart, xNumSteps, yNumSteps, doAve, doSkip, skip); }
Questionnaire::Questionnaire(CamcopsApp& app, std::initializer_list<QuPagePtr> pages) : m_app(app), m_pages(pages) { commonConstructor(); }
GcmZTildeInfo<S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>::GcmZTildeInfo( const GpmsaComputerModelOptions& gcmOptionsObj, const GcmJointInfo <S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>& jj, const GcmZInfo <S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>& z, const GcmSimulationTildeInfo<S_V,S_M,P_V,P_M,Q_V,Q_M>& st, const GcmJointTildeInfo <S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>& jt) : m_env (jj.m_env), m_Cmat_tilde (m_env,jj.m_omega_space.map(),z.m_Cmat_rank), m_z_tilde_space (m_env, "z_tilde_", z.m_Cmat_rank, NULL), m_Lmat (m_env,m_z_tilde_space.map(),z.m_Cmat->numCols()), m_Lmat_t (m_env,z.m_z_space.map(),z.m_Cmat_rank), m_Zvec_tilde_hat (m_z_tilde_space.zeroVector()), m_tmp_Smat_z_tilde (m_z_tilde_space.zeroVector()), m_tmp_Smat_extra_tilde (m_z_tilde_space.zeroVector()), m_tmp_Smat_z_tilde_hat (m_z_tilde_space.zeroVector()), m_tmp_Smat_z_tilde_hat_inv(m_z_tilde_space.zeroVector()) { if (m_env.subDisplayFile()) { *m_env.subDisplayFile() << "Entering GcmZTildeInfo<S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>::constructor(2)" << std::endl; } std::set<unsigned int> tmpSet; tmpSet.insert(m_env.subId()); m_Cmat_tilde.cwSet(0.); m_Cmat_tilde.cwSet( 0, 0,jt.m_Bmat_tilde); m_Cmat_tilde.cwSet(jt.m_Bmat_tilde.numRowsLocal(),jt.m_Bmat_tilde.numCols(),st.m_Kmat_tilde); if (gcmOptionsObj.m_ov.m_dataOutputAllowedSet.find(m_env.subId()) != gcmOptionsObj.m_ov.m_dataOutputAllowedSet.end()) { m_Cmat_tilde.subWriteContents("Ctilde", "Ctilde1", "m", tmpSet); } if (m_env.subDisplayFile()) { *m_env.subDisplayFile() << "In GcmZTildeInfo<S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>::constructor(2)" << ": m_Cmat_tilde formed (1)" << std::endl; } m_Lmat.cwSet(0.); m_Lmat.cwSet( 0, 0,jt.m_Lbmat); m_Lmat.cwSet(jt.m_Lbmat.numRowsLocal(),jt.m_Lbmat.numCols(),st.m_Lkmat); if (gcmOptionsObj.m_ov.m_dataOutputAllowedSet.find(m_env.subId()) != gcmOptionsObj.m_ov.m_dataOutputAllowedSet.end()) { m_Lmat.subWriteContents("Lmat", "Lmat", "m", tmpSet); } if (m_env.subDisplayFile()) { *m_env.subDisplayFile() << "In GcmZTildeInfo<S_V,S_M,D_V,D_M,P_V,P_M,Q_V,Q_M>::constructor(2)" << ": m_Lmat_tilde formed" << std::endl; } m_Zvec_tilde_hat.cwSetConcatenated(jt.m_Zvec_tilde_hat_vu,st.m_Zvec_tilde_hat_w); // todo_rrr: not in constructor(1) ??? commonConstructor(z); }
void DataMatrix::changeFrames(int xStart, int yStart, int xNumSteps, int yNumSteps, bool doAve, bool doSkip, int skip, double minX, double minY, double stepX, double stepY) { KstWriteLocker l(this); commonConstructor(file(), _field, xStart, yStart, xNumSteps, yNumSteps, doAve, doSkip, skip, minX, minY, stepX, stepY); }
KstEquation::KstEquation(const QString& in_tag, const QString& equation, KstVectorPtr xvector, bool do_interp) : KstDataObject() { _doInterp = do_interp; //false; _xInVector = _inputVectors.insert(XINVECTOR, xvector); commonConstructor(in_tag, equation); setDirty(); }
///////////////////////////////////////////////////////////////////////////////////////////// // InformedStateSampler InformedStateSampler::InformedStateSampler(const ProblemDefinitionPtr &probDefn, unsigned int maxNumberCalls, const GetCurrentCostFunc &costFunc) : StateSampler(probDefn->getSpaceInformation()->getStateSpace().get()) { // Call the common constructor with the default informed sampler commonConstructor( costFunc, probDefn->getOptimizationObjective()->allocInformedStateSampler(probDefn, maxNumberCalls)); }
InformedStateSampler::InformedStateSampler(const ProblemDefinitionPtr &probDefn, const GetCurrentCostFunc &costFunc, const InformedSamplerPtr &infSampler) : StateSampler(probDefn->getSpaceInformation()->getStateSpace().get()) { // Call the common constructor with the given informed sampler commonConstructor(costFunc, infSampler); }
QuBoolean::QuBoolean(const QString &filename, const QSize &size, FieldRefPtr fieldref) : m_image_filename(filename), m_image_size(size), m_fieldref(fieldref) { commonConstructor(); }
KstCSD::KstCSD(const QDomElement &e) : KstDataObject(e) { QString in_tag; QString vecName; QString in_vectorUnits, in_rateUnits; KstVectorPtr in_V; double in_freq = 60.0; bool in_average = true; int in_averageLength = 8; bool in_removeMean = true; bool in_apodize = true; ApodizeFunction in_apodizeFxn = WindowOriginal; int in_windowSize = 5000; double in_gaussianSigma = 3.0; PSDType in_outputType = PSDAmplitudeSpectralDensity; QDomNode n = e.firstChild(); while (!n.isNull()) { QDomElement e = n.toElement(); // try to convert the node to an element. if (!e.isNull()) { // the node was really an element. if (e.tagName() == "tag") { in_tag = e.text(); } else if (e.tagName() == "vectag") { vecName = e.text(); } else if (e.tagName() == "sampRate") { in_freq = e.text().toDouble(); } else if (e.tagName() == "average") { in_average = (e.text() != "0"); } else if (e.tagName() == "fftLen") { in_averageLength = e.text().toInt(); } else if (e.tagName() == "apodize") { in_apodize = (e.text() != "0"); } else if (e.tagName() == "apodizefxn") { in_apodizeFxn = ApodizeFunction(e.text().toInt()); } else if (e.tagName() == "gaussiansigma") { in_gaussianSigma = e.text().toDouble(); } else if (e.tagName() == "removeMean") { in_removeMean = (e.text() != "0"); } else if (e.tagName() == "windowsize") { in_windowSize = e.text().toInt(); } else if (e.tagName() == "vectorunits") { in_vectorUnits = e.text(); } else if (e.tagName() == "rateunits") { in_rateUnits = e.text(); } else if (e.tagName() == "output") { in_outputType = (PSDType)e.text().toInt(); } } n = n.nextSibling(); } _inputVectorLoadQueue.append(qMakePair(INVECTOR, vecName)); commonConstructor(in_tag, in_V, in_freq, in_average, in_removeMean, in_apodize, in_apodizeFxn, in_windowSize, in_averageLength, in_gaussianSigma, in_vectorUnits, in_rateUnits, in_outputType, vecName); }
KstHistogram::KstHistogram(const QString &in_tag, KstVectorPtr in_V, double xmin_in, double xmax_in, int in_n_bins, KstHsNormType in_norm_mode, const QColor &in_color) : KstBaseCurve() { commonConstructor(in_tag, in_V, xmin_in, xmax_in, in_n_bins, in_norm_mode, in_color); }
KstHistogram::KstHistogram(const QString &in_tag, KstVectorPtr in_V, double xmin_in, double xmax_in, int in_n_bins, KstHsNormType in_norm_mode) : KstDataObject() { setRealTimeAutoBin(false); commonConstructor(in_tag, in_V, xmin_in, xmax_in, in_n_bins, in_norm_mode); }
SpaceShipPartWindow::SpaceShipPartWindow(Ogre::Vector3 pos, Ogre::Quaternion ori, Ogre::SceneNode *parent, Ogre::String name, ENGINE *engine) : SpaceShipPartWall(pos, ori, parent, name, engine, mType) { mEntity = engine->getSceneMgr()->createEntity(name + "Mesh", "Window.mesh"); mEntity->getUserObjectBindings().setUserAny("Entity", Ogre::Any((Entity *)this)); mNode->attachObject(mEntity); commonConstructor(); }
void KstRMatrix::change(KstDataSourcePtr file, const QString &field, const QString &tag, int xStart, int yStart, int xNumSteps, int yNumSteps, bool doAve, bool doSkip, int skip) { setTagName(tag); commonConstructor(file, field, xStart, yStart, xNumSteps, yNumSteps, doAve, doSkip, skip); setDirty(true); }
EventMonitorEntry::EventMonitorEntry(const QString &in_tag) : KstDataObject() { _level = KstDebug::Warning; _logKstDebug = true; _logEMail = false; _logELOG = false; commonConstructor(in_tag); setDirty(); }
Machine::Machine(int machineId, QObject *parent) : ComponentBase(parent) { edb = EnigmaDatabase::getInstance(); recMachine = MachineData().getMachine(machineId); commonConstructor(); }
void DataMatrix::change(DataSourcePtr file, const QString &field, int xStart, int yStart, int xNumSteps, int yNumSteps, bool doAve, bool doSkip, int skip, double minX, double minY, double stepX, double stepY) { KstWriteLocker l(this); commonConstructor(file, field, xStart, yStart, xNumSteps, yNumSteps, doAve, doSkip, skip, minX, minY, stepX, stepY); }
SpaceShipPartLight::SpaceShipPartLight(Ogre::Vector3 pos, Ogre::Quaternion ori, Ogre::SceneNode *parent, Ogre::StaticGeometry *staticGeometry, Ogre::String name, ENGINE *engine) : SpaceShipPart(PART_CEILMOUNT, true, pos, ori, parent, staticGeometry, name, mType, engine) { mEntity = engine->getSceneMgr()->createEntity(name + "Mesh", "Light.mesh"); mEntity->getUserObjectBindings().setUserAny("Entity", Ogre::Any((Entity *)this)); //setupInstancedMaterialToEntity(mEntity); staticGeometry->addEntity(mEntity, pos, ori); commonConstructor(); }
KstCSD::KstCSD(const QString &in_tag, KstVectorPtr in_V, double in_freq, bool in_average, bool in_removeMean, bool in_apodize, ApodizeFunction in_apodizeFxn, int in_windowSize, int in_averageLength, double in_gaussianSigma, PSDType in_outputType, const QString &in_vectorUnits, const QString &in_rateUnits) : KstDataObject() { commonConstructor(in_tag, in_V, in_freq, in_average, in_removeMean, in_apodize, in_apodizeFxn, in_windowSize, in_averageLength, in_gaussianSigma, in_vectorUnits, in_rateUnits, in_outputType, in_V->tagName()); setDirty(); }
KstHistogram::KstHistogram(QDomElement &e) : KstBaseCurve(e) { QString in_tag; KstVectorPtr in_V; QColor in_color("magenta"); double xmax_in=1, xmin_in=-1; int in_n_bins = 10; KstHsNormType in_norm_mode; setHasPoints(false); setHasLines(true); in_norm_mode = KST_HS_NUMBER; /* parse the DOM tree */ QDomNode n = e.firstChild(); while( !n.isNull() ) { QDomElement e = n.toElement(); // try to convert the node to an element. if( !e.isNull() ) { // the node was really an element. if (e.tagName() == "tag") { in_tag = e.text(); } else if (e.tagName() == "vectag") { KST::vectorList.lock().readLock(); KstVectorList::Iterator it = KST::vectorList.findTag(e.text()); if (it != KST::vectorList.end()) { in_V = *it; } KST::vectorList.lock().readUnlock(); } else if (e.tagName() == "color") { in_color.setNamedColor(e.text()); } else if (e.tagName() == "hasLines") { HasLines = (e.text() != "0"); } else if (e.tagName() == "hasPoints") { HasPoints = (e.text() != "0"); } else if (e.tagName() == "pointType") { Point.setType(e.text().toInt()); } else if (e.tagName() == "NormMode") { if (e.text()=="NUMBER") in_norm_mode = KST_HS_NUMBER; else if (e.text()=="PERCENT") in_norm_mode = KST_HS_PERCENT; else if (e.text()=="FRACTION") in_norm_mode = KST_HS_FRACTION; else if (e.text()=="MAX_ONE") in_norm_mode = KST_HS_MAX_ONE; } else if (e.tagName() == "minX") { xmin_in = e.text().toDouble(); } else if (e.tagName() == "maxX") { xmax_in = e.text().toDouble(); } else if (e.tagName() == "numBins") { in_n_bins = e.text().toInt(); } } n = n.nextSibling(); } commonConstructor(in_tag, in_V, xmin_in, xmax_in, in_n_bins, in_norm_mode, in_color); }
KstPlugin::KstPlugin(QDomElement &e) : KstDataObject(e) { QString pluginName; commonConstructor(); QDomNode n = e.firstChild(); while(!n.isNull()) { QDomElement e = n.toElement(); if(!e.isNull()) { if (e.tagName() == "tag") { setTagName(e.text()); } else if (e.tagName() == "name") { pluginName = e.text(); } else if (e.tagName() == "ivector") { _inputVectorLoadQueue.append(qMakePair(e.attribute("name"), e.text())); } else if (e.tagName() == "iscalar") { _inputScalarLoadQueue.append(qMakePair(e.attribute("name"), e.text())); } else if (e.tagName() == "ovector") { _outputVectors.insert(e.attribute("name"), new KstVector(e.text())); } else if (e.tagName() == "oscalar") { _outputScalars.insert(e.attribute("name"), new KstScalar(e.text())); } } n = n.nextSibling(); } _plugin = PluginCollection::self()->plugin(pluginName); if (!_plugin.data()) { kdWarning() << i18n("Unable to load plugin %1 for \"%2\".").arg(pluginName).arg(tagName()) << endl; // can cause nasty crashes //KMessageBox::sorry(0L, i18n("Unable to load plugin %1 for \"%2\".").arg(pluginName).arg(tagName())); } else { countScalarsAndVectors(_plugin->data()._inputs, _inScalarCnt, _inArrayCnt); const QValueList<Plugin::Data::IOValue>& otable = _plugin->data()._outputs; for (QValueList<Plugin::Data::IOValue>::ConstIterator it = otable.begin(); it != otable.end(); ++it) { if ((*it)._type == Plugin::Data::IOValue::TableType) { _outArrayCnt++; if (!_outputVectors.contains((*it)._name)) { _outputVectors.insert((*it)._name, new KstVector(tagName() + " vector - " + (*it)._name)); } } else if ((*it)._type == Plugin::Data::IOValue::FloatType) { _outScalarCnt++; if (!_outputScalars.contains((*it)._name)) { KstScalar *s = new KstScalar(tagName() + " scalar - " + (*it)._name); _outputScalars.insert((*it)._name, s); } } } } }
KstPSDCurve::KstPSDCurve(const QString &in_tag, KstVectorPtr in_V, double in_freq, int in_len, const QString &in_VUnits, const QString &in_RUnits, const QColor &in_color) : KstBaseCurve() { setHasPoints(false); setHasLines(true); commonConstructor(in_tag, in_V, in_freq, in_len, in_VUnits, in_RUnits, in_color); }
//! Constructor DVRVolume::DVRVolume(void) : Inherited ( ), drawStyleListValid(false), textureManager (this ), shadingInitialized(false) { SINFO << "DVRVolume::DVRVolume(void) this: " << this << std::endl; _extTex3D = Window::registerExtension( "GL_EXT_texture3D" ); commonConstructor(); }
KstPSD::KstPSD(const QString &in_tag, KstVectorPtr in_V, double in_freq, bool in_average, int in_averageLen, bool in_apodize, bool in_removeMean, const QString &in_VUnits, const QString &in_RUnits, ApodizeFunction in_apodizeFxn, double in_gaussianSigma, PSDType in_output) : KstDataObject() { commonConstructor(in_tag, in_V, in_freq, in_average, in_averageLen, in_apodize, in_removeMean, in_VUnits, in_RUnits, in_apodizeFxn, in_gaussianSigma, in_output, false); setDirty(); }
KstPSDCurve::KstPSDCurve(QDomElement &e) : KstBaseCurve(e) { QString in_tag; KstVectorPtr in_V; QColor in_color("blue"); double in_freq=60.0; int in_len = 12; QString in_VUnits; QString in_RUnits; setHasPoints(false); setHasLines(true); /* parse the DOM tree */ QDomNode n = e.firstChild(); while( !n.isNull() ) { QDomElement e = n.toElement(); // try to convert the node to an element. if( !e.isNull() ) { // the node was really an element. if (e.tagName() == "tag") { in_tag = e.text(); } else if (e.tagName() == "vectag") { KST::vectorList.lock().readLock(); KstVectorList::Iterator it = KST::vectorList.findTag(e.text()); if (it != KST::vectorList.end()) { in_V = *it; } KST::vectorList.lock().readUnlock(); } else if (e.tagName() == "color") { in_color.setNamedColor(e.text()); } else if (e.tagName() == "hasLines") { if (e.text() == "0") HasLines = false; else HasLines = true; } else if (e.tagName() == "hasPoints") { if (e.text() == "0") HasPoints = false; else HasPoints = true; } else if (e.tagName() == "pointType") { Point.setType(e.text().toInt()); } else if (e.tagName() == "sampRate") { in_freq = e.text().toDouble(); } else if (e.tagName() == "fftLen") { in_len = e.text().toInt(); } else if (e.tagName() == "VUnits") { in_VUnits = e.text(); } else if (e.tagName() == "RUnits") { in_RUnits = e.text(); } } n = n.nextSibling(); } commonConstructor(in_tag, in_V, in_freq, in_len, in_VUnits, in_RUnits, in_color); }
KstVCurve::KstVCurve(const QString &in_tag, KstVectorPtr in_X, KstVectorPtr in_Y, KstVectorPtr in_EX, KstVectorPtr in_EY, const QColor &in_color) : KstBaseCurve() { setHasPoints(false); setHasLines(true); commonConstructor(in_tag, in_color); VX = in_X; VY = in_Y; EX = in_EX; EY = in_EY; update(); }
//============================================================================== Error GlPipelineHandle::create( GlCommandBufferHandle& commands, std::initializer_list<GlShaderHandle> iprogs) { Array<GlShaderHandle, 6> progs; U count = 0; for(GlShaderHandle prog : iprogs) { progs[count++] = prog; } return commonConstructor(commands, &progs[0], &progs[0] + count); }
KstEquation::KstEquation(const QString& in_tag, const QString& equation, double x0, double x1, int nx) : KstDataObject() { KstVectorPtr xvector; QString vtag = KST::suggestVectorName(QString( "(%1..%2)" ).arg( x0 ).arg( x1 ) ); xvector = new KstSVector(x0, x1, nx, KstObjectTag(vtag, QStringList(in_tag))); _doInterp = false; _xInVector = _inputVectors.insert(XINVECTOR, xvector); commonConstructor(in_tag, equation); setDirty(); }
KstRMatrix::KstRMatrix(const QDomElement &e) : KstMatrix(QString::null, 0L, 1,1,0,0,1,1) { KstDataSourcePtr in_file = 0L; QString in_field; QString in_tag; int in_xStart = 0; int in_yStart = 0; int in_xNumSteps = 0; int in_yNumSteps = 1; bool in_doAve = false; bool in_doSkip = false; int in_skip = 1; /* parse the DOM tree */ QDomNode n = e.firstChild(); while (!n.isNull()) { QDomElement e = n.toElement(); if (!e.isNull()) { if (e.tagName() == "tag") { in_tag = e.text(); } else if (e.tagName() == "file") { KST::dataSourceList.lock().readLock(); in_file = *KST::dataSourceList.findFileName(e.text()); KST::dataSourceList.lock().unlock(); } else if (e.tagName() == "field") { in_field = e.text(); } else if (e.tagName() == "reqxstart") { in_xStart = e.text().toInt(); } else if (e.tagName() == "reqystart") { in_yStart = e.text().toInt(); } else if (e.tagName() == "reqnx") { in_xNumSteps = e.text().toInt(); } else if (e.tagName() == "reqny") { in_yNumSteps = e.text().toInt(); } else if (e.tagName() == "doave") { in_doAve = (e.text() != "0"); } else if (e.tagName() == "doskip") { in_doSkip = (e.text() != "0"); } else if (e.tagName() == "skip") { in_skip = e.text().toInt(); } } n = n.nextSibling(); } setTagName(in_tag); // call common constructor commonConstructor(in_file, in_field, in_xStart, in_yStart, in_xNumSteps, in_yNumSteps, in_doAve, in_doSkip, in_skip); }