13 #include <QVBoxLayout> 41 BaseWidget(parent,
"mesh_glyphs_widget",
"Glyphs"),
42 mPatientModelService(patientModelService),
43 mViewService(viewService),
44 mMeshSelector(meshSelector)
57 if (mMesh == mMeshSelector->getData())
62 disconnect(mGlyphVisualizationCheckBox, SIGNAL(toggled(
bool)), mMesh.get(), SLOT(setShowGlyph(
bool)));
63 disconnect(mMesh.get(), SIGNAL(meshChanged()),
this, SLOT(
meshChangedSlot()));
66 mMesh = boost::dynamic_pointer_cast<
Mesh>(mMeshSelector->getData());
68 mGlyphOrientationArrayAdapter->setData(mMesh);
69 mGlyphColorArrayAdapter->setData(mMesh);
70 mGlyphColorLUTAdapter->setData(mMesh);
77 mGlyphVisualizationCheckBox->setChecked(mMesh->showGlyph());
78 mGlyphVisualizationCheckBox->setEnabled(mMesh->hasGlyph());
80 connect(mGlyphVisualizationCheckBox, SIGNAL(toggled(
bool)), mMesh.get(), SLOT(setShowGlyph(
bool)));
82 connect(mMesh.get(), SIGNAL(meshChanged()),
this, SLOT(
meshChangedSlot()));
89 mGlyphVisualizationCheckBox->setChecked(mMesh->showGlyph());
90 mGlyphVisualizationCheckBox->setEnabled(mMesh->hasGlyph());
93 void MeshGlyphsWidget::addWidgets()
95 QVBoxLayout* toptopLayout =
new QVBoxLayout(
this);
96 QGridLayout* gridLayout =
new QGridLayout;
97 gridLayout->setMargin(0);
98 toptopLayout->addLayout(gridLayout);
105 mGlyphVisualizationCheckBox =
new QCheckBox(
"Enable glyph visualization");
106 mGlyphVisualizationCheckBox->setToolTip(
"Enable glyph visualization");
107 gridLayout->addWidget(mGlyphVisualizationCheckBox, row++,0);
111 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.