69 return mData->getUid();
74 return mData->getName();
84 QStringList visible = this->
repo()->getVisibleNodeTypes();
86 bool hasData = visible.contains(this->
getType());
90 if (boost::dynamic_pointer_cast<Mesh>(mData) && !visible.contains(
"model"))
92 if (boost::dynamic_pointer_cast<Image>(mData) && !visible.contains(
"image"))
94 if (boost::dynamic_pointer_cast<DataMetric>(mData) && !visible.contains(
"metric"))
102 if (this->
repo()->getMode()==
"flat")
103 return this->
repo()->getNodeForGroup(
"data");
105 if (mData->getParentSpace().isEmpty())
115 this->
getServices()->patient()->getActiveData()->setActive(mData);
123 return mData->getIcon();
131 MeshPtr mesh = boost::dynamic_pointer_cast<
Mesh>(mData);
140 if (this->
getServices()->patient()->getActiveData()->getActive()==mData)
151 return (this->
repo()->getMode()!=
"flat");
156 this->
getServices()->patient()->removeData(mData->getUid());
163 return Qt::CheckState(0);
165 return Qt::CheckState(2);
166 return Qt::CheckState(1);
182 if (boost::dynamic_pointer_cast<Mesh>(mData))
197 if (boost::dynamic_pointer_cast<Image>(mData))
207 return new QLabel(QString(
"Data widget %1 ").arg(mData->getName()));
boost::shared_ptr< TreeNode > TreeNodePtr
virtual QVariant getFont() const
virtual QVariant getColor() const
VisServicesPtr getServices() const
static DataViewProperties createDefault()
virtual QString getName() const
boost::shared_ptr< DataMetric > DataMetricPtr
virtual QString getUid() const
virtual bool isDefaultExpanded() const
void transformChanged()
emitted when transform is changed
csREF
the data reference space (r) using LPS (left-posterior-superior) coordinates.
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
virtual QString getType() const
boost::shared_ptr< class Data > DataPtr
QWidget * createPropertiesWidget() const
DataTreeNode(TreeRepositoryWeakPtr repo, DataPtr data)
virtual void setViewGroupVisibility(int index, bool value)
boost::shared_ptr< class WidgetTypeRepository > WidgetTypeRepositoryPtr
QIcon addBackgroundColorToIcon(QIcon input, QColor color) const
Identification of a Coordinate system.
static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService)
virtual TreeNodePtr getParent() const
virtual QVariant getViewGroupVisibility(int index) const
virtual bool isVisibleNode() const
virtual QIcon getIcon() const
boost::shared_ptr< class Mesh > MeshPtr
Base class for all Data Metrics.
boost::shared_ptr< class StringPropertySelectMesh > StringPropertySelectMeshPtr
QColor getColor()
Get the color of the mesh (Values are range 0 - 255)