void UmlActivityObject::setType(Token & token) { UmlTypeSpec ts; if (UmlItem::setType(token, 0, ts)) set_Type(ts); }
void UmlActivityObject::setType(QCString idref) { UmlTypeSpec ts; if (UmlItem::setType(idref, 0, ts)) set_Type(ts); }
void UmlAttribute::solve(QCString idref) { UmlTypeSpec ts; if (getType(idref, ts)) set_Type(ts); else if (!FileIn::isBypassedId(idref)) UmlCom::trace("attribute : unknown type reference '" + idref + "'<br>"); }
QcepDataColumn::QcepDataColumn(QcepSettingsSaverWPtr saver, QString name, int npts) : QcepDataObject(saver, name, npts*sizeof(double)), m_NPoints(npts) { set_Type("Data Column"); resize(m_NPoints); QcepAllocator::allocate(npts*sizeof(double)); }
QcepIntegratedData::QcepIntegratedData(QcepSettingsSaverWPtr saver, QcepDoubleImageDataPtr image, int maxSize, QObject *parent) : QcepDataObject(saver, "Integrated", 2*maxSize*sizeof(double)), m_Title(saver, this, "title", "", "Integrated Data Title"), m_Image(image), m_MaxSize(maxSize), m_Size(0), m_AllocStep(1024), m_X(maxSize), m_Y(maxSize), m_cx(0), m_cy(0), m_XUnitsLabel("TTH"), m_Oversample(1) { set_Type("Integrated Data"); QcepAllocator::allocate(sizeof(double), 2, m_MaxSize); }
void UmlActivityObject::solve(int context, WrapperStr idref) { switch (context) { case 0: // type { UmlTypeSpec ts; if (getType(idref, ts)) set_Type(ts); else if (!FileIn::isBypassedId(idref)) UmlCom::trace("activity object : unknown type reference '" + idref + "'<br>"); } break; case 1: // state { QMap<QString, UmlItem *>::Iterator it = All.find(idref); if (it != All.end()) { if ((*it)->kind() == aState) set_InState((*it)->name()); } else if (!FileIn::isBypassedId(idref)) UmlCom::trace("activity object : unknown state reference '" + idref + "'<br>"); } break; default: // selection { QMap<QString, WrapperStr>::Iterator it = OpaqueDefs.find(idref); if (it != OpaqueDefs.end()) set_Selection(*it); else if (!FileIn::isBypassedId(idref)) UmlCom::trace("activity object : unknown opaque definition reference '" + idref + "'<br>"); } break; } }
QcepImageDataBase::QcepImageDataBase(QcepSettingsSaverWPtr saver, int width, int height, int size) : QcepDataObject(saver, tr("image"), size), m_Width(saver, this, "width", width, "Image Width"), m_Height(saver, this, "height", height, "Image Height"), m_DataType(saver, this, "dataType", UndefinedData, "Data Type of Image"), m_FileBase(saver, this, "fileBase", "", "File Base of Image"), m_Title(saver, this, "title", "", "Title of Image"), m_ReadoutMode(saver, this, "readoutMode", 0, "Image Readout Mode"), m_ExposureTime(saver, this, "exposureTime", 0, "Image Exposure Time"), m_SummedExposures(saver, this, "summedExposures", 0, "Summed Exposures in Image"), m_ImageSequenceNumber(saver, this, "imageSequenceNumber", -1, "Image Sequence Number"), m_ImageNumber(saver, this, "imageNumber", 0, "Image Number"), m_PhaseNumber(saver, this, "phaseNumber", -1, "Image Phase Number"), m_NPhases(saver, this, "nPhases", -1, "Number of Image Phases"), m_DateTime(saver, this, "dateTime", QDateTime::currentDateTime(), "Image Creation Date and Time"), m_TimeStamp(saver, this, "timeStamp", secondsSinceEpoch(), "Image creation time (secs after UNIX epoch)"), m_HBinning(saver, this, "hBinning", 1, "Image Horizontal Binning Factor"), m_VBinning(saver, this, "vBinning", 1, "Image Vertical Binning Factor"), m_CameraGain(saver, this, "cameraGain", 0, "Image Detector Gain"), m_Triggered(saver, this, "triggered", 0, "Triggered Flag"), m_UserComment1(saver, this,"userComment1","", "User Comment 1"), m_UserComment2(saver, this,"userComment2","", "User Comment 2"), m_UserComment3(saver, this,"userComment3","", "User Comment 3"), m_UserComment4(saver, this,"userComment4","", "User Comment 4"), m_Normalization(saver, this, "normalization", QcepDoubleList(), "Normalization Values"), m_ExtraInputs(saver, this, "extraInputs", QcepDoubleList(), "Extra Input Values"), m_Used(saver, this, "used", true, "Image Used?"), m_ImageCounter(allocCount.fetchAndAddOrdered(1)), m_Mutex(QMutex::Recursive), m_Saver(saver) { set_Type("Image"); if (qcepDebug(DEBUG_IMAGE_CONSTRUCTORS)) { printf("QcepImageDataBase::QcepImageDataBase(%p)\n", this); } QcepAllocator::allocate(size); }
QcepDataColumnScan::QcepDataColumnScan(QcepSettingsSaverWPtr sav, QString name) : QcepDataGroup(sav, name), m_NumPoints(sav, this, "numPoints", 0, "Number of points in scan") { set_Type("Data Column Scan"); }