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 );
void setPlaneType(PLANE_TYPE type)
ptCORONAL
a slice seen from the front of the patient
virtual ~OrientationAnnotationRep()
virtual void SetTextActorsJustification()
virtual void addRepActorsToViewRenderer(ViewPtr view)
PatientModelServicePtr mDataManager
static OrientationAnnotation * New()
void setPlaneTypeNeurology(PLANE_TYPE type)
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
cstring_cast_Placeholder cstring_cast(const T &val)
ptAXIAL
a slice seen from the top of the patient
boost::shared_ptr< class View > ViewPtr
OrientationAnnotationRep(PatientModelServicePtr dataManager)
boost::shared_ptr< class OrientationAnnotationRep > OrientationAnnotationRepPtr
ptSAGITTAL
a slice seen from the side of the patient
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Default implementation of Rep.
void setVisible(bool visible)
OrientationAnnotationPtr mOrientation
void setPlaneTypeRadiology(PLANE_TYPE type)
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
virtual void SetTextActorsPosition(int vsize[2])
static OrientationAnnotationRepPtr New(PatientModelServicePtr dataManager, const QString &uid="")
Namespace for all CustusX production code.