84 mPatientModelService(patientModelService)
90 void DoublePropertyActiveImageBase::activeImageChanged()
114 return mImage->getLookupTable2D()->getWindow();
118 mImage->getLookupTable2D()->setWindow(val);
124 double range =
mImage->getRange();
133 return mImage->getLookupTable2D()->getLevel();
137 mImage->getLookupTable2D()->setLevel(val);
144 double max =
mImage->getMax();
153 mPatientModelService(patientModelService)
167 retval <<
"<no real time source>";
168 std::map<QString, VideoSourcePtr>::iterator it = streams.begin();
169 for (; it !=streams.end(); ++it)
178 return "<no real time source>";
206 return videoService()->getActiveVideoSource()->getUid();
211 std::vector<VideoSourcePtr> sources =
videoService()->getVideoSources();
213 for (
unsigned i=0; i<sources.size(); ++i)
214 retval << sources[i]->
getUid();
220 return "Select the active video source.";
231 mValueName(
"Select Real Time Source")
234 this->setDefaultSlot();
244 if(mRTSource && (mRTSource->getUid() == value))
254 mRTSource = rtSource;
264 return "<no real time source>";
265 return mRTSource->getUid();
270 return "Select a real time source";
283 void StringPropertySelectRTSource::setDefaultSlot()
286 std::map<QString, VideoSourcePtr>::iterator it = streams.begin();
287 if(it != streams.end())
300 mPatientModelService(patientModelService)
322 return "Parent Frame";
329 mData->get_rMd_History()->addParentSpace(value);
353 for (std::map<QString, DataPtr>::iterator iter=allData.begin(); iter!=allData.end(); ++iter)
355 if (
mData && (
mData->getUid() == iter->first))
384 mData->get_rMd_History()->setParentSpace(value);
405 mData->setName(value);
412 return mData->getName();
443 return mData->getUid();
458 mPatientModelService(patientModelService)
487 mData->setModality(value);
495 return mData->getModality();
510 retval <<
mData->getModality();
511 retval <<
"CT" <<
"MR" <<
"US";
512 return QStringList::fromSet(QSet<QString>::fromList(retval));
520 mPatientModelService(patientModelService)
549 mData->setImageType(value);
557 return mData->getImageType();
573 retval <<
mData->getImageType();
574 if (
mData->getModality()==
"CT")
576 if (
mData->getModality()==
"MR")
577 retval <<
"T1" <<
"T2" <<
"ANGIO";
578 if (
mData->getModality()==
"US")
579 retval <<
"B-Mode" <<
"Angio";
581 return QStringList::fromSet(QSet<QString>::fromList(retval));
QString qstring_cast(const T &val)
StringPropertyParentFrame(PatientModelServicePtr patientModelService)
virtual QString getDisplayName() const
name of data entity. Used for display to user.
VideoSourcePtr getRTSource()
virtual void setValueInternal(double val)
virtual QStringList getValueRange() const
StringPropertyDataNameEditable()
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual QString getValue() const
get the data value.
void setValueName(const QString name)
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual DoubleRange getValueRange() const
virtual QString getValue() const
get the data value.
virtual ~StringPropertyDataModality()
virtual bool setValue(const QString &value)
set the data value.
void dataAddedOrRemoved()
StringPropertyDataModality(PatientModelServicePtr patientModelService)
virtual bool setValue(const QString &value)
set the data value.
void propertiesChanged()
emitted when one of the metadata properties (uid, name etc) changes
void streaming(bool on)
emitted when streaming started/stopped
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
void transformChanged()
emitted when transform is changed
Utility class for describing a bounded numeric range.
boost::shared_ptr< class Image > ImagePtr
void setData(ImagePtr data)
virtual bool setValue(const QString &value)
set the data value.
virtual bool setValue(const QString &value)
set the data value.
virtual double getValueInternal() const =0
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
StringPropertySelectRTSourceBase(PatientModelServicePtr patientModelService)
void transferFunctionsChanged()
virtual bool setValue(const QString &value)
set the data value.
virtual void setValueInternal(double val)=0
virtual QString convertInternal2Display(QString internal)
range of value. Use if data is constrained to a set.
void setData(ImagePtr data)
virtual bool setValue(const QString &value)
set the data value.
boost::shared_ptr< class Data > DataPtr
virtual double getValueInternal() const
Adapter that selects the parent frame of the given Data.
virtual ~StringPropertyParentFrame()
StringPropertySelectRTSource(PatientModelServicePtr patientModelService)
StringPropertyDataUidEditable()
virtual QStringList getValueRange() const
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual QString getValue() const
get the data value.
virtual double getValueInternal() const
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class VideoSource > VideoSourcePtr
virtual QString getValue() const
get the data value.
PatientModelServicePtr mPatientModelService
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual void setData(DataPtr data)
virtual QString getDisplayName() const
name of data entity. Used for display to user.
PatientModelServicePtr mPatientModelService
void changed()
emit when the underlying data value is changed: The user interface will be updated.
StringPropertyActiveVideoSource()
Base class for all Properties that selects a real time source.
virtual QString getValue() const
get the data value.
virtual QStringList getValueRange() const
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
cxLogicManager_EXPORT VideoServicePtr videoService()
virtual double getValue() const
get the data value.
StringPropertyImageType(PatientModelServicePtr patientModelService)
void setData(DataPtr data)
virtual QString getUid() const
virtual QString getValue() const
get the data value.
static ActiveImageProxyPtr New(PatientModelServicePtr patientModelService)
PatientModelServicePtr mPatientModelService
PatientModelServicePtr mPatientModelService
cxLogicManager_EXPORT TrackingServicePtr trackingService()
virtual ~StringPropertyImageType()
virtual QString convertInternal2Display(QString internal)
range of value. Use if data is constrained to a set.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual bool setValue(double val)
set the data value.
StringPropertySetParentFrame(PatientModelServicePtr patientModelService)
DoublePropertyActiveImageBase(PatientModelServicePtr patientModelService)
virtual QStringList getValueRange() const
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual bool setValue(const QString &value)
set the data value.
void activeImageChanged(const QString &uid)
The original image changed signal from DataManager.
virtual QStringList getValueRange() const
virtual ~StringPropertySelectRTSourceBase()
virtual void setData(DataPtr data)
void activeVideoSourceChanged()
ActiveImageProxyPtr mActiveImageProxy
virtual DoubleRange getValueRange() const
virtual void setValueInternal(double val)
PatientModelServicePtr mPatientModelService
virtual bool setValue(const QString &value)
set the data value.
virtual QString getValue() const
get the data value.