/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: vtkOrientationAnnotation.h,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ // .NAME vtkOrientationAnnotation - text annotation in four corners // .SECTION Description // This is an annotation object that manages four text actors / mappers // to provide annotation in the four corners of a viewport // // .SECTION See Also // vtkActor2D vtkTextMapper #ifndef __vtkOrientationAnnotation_h #define __vtkOrientationAnnotation_h #include "vtkCornerAnnotation.h" class VTK_EXPORT vtkOrientationAnnotation : public vtkCornerAnnotation { public: vtkTypeRevisionMacro(vtkOrientationAnnotation,vtkCornerAnnotation); // Description: // Instantiate object with a rectangle in normaled view coordinates // of (0.2,0.85, 0.8, 0.95). static vtkOrientationAnnotation *New(); protected: vtkOrientationAnnotation(); ~vtkOrientationAnnotation(); // Description: // Set text actor positions given a viewport size and justification virtual void SetTextActorsPosition(int vsize[2]); virtual void SetTextActorsJustification(); private: vtkOrientationAnnotation(const vtkOrientationAnnotation&); // Not implemented. void operator=(const vtkOrientationAnnotation&); // Not implemented. }; #endif