15 #include <vtkTextProperty.h>
16 #include <vtkRenderer.h>
17 #include <vtkTextMapper.h>
18 #include <vtkObjectFactory.h>
37 vtkObject* ret = vtkObjectFactory::CreateInstance(
"OrientationAnnotation");
57 this->TextActor[2]->SetPosition(5, vsize[1]/2);
58 this->TextActor[3]->SetPosition(vsize[0]/2, 7);
59 this->TextActor[0]->SetPosition(vsize[0]-7, vsize[1]/2);
60 this->TextActor[1]->SetPosition(vsize[0]/2, vsize[1]-7);
64 vtkTextProperty* tprop = this->TextMapper[2]->GetTextProperty();
65 tprop->SetJustificationToLeft();
66 tprop->SetVerticalJustificationToCentered();
68 tprop = this->TextMapper[3]->GetTextProperty();
69 tprop->SetJustificationToCentered();
70 tprop->SetVerticalJustificationToBottom();
72 tprop = this->TextMapper[0]->GetTextProperty();
73 tprop->SetJustificationToRight();
74 tprop->SetVerticalJustificationToCentered();
76 tprop = this->TextMapper[1]->GetTextProperty();
77 tprop->SetJustificationToCentered();
78 tprop->SetVerticalJustificationToTop();
89 mDataManager(dataManager)
92 connect(
mDataManager.get(), SIGNAL(clinicalApplicationChanged()),
this, SLOT(clinicalApplicationChangedSlot()));
111 void OrientationAnnotationRep::clinicalApplicationChangedSlot()
230 mOrientation->GetTextProperty()->SetColor(0.7372, 0.815, 0.6039 );