Browse Source

Add ctkVTKSliceView::cornerAnnotation convenienent method

Jean-Christophe Fillion-Robin 14 years ago
parent
commit
bc8f751ac6

+ 7 - 0
Libs/Visualization/VTK/Widgets/ctkVTKSliceView.cpp

@@ -188,6 +188,13 @@ QString ctkVTKSliceView::cornerAnnotationText()const
 }
 
 //----------------------------------------------------------------------------
+vtkCornerAnnotation * ctkVTKSliceView::cornerAnnotation()const
+{
+  Q_D(const ctkVTKSliceView);
+  return d->LightBoxRendererManager->GetCornerAnnotation();
+}
+
+//----------------------------------------------------------------------------
 void ctkVTKSliceView::setCornerAnnotationText(const QString& text)
 {
   Q_D(ctkVTKSliceView);

+ 5 - 0
Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h

@@ -82,6 +82,11 @@ public:
   /// \sa setCornerAnnotationText();
   QString cornerAnnotationText()const;
 
+  /// Get corner annotation actor
+  /// This is the corner annotation associated with all renderers managed
+  /// by the lightBoxManager
+  /// \sa vtkLightBoxRendererManager::GetCornerAnnotation()
+  vtkCornerAnnotation * cornerAnnotation()const;
   /// Get background color
   /// \sa setBackgroundColor();
   QColor backgroundColor()const;