18 #ifndef __igstkAnnotation2D_h
19 #define __igstkAnnotation2D_h
22 #pragma warning ( disable : 4786 )
24 #pragma warning ( disable : 4355 )
28 #include "vtkTextActor.h"
29 #include "vtkTextMapper.h"
30 #include "vtkTextProperty.h"
33 #include "vtkViewport.h"
64 void RequestSetAnnotationText(
int ,
const std::string & );
68 double green,
double blue );
103 virtual void PrintSelf( std::ostream& os, itk::Indent indent )
const;
111 void operator=(
const Self&);
115 std::string m_AnnotationText[4];
116 std::string m_AnnotationTextToBeAdded;
117 vtkTextActor * m_AnnotationActor[4];
118 vtkTextActor * m_ActorToBeAdded;
119 vtkTextProperty * m_TextProperty[4];
121 int m_ViewPortHorizontalSize;
122 int m_ViewPortVerticalSize;
123 int m_ViewPortHorizontalSizeToBeSet;
124 int m_ViewPortVerticalSizeToBeSet;
126 double m_FontColor[3];
127 int m_AnnotationIndexFontColorToBeChanged;
130 int m_AnnotationIndexFontSizeToBeChanged;
133 void AddActorProcessing();
134 void SetAnnotationTextProcessing();
135 void SetViewPortProcessing();
136 void AddAnnotationsProcessing();
137 void ReportInvalidAnnotationIndexProcessing();
138 void ReportInvalidRequestProcessing();
139 void ChangeTextColorProcessing();
140 void ChangeFontSizeProcessing();
143 int m_IndexForAnnotationToBeAdded;
164 #endif // __igstkAnnotation2D_h