25 TabbedWidget(parent,
"StreamPropertiesWidget",
"Stream Properties"),
28 this->setToolTip(
"Set properties on a tracked 2D/3D stream");
29 bool connectToActiveImage =
false;
30 ActiveDataPtr activeData = patientModelService->getActiveData();
35 this->
addTab(mTransferFunctionWidget.get(), QString(
"Transfer Functions"));
36 this->
addTab(mShadingWidget.get(),
"Shading");
38 connect(mSelectStream.get(), &
Property::changed,
this, &StreamPropertiesWidget::streamSelectedSlot);
41 void StreamPropertiesWidget::streamSelectedSlot()
46 mTrackedStream = mSelectStream->getTrackedStream();
57 void StreamPropertiesWidget::streamingSlot(
bool isStreaming)
60 mTransferFunctionWidget->imageChangedSlot(image);
61 mShadingWidget->imageChangedSlot(image);
63 if(isStreaming && mTrackedStream)
67 void StreamPropertiesWidget::firstFrame()
69 ImagePtr image = mTrackedStream->getChangingImage();
73 mTransferFunctionWidget->imageChangedSlot(image);
74 mShadingWidget->imageChangedSlot(image);