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
const std::string &void RequestSetFontColor(int index, double red, double green, double blue)
Request to change font color.
#define igstkGetMacro(name, type)
Get built-in type.
Base class for all the IGSTK classes.
void RequestSetFontSize(int index, int fontSize)
Request to change font size.
#define igstkDeclareInputMacro(inputname)
Convenience macro for declaring Inputs to the State Machine.
void AddActors(vtkTextActor *)
Add an actor.
Display graphical representations of surgical scenes.
Add 2D annotations to the viewport.
#define igstkDeclareStateMacro(inputname)
Convenience macro for declaring States of the State Machine.
igstkStandardClassTraitsMacro(Annotation2D, Object) void RequestSetAnnotationText(int
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print the object informations in a stream.
std::vector< vtkTextActor * > ActorsListType
Type defining the container of actors.
#define igstkLoggerMacro()
Macro that defines all the standard elements related to the Logger.
void RequestAddAnnotations()
Request add annotations.
void RequestSetAnnotationsViewPort(int horizontal, int vertical)
Request to Set viewport.
friend class QView
REMOVE this when QView class is removed from the sandbox.
void DeleteActors()
Delete Actors.