37 #include "boost/bind.hpp"
38 #include "boost/function.hpp"
43 #include <vtkRenderWindow.h>
44 #include <vtkRenderer.h>
45 #include <vtkImageData.h>
110 #ifndef CX_VTK_OPENGL2
122 view->getRenderer()->GetActiveCamera()->SetClippingRange(1, 2000);
123 if (!view->getRenderWindow()->GetStereoCapableWindow())
124 view->getRenderWindow()->StereoCapableWindowOn();
129 QString index = QString::number(startIndex);
130 QColor background =
settings()->
value(
"backgroundColor").value<QColor>();
131 mView->setBackgroundColor(background);
133 view->getRenderer()->GetActiveCamera()->SetParallelProjection(
false);
134 connect(
settings(), SIGNAL(valueChangedFor(QString)),
this, SLOT(settingsChangedSlot(QString)));
136 this->initializeMultiVolume3DRepProducer();
139 mLandmarkRep->setGraphicsSize(
settings()->value(
"View3D/sphereRadius").toDouble());
140 mLandmarkRep->setLabelSize(
settings()->value(
"View3D/labelSize").toDouble());
144 connect(mPickerRep.get(), SIGNAL(pointPicked(
Vector3D)),
this, SLOT(pickerRepPointPickedSlot(
Vector3D)));
146 mPickerRep->setSphereRadius(
settings()->value(
"View3D/sphereRadius").toDouble());
147 mPickerRep->setEnabled(
false);
148 mView->addRep(mPickerRep);
149 connect(
mServices->tracking().get(), SIGNAL(activeToolChanged(
const QString&)),
this, SLOT(activeToolChangedSlot()));
150 this->activeToolChangedSlot();
154 mPlaneTypeText->addText(QColor(Qt::green),
"3D",
Vector3D(0.98, 0.02, 0.0));
155 mView->addRep(mPlaneTypeText);
159 mDataNameText->addText(QColor(Qt::green),
"not initialized",
Vector3D(0.02, 0.02, 0.0));
160 mView->addRep(mDataNameText);
163 this->updateMetricNamesRep();
167 this->toolsAvailableSlot();
170 this->settingsChangedSlot(
"View3D/annotationModel");
171 this->settingsChangedSlot(
"View3D/annotationModelSize");
172 mView->addRep(mAnnotationMarker);
176 connect(
settings(), SIGNAL(valueChangedFor(QString)),
this, SLOT(globalConfigurationFileChangedSlot(QString)));
179 this->setStereoEyeAngle(
settings()->value(
"View3D/eyeAngle").toDouble());
182 if(
settings()->value(
"View3D/depthPeeling").toBool())
183 this->setTranslucentRenderingToDepthPeeling(
settings()->value(
"View3D/depthPeeling").toBool());
193 mMultiVolume3DRepProducer->removeRepsFromView();
197 void ViewWrapper3D::initializeMultiVolume3DRepProducer()
200 reportError(
"Missing View in initializeMultiVolume3DRepProducer");
202 if (!mMultiVolume3DRepProducer)
205 connect(mMultiVolume3DRepProducer.get(), SIGNAL(imagesChanged()),
this, SLOT(updateView()));
206 mMultiVolume3DRepProducer->setView(mView);
209 mMultiVolume3DRepProducer->setMaxRenderSize(
settings()->value(
"View3D/maxRenderSize").toInt());
210 mMultiVolume3DRepProducer->setVisualizerType(
settings()->value(
"View3D/ImageRender3DVisualizer").toString());
213 void ViewWrapper3D::settingsChangedSlot(QString key)
215 if (key ==
"backgroundColor")
217 QColor background =
settings()->
value(
"backgroundColor").value<QColor>();
218 mView->setBackgroundColor(background);
220 if (( key==
"View3D/ImageRender3DVisualizer" )||( key==
"View3D/maxRenderSize" ))
222 this->initializeMultiVolume3DRepProducer();
224 if (key ==
"View/showDataText")
228 if ((key ==
"View3D/annotationModelSize" )||( key ==
"View3D/annotationModel"))
230 QString annotationFile =
settings()->
value(
"View3D/annotationModel").toString();
232 mAnnotationMarker->setSize(
settings()->value(
"View3D/annotationModelSize").toDouble());
234 if (key ==
"showManualTool")
236 this->toolsAvailableSlot();
238 if ((key ==
"View3D/sphereRadius" )
239 ||( key ==
"View3D/labelSize" )
240 ||( key ==
"View/showLabels")
241 ||( key ==
"View/showMetricNamesInCorner"))
243 for (RepMap::iterator iter = mDataReps.begin(); iter != mDataReps.end(); ++iter)
245 this->readDataRepSettings(iter->second);
248 this->updateMetricNamesRep();
250 this->toolsAvailableSlot();
251 mLandmarkRep->setGraphicsSize(
settings()->value(
"View3D/sphereRadius").toDouble());
252 mLandmarkRep->setLabelSize(
settings()->value(
"View3D/labelSize").toDouble());
254 if (key ==
"View3D/depthPeeling")
255 this->setTranslucentRenderingToDepthPeeling(
settings()->value(
"View3D/depthPeeling").toBool());
258 void ViewWrapper3D::updateMetricNamesRep()
260 bool enabled =
settings()->
value(
"View/showMetricNamesInCorner").value<
bool>();
267 mView->addRep(mMetricNames);
275 mView->removeRep(mMetricNames);
276 mMetricNames.reset();
280 void ViewWrapper3D::pickerRepPointPickedSlot(
Vector3D p_r)
286 void ViewWrapper3D::pickerRepDataPickedSlot(QString uid)
291 void ViewWrapper3D::appendToContextMenu(QMenu& contextMenu)
293 QAction* slicePlanesAction = NULL;
294 QAction* fillSlicePlanesAction = NULL;
295 if (mSlicePlanes3DRep)
297 slicePlanesAction =
new QAction(
"Show Slice Planes", &contextMenu);
298 slicePlanesAction->setCheckable(
true);
299 slicePlanesAction->setChecked(mSlicePlanes3DRep->getProxy()->getVisible());
300 connect(slicePlanesAction, SIGNAL(triggered(
bool)),
this, SLOT(showSlicePlanesActionSlot(
bool)));
302 fillSlicePlanesAction =
new QAction(
"Fill Slice Planes", &contextMenu);
303 fillSlicePlanesAction->setCheckable(
true);
304 fillSlicePlanesAction->setEnabled(mSlicePlanes3DRep->getProxy()->getVisible());
305 fillSlicePlanesAction->setChecked(mSlicePlanes3DRep->getProxy()->getDrawPlanes());
306 connect(fillSlicePlanesAction, SIGNAL(triggered(
bool)),
this, SLOT(fillSlicePlanesActionSlot(
bool)));
309 QAction* resetCameraAction =
new QAction(
"Reset Camera (r)", &contextMenu);
310 connect(resetCameraAction, SIGNAL(triggered()),
this, SLOT(resetCameraActionSlot()));
312 QAction* centerImageAction =
new QAction(
"Center to image", &contextMenu);
313 connect(centerImageAction, SIGNAL(triggered()),
this, SLOT(centerImageActionSlot()));
315 QAction* centerToolAction =
new QAction(
"Center to tool", &contextMenu);
316 connect(centerToolAction, SIGNAL(triggered()),
this, SLOT(centerToolActionSlot()));
318 QAction* showAxesAction =
new QAction(
"Show Coordinate Axes", &contextMenu);
319 showAxesAction->setCheckable(
true);
320 showAxesAction->setChecked(mShowAxes);
321 connect(showAxesAction, SIGNAL(triggered(
bool)),
this, SLOT(showAxesActionSlot(
bool)));
323 QAction* showManualTool =
new QAction(
"Show Manual Tool", &contextMenu);
324 showManualTool->setCheckable(
true);
325 showManualTool->setChecked(
settings()->value(
"showManualTool").toBool());
326 connect(showManualTool, SIGNAL(triggered(
bool)),
this, SLOT(showManualToolSlot(
bool)));
328 QAction* showOrientation =
new QAction(
"Show Orientation", &contextMenu);
329 showOrientation->setCheckable(
true);
330 showOrientation->setChecked(mAnnotationMarker->getVisible());
331 connect(showOrientation, SIGNAL(triggered(
bool)),
this, SLOT(showOrientationSlot(
bool)));
333 QAction* showToolPath =
new QAction(
"Show Tool Path", &contextMenu);
334 showToolPath->setCheckable(
true);
335 showToolPath->setChecked(
settings()->value(
"showToolPath").toBool());
336 connect(showToolPath, SIGNAL(triggered(
bool)),
this, SLOT(showToolPathSlot(
bool)));
338 QMenu* show3DSlicesMenu =
new QMenu(
"Show 3D slices");
341 QMenu* showSlicesMenu =
new QMenu(
"Slice Type", &contextMenu);
342 this->createSlicesActions(showSlicesMenu);
344 QAction* showRefTool =
new QAction(
"Show Reference Tool", &contextMenu);
345 showRefTool->setDisabled(
true);
346 showRefTool->setCheckable(
true);
350 showRefTool->setText(
"Show " + refTool->getName());
351 showRefTool->setEnabled(
true);
352 showRefTool->setChecked(RepContainer(mView->getReps()).findFirst<ToolRep3D>(refTool) ?
true :
false);
353 connect(showRefTool, SIGNAL(toggled(
bool)),
this, SLOT(showRefToolSlot(
bool)));
356 contextMenu.addSeparator();
357 contextMenu.addMenu(show3DSlicesMenu);
358 contextMenu.addMenu(showSlicesMenu);
359 contextMenu.addSeparator();
360 contextMenu.addAction(resetCameraAction);
361 contextMenu.addAction(centerImageAction);
362 contextMenu.addAction(centerToolAction);
363 contextMenu.addAction(showAxesAction);
364 contextMenu.addAction(showOrientation);
365 contextMenu.addSeparator();
366 contextMenu.addAction(showManualTool);
367 contextMenu.addAction(showRefTool);
369 contextMenu.addAction(showToolPath);
370 contextMenu.addSeparator();
371 if (slicePlanesAction)
372 contextMenu.addAction(slicePlanesAction);
373 if (fillSlicePlanesAction)
374 contextMenu.addAction(fillSlicePlanesAction);
377 void ViewWrapper3D::createSlicesActions(QWidget* parent)
380 this->createSlicesAction(PlaneTypeCollection(
ptAXIAL), parent);
381 this->createSlicesAction(PlaneTypeCollection(
ptCORONAL), parent);
382 this->createSlicesAction(PlaneTypeCollection(
ptSAGITTAL), parent);
383 this->createSlicesAction(PlaneTypeCollection(
ptANYPLANE), parent);
384 this->createSlicesAction(PlaneTypeCollection(
ptRADIALPLANE), parent);
385 this->createSlicesAction(PlaneTypeCollection(
ptSIDEPLANE), parent);
388 QAction* ViewWrapper3D::createSlicesAction(PlaneTypeCollection planes, QWidget* parent)
390 QString title = planes.toString();
391 QString active =
mGroupData->getSliceDefinitions().toString();
393 QAction* action =
new QAction(title, parent);
394 connect(action, SIGNAL(triggered()),
this, SLOT(showSlices()));
395 action->setData(title);
396 action->setCheckable(
true);
397 action->setChecked(active == title);
399 parent->addAction(action);
403 void ViewWrapper3D::showSlices()
405 QAction* action =
dynamic_cast<QAction*
>(sender());
411 if (!action->isChecked())
412 mGroupData->setSliceDefinitions(PlaneTypeCollection());
423 mView->getRenderer()->SetActiveCamera(
mGroupData->getCamera3D()->getCamera());
426 this->setStereoEyeAngle(
settings()->value(
"View3D/eyeAngle").toDouble());
427 this->optionChangedSlot();
431 void ViewWrapper3D::showToolPathSlot(
bool checked)
437 if (activeRep3D->getTracer()->isRunning())
439 activeRep3D->getTracer()->stop();
440 activeRep3D->getTracer()->clear();
444 activeRep3D->getTracer()->start();
451 void ViewWrapper3D::showAxesActionSlot(
bool checked)
453 if (mShowAxes == checked)
459 for (
unsigned i=0; i<mAxis.size(); ++i)
460 mView->removeRep(mAxis[i]->mRep);
469 axis.reset(
new AxisConnector(CoordinateSystem(
csREF),
mServices->spaceProvider()));
470 axis->mRep->setAxisLength(0.12);
471 axis->mRep->setShowAxesLabels(
true);
472 axis->mRep->setCaption(
"ref",
Vector3D(1, 0, 0));
473 axis->mRep->setFontSize(0.03);
474 mAxis.push_back(axis);
477 std::vector<DataPtr> data =
mGroupData->getData();
478 for (
unsigned i = 0; i < data.size(); ++i)
480 axis.reset(
new AxisConnector(CoordinateSystem(
csDATA, data[i]->getUid()),
mServices->spaceProvider()));
481 axis->mRep->setAxisLength(0.08);
482 axis->mRep->setShowAxesLabels(
false);
483 axis->mRep->setCaption(data[i]->getName(),
Vector3D(1, 0, 0));
484 axis->mRep->setFontSize(0.03);
485 mAxis.push_back(axis);
490 TrackingService::ToolMap::iterator iter;
491 for (iter = tools.begin(); iter != tools.end(); ++iter)
495 axis.reset(
new AxisConnector(CoordinateSystem(
csTOOL, tool->getUid()),
mServices->spaceProvider()));
496 axis->mRep->setAxisLength(0.08);
497 axis->mRep->setShowAxesLabels(
false);
498 axis->mRep->setCaption(
"t",
Vector3D(0.7, 1, 0.7));
499 axis->mRep->setFontSize(0.03);
500 axis->connectTo(tool);
503 mAxis.push_back(axis);
505 axis.reset(
new AxisConnector(CoordinateSystem(
csSENSOR, tool->getUid()),
mServices->spaceProvider()));
506 axis->mRep->setAxisLength(0.05);
507 axis->mRep->setShowAxesLabels(
false);
508 axis->mRep->setCaption(
"s",
Vector3D(1, 1, 0));
509 axis->mRep->setFontSize(0.03);
510 axis->connectTo(tool);
511 axis->mergeWith(mToolListener);
512 mAxis.push_back(axis);
515 for (
unsigned i=0; i<mAxis.size(); ++i)
516 mView->addRep(mAxis[i]->mRep);
520 void ViewWrapper3D::showManualToolSlot(
bool visible)
525 void ViewWrapper3D::showOrientationSlot(
bool visible)
531 void ViewWrapper3D::resetCameraActionSlot()
533 mView->getRenderer()->ResetCamera();
535 this->setStereoEyeAngle(
settings()->value(
"View3D/eyeAngle").toDouble());
541 camera3D->setView(mView);
546 void ViewWrapper3D::centerImageActionSlot()
552 void ViewWrapper3D::centerToolActionSlot()
555 nav->centerToTooltip();
558 void ViewWrapper3D::showSlicePlanesActionSlot(
bool checked)
560 if (!mSlicePlanes3DRep)
562 mSlicePlanes3DRep->getProxy()->setVisible(checked);
566 void ViewWrapper3D::fillSlicePlanesActionSlot(
bool checked)
568 if (!mSlicePlanes3DRep)
570 mSlicePlanes3DRep->getProxy()->setDrawPlanes(checked);
579 this->addVolumeDataRep(data);
581 this->removeVolumeDataRep(uid);
583 this->updateSlices();
588 void ViewWrapper3D::addVolumeDataRep(
DataPtr data)
595 mMultiVolume3DRepProducer->addImage(image);
599 if (!mDataReps.count(data->getUid()))
601 RepPtr rep = this->createDataRep3D(data);
604 mDataReps[data->getUid()] = rep;
611 void ViewWrapper3D::removeVolumeDataRep(QString uid)
613 mMultiVolume3DRepProducer->removeImage(uid);
614 if (mDataReps.count(uid))
616 mView->removeRep(mDataReps[uid]);
617 mDataReps.erase(uid);
626 if (boost::dynamic_pointer_cast<Mesh>(data))
629 rep->setMesh(boost::dynamic_pointer_cast<Mesh>(data));
632 else if (boost::dynamic_pointer_cast<TrackedStream>(data))
634 TrackedStreamPtr trackedStream = boost::dynamic_pointer_cast<TrackedStream>(data);
635 return this->createTrackedStreamRep(trackedStream);
649 if(!trackedStream->hasVideo())
656 if(trackedStream->is3D())
659 rep->setTrackedStream(trackedStream);
662 else if (trackedStream->is2D())
665 rep->setTrackedStream(trackedStream);
670 reportWarning(
"ViewWrapper3D::createDataRep3D. TrackedStream is not 2D or 3D");
679 if (boost::dynamic_pointer_cast<PointMetric>(data))
681 else if (boost::dynamic_pointer_cast<FrameMetric>(data))
683 else if (boost::dynamic_pointer_cast<ToolMetric>(data))
685 else if (boost::dynamic_pointer_cast<DistanceMetric>(data))
687 else if (boost::dynamic_pointer_cast<AngleMetric>(data))
689 else if (boost::dynamic_pointer_cast<PlaneMetric>(data))
691 else if (boost::dynamic_pointer_cast<DonutMetric>(data))
693 else if (boost::dynamic_pointer_cast<SphereMetric>(data))
698 this->readDataRepSettings(rep);
699 rep->setDataMetric(boost::dynamic_pointer_cast<DataMetric>(data));
707 void ViewWrapper3D::readDataRepSettings(
RepPtr rep)
713 val->setGraphicsSize(
settings()->value(
"View3D/sphereRadius").toDouble());
714 val->setShowLabel(
settings()->value(
"View/showLabels").toBool());
715 val->setLabelSize(
settings()->value(
"View3D/labelSize").toDouble());
716 val->setShowAnnotation(!
settings()->value(
"View/showMetricNamesInCorner").toBool());
719 void ViewWrapper3D::updateView()
722 bool show =
settings()->
value(
"View/showDataText").value<
bool>();
728 mDataNameText->setText(0, text);
729 mDataNameText->setFontSize(std::max(12, 22 - 2 * text.size()));
731 this->updateMetricNamesRep();
733 mAnnotationMarker->setVisible(
settings()->value(
"View/showOrientationAnnotation").value<bool>());
736 void ViewWrapper3D::activeImageChangedSlot(QString uid)
744 if (!std::count(images.begin(), images.end(), image))
748 void ViewWrapper3D::showRefToolSlot(
bool checked)
753 ToolRep3DPtr refRep = RepContainer(mView->getReps()).findFirst<ToolRep3D>(refTool);
757 refRep->setTool(refTool);
761 mView->addRep(refRep);
764 mView->removeRep(refRep);
768 void ViewWrapper3D::updateSlices()
770 #ifndef CX_VTK_OPENGL2
772 mView->removeRep(mSlices3DRep);
783 std::vector<PLANE_TYPE> planes =
mGroupData->getSliceDefinitions().get();
786 #ifndef CX_VTK_OPENGL2
788 for (
unsigned i=0; i<planes.size(); ++i)
789 mSlices3DRep->addPlane(planes[i],
mServices->patient());
791 mSlices3DRep->setImages(images);
792 mSlices3DRep->setTool(
mServices->tracking()->getActiveTool());
793 mView->addRep(mSlices3DRep);
802 void ViewWrapper3D::activeToolChangedSlot()
805 mPickerRep->setTool(activeTool);
806 #ifndef CX_VTK_OPENGL2
808 mSlices3DRep->setTool(activeTool);
812 void ViewWrapper3D::toolsAvailableSlot()
814 std::vector<ToolRep3DPtr> reps = RepContainer::findReps<ToolRep3D>(mView->getReps());
817 TrackingService::ToolMap::iterator iter;
818 for (iter = tools.begin(); iter != tools.end(); ++iter)
824 ToolRep3DPtr toolRep = RepContainer(mView->getReps()).findFirst<ToolRep3D>(tool);
826 std::vector<ToolRep3DPtr>::iterator oldRep = std::find(reps.begin(), reps.end(), toolRep);
827 if (oldRep!=reps.end())
833 mView->removeRep(toolRep);
842 toolRep->getTracer()->start();
845 toolRep->setSphereRadius(
settings()->value(
"View3D/sphereRadius").toDouble());
846 toolRep->setSphereRadiusInNormalizedViewport(
true);
848 toolRep->setTool(tool);
849 toolRep->setOffsetPointVisibleAtZeroOffset(
true);
850 mView->addRep(toolRep);
854 for (
unsigned i=0; i<reps.size(); ++i)
856 mView->removeRep(reps[i]);
860 void ViewWrapper3D::optionChangedSlot()
862 ViewGroupData::Options options =
mGroupData->getOptions();
864 this->showLandmarks(options.mShowLandmarks);
865 this->showPointPickerProbe(options.mShowPointPickerProbe);
866 mPickerRep->setGlyph(options.mPickerGlyph);
868 this->updateSlices();
871 void ViewWrapper3D::showLandmarks(
bool on)
873 if (mLandmarkRep->isConnectedToView(mView) == on)
878 mView->addRep(mLandmarkRep);
882 mView->removeRep(mLandmarkRep);
886 void ViewWrapper3D::showPointPickerProbe(
bool on)
888 mPickerRep->setEnabled(on);
894 mSlicePlanes3DRep->setProxy(proxy);
895 mSlicePlanes3DRep->setDynamicLabelSize(
true);
897 mSlicePlanes3DRep->getProxy()->setVisible(show);
899 mView->addRep(mSlicePlanes3DRep);
908 mView->getRenderWindow()->SetStereoTypeToCrystalEyes();
911 mView->getRenderWindow()->SetStereoTypeToInterlaced();
914 mView->getRenderWindow()->SetStereoTypeToDresden();
917 mView->getRenderWindow()->SetStereoTypeToRedBlue();
922 void ViewWrapper3D::globalConfigurationFileChangedSlot(QString key)
924 if (key ==
"View3D/stereoType")
928 else if (key ==
"View3D/eyeAngle")
930 this->setStereoEyeAngle(
settings()->value(
"View3D/eyeAngle").toDouble());
934 void ViewWrapper3D::setStereoEyeAngle(
double angle)
936 mView->getRenderer()->GetActiveCamera()->SetEyeAngle(angle);
939 void ViewWrapper3D::setTranslucentRenderingToDepthPeeling(
bool setDepthPeeling)
949 reportWarning(
"GPU do not support depth peeling. Rendering of translucent surfaces is not supported");
960 report(
"Set GPU depth peeling");
bool SetupEnvironmentForDepthPeeling(vtkSmartPointer< vtkRenderWindow > renderWindow, vtkSmartPointer< vtkRenderer > renderer, int maxNoOfPeels, double occlusionRatio)
static DataViewProperties createSlice3D()
static LandmarkRepPtr New(PatientModelServicePtr dataManager, const QString &uid="")
virtual void dataViewPropertiesChangedSlot(QString uid)
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
ptCORONAL
a slice seen from the front of the patient
void reportError(QString msg)
static DonutMetricRepPtr New(const QString &uid="")
static RepManager * getInstance()
get the only instance of this class
boost::shared_ptr< class SlicePlanesProxy > SlicePlanesProxyPtr
boost::shared_ptr< class Stream2DRep3D > Stream2DRep3DPtr
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
boost::shared_ptr< class VisServices > VisServicesPtr
virtual ViewPtr getView()
csSENSOR
a tools sensor space (s)
void setStereoType(int type)
static SlicePlanes3DRepPtr New(const QString &uid="")
boost::shared_ptr< class Image > ImagePtr
Superclass for ViewWrappers.
boost::shared_ptr< REP > getCachedRep(QString uid="")
virtual void setSlicePlanesProxy(SlicePlanesProxyPtr proxy)
csREF
the data reference space (r) using LPS (left-posterior-superior) coordinates.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
static PlaneMetricRepPtr New(const QString &uid="")
boost::shared_ptr< class StreamRep3D > StreamRep3DPtr
ptAXIAL
a slice seen from the top of the patient
static AngleMetricRepPtr New(const QString &uid="")
boost::shared_ptr< class DataMetricRep > DataMetricRepPtr
Class for display of an orientation annotation cube in 3D.
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class Navigation > NavigationPtr
static DataViewProperties create3D()
static Stream2DRep3DPtr New(SpaceProviderPtr spaceProvider, const QString &uid="")
void setValue(const QString &key, const QVariant &value)
virtual void setViewGroup(ViewGroupDataPtr group)
boost::shared_ptr< class Data > DataPtr
static MetricNamesRepPtr New(const QString &uid="")
static QString findConfigFolder(QString pathRelativeToConfigRoot, QString alternativeAbsolutePath="")
void streamChanged(QString uid)
ptSAGITTAL
a slice seen from the side of the patient
static PlaneTypeCollection fromString(QString input, PlaneTypeCollection defVal=PlaneTypeCollection())
void reportWarning(QString msg)
static FrameMetricRepPtr New(const QString &uid="")
ViewGroupDataPtr mGroupData
static QString findConfigFilePath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath="")
static GeometricRepPtr New(const QString &uid="")
virtual void setViewGroup(ViewGroupDataPtr group)
Settings * settings()
Shortcut for accessing the settings instance.
std::map< QString, ToolPtr > ToolMap
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
boost::shared_ptr< class AxisConnector > AxisConnectorPtr
ptRADIALPLANE
y-rotated 90* relative to anyplane (bird's view)
boost::shared_ptr< class CameraControl > CameraControlPtr
bool TurnOffDepthPeeling(vtkSmartPointer< vtkRenderWindow > renderWindow, vtkSmartPointer< vtkRenderer > renderer)
Turn off depth peeling.
QStringList getAllDataNames(DataViewProperties properties) const
static PointMetricRepPtr New(const QString &uid="")
static DisplayTextRepPtr New(const QString &uid="")
boost::shared_ptr< class SpaceListener > SpaceListenerPtr
static StreamRep3DPtr New(SpaceProviderPtr spaceProvider, PatientModelServicePtr patientModelService, const QString &uid="")
static PickerRepPtr New(PatientModelServicePtr dataManager, const QString &uid="")
for creating new instances
DataViewPropertiesInteractorPtr mShow3DSlicesInteractor
boost::shared_ptr< class ToolRep3D > ToolRep3DPtr
ptANYPLANE
a plane aligned with the tool base plane
ViewWrapper3D(int startIndex, ViewPtr view, VisServicesPtr services)
bool IsDepthPeelingSupported(vtkSmartPointer< vtkRenderWindow > renderWindow, vtkSmartPointer< vtkRenderer > renderer, bool doItOffScreen)
void connectContextMenu(ViewPtr view)
boost::shared_ptr< class Rep > RepPtr
static Slices3DRepPtr New(const QString &uid)
static DistanceMetricRepPtr New(const QString &uid="")
static SphereMetricRepPtr New(const QString &uid="")
ptSIDEPLANE
z-rotated 90* relative to anyplane (dual anyplane)
void activeImageChanged(const QString &uId)
boost::shared_ptr< class GeometricRep > GeometricRepPtr
boost::shared_ptr< class Tool > ToolPtr