34 #include <QVBoxLayout> 62 BaseWidget(parent,
"mesh_glyphs_widget",
"Glyphs"),
63 mPatientModelService(patientModelService),
64 mViewService(viewService),
65 mMeshSelector(meshSelector)
78 if (mMesh == mMeshSelector->getData())
83 disconnect(mGlyphVisualizationCheckBox, SIGNAL(toggled(
bool)), mMesh.get(), SLOT(setShowGlyph(
bool)));
84 disconnect(mMesh.get(), SIGNAL(meshChanged()),
this, SLOT(
meshChangedSlot()));
87 mMesh = boost::dynamic_pointer_cast<
Mesh>(mMeshSelector->getData());
89 mGlyphOrientationArrayAdapter->setData(mMesh);
90 mGlyphColorArrayAdapter->setData(mMesh);
91 mGlyphColorLUTAdapter->setData(mMesh);
98 mGlyphVisualizationCheckBox->setChecked(mMesh->showGlyph());
99 mGlyphVisualizationCheckBox->setEnabled(mMesh->hasGlyph());
101 connect(mGlyphVisualizationCheckBox, SIGNAL(toggled(
bool)), mMesh.get(), SLOT(setShowGlyph(
bool)));
103 connect(mMesh.get(), SIGNAL(meshChanged()),
this, SLOT(
meshChangedSlot()));
110 mGlyphVisualizationCheckBox->setChecked(mMesh->showGlyph());
111 mGlyphVisualizationCheckBox->setEnabled(mMesh->hasGlyph());
114 void MeshGlyphsWidget::addWidgets()
116 QVBoxLayout* toptopLayout =
new QVBoxLayout(
this);
117 QGridLayout* gridLayout =
new QGridLayout;
118 gridLayout->setMargin(0);
119 toptopLayout->addLayout(gridLayout);
126 mGlyphVisualizationCheckBox =
new QCheckBox(
"Enable glyph visualization");
127 mGlyphVisualizationCheckBox->setToolTip(
"Enable glyph visualization");
128 gridLayout->addWidget(mGlyphVisualizationCheckBox, row++,0);
132 toptopLayout->addStretch();
static StringPropertyGlyphLUTPtr New(PatientModelServicePtr patientModelService)
static StringPropertyGlyphColorArrayPtr New(PatientModelServicePtr patientModelService)
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
static StringPropertyGlyphOrientationArrayPtr New(PatientModelServicePtr patientModelService)
void changed()
emit when the underlying data value is changed: The user interface will be updated.
Namespace for all CustusX production code.