Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Baseclass of Annotation layouters An AbstractAnnotationRenderer can be implemented to control a set of Annotation by means of position and size. More...
#include <mitkAbstractAnnotationRenderer.h>
Public Types | |
typedef us::ServiceTracker< Annotation > | Superclass |
![]() | |
typedef Annotation | ServiceType |
The type of the service being tracked. More... | |
typedef TrackedTypeTraits< Annotation,Annotation * > ::TrackedType | T |
The type of the tracked object. More... | |
typedef ServiceReference< Annotation > | ServiceReferenceType |
typedef std::map< ServiceReference< Annotation >, T > | TrackingMap |
Public Member Functions | |
AbstractAnnotationRenderer (const std::string &rendererID, const std::string &arID) | |
~AbstractAnnotationRenderer () override | |
virtual destructor in order to derive from this class More... | |
const std::string | GetID () const |
const std::string | GetRendererID () const |
void | CurrentBaseRendererChanged () |
virtual void | OnRenderWindowModified () |
void | RemoveAllAnnotation () |
void | Update () |
![]() | |
~ServiceTracker () override | |
ServiceTracker (ModuleContext *context, const ServiceReferenceType &reference, ServiceTrackerCustomizer< Annotation, T > *customizer=nullptr) | |
ServiceTracker (ModuleContext *context, const std::string &clazz, ServiceTrackerCustomizer< Annotation, T > *customizer=0) | |
ServiceTracker (ModuleContext *context, const LDAPFilter &filter, ServiceTrackerCustomizer< Annotation, T > *customizer=nullptr) | |
ServiceTracker (ModuleContext *context, ServiceTrackerCustomizer< Annotation, T > *customizer=nullptr) | |
virtual void | Open () |
virtual void | Close () |
virtual T | WaitForService (unsigned long timeoutMillis=0) |
virtual std::vector< ServiceReferenceType > | GetServiceReferences () const |
virtual ServiceReferenceType | GetServiceReference () const |
virtual T | GetService (const ServiceReferenceType &reference) const |
virtual T | GetService () const |
virtual std::vector< T > | GetServices () const |
virtual void | Remove (const ServiceReferenceType &reference) |
virtual int | Size () const |
virtual int | GetTrackingCount () const |
virtual void | GetTracked (TrackingMap &tracked) const |
virtual bool | IsEmpty () const |
Static Public Attributes | |
static const std::string | US_INTERFACE_NAME |
static const std::string | US_PROPKEY_ID |
static const std::string | US_PROPKEY_RENDERER_ID |
Protected Member Functions | |
BaseRenderer * | GetCurrentBaseRenderer () |
![]() | |
T | AddingService (const ServiceReferenceType &reference) override |
void | ModifiedService (const ServiceReferenceType &reference, T service) override |
void | RemovedService (const ServiceReferenceType &reference, T service) override |
![]() | |
virtual | ~ServiceTrackerCustomizer () |
Additional Inherited Members | |
![]() | |
typedef S | ServiceType |
typedef T | TrackedType |
typedef ServiceReference< ServiceType > | ServiceReferenceType |
Baseclass of Annotation layouters An AbstractAnnotationRenderer can be implemented to control a set of Annotation by means of position and size.
Definition at line 31 of file mitkAbstractAnnotationRenderer.h.
Definition at line 34 of file mitkAbstractAnnotationRenderer.h.
mitk::AbstractAnnotationRenderer::AbstractAnnotationRenderer | ( | const std::string & | rendererID, |
const std::string & | arID | ||
) |
Definition at line 25 of file mitkAbstractAnnotationRenderer.cpp.
References us::ServiceTracker< Annotation >::Open().
|
override |
virtual destructor in order to derive from this class
Definition at line 35 of file mitkAbstractAnnotationRenderer.cpp.
void mitk::AbstractAnnotationRenderer::CurrentBaseRendererChanged | ( | ) |
Definition at line 37 of file mitkAbstractAnnotationRenderer.cpp.
References GetCurrentBaseRenderer(), and us::ServiceTracker< Annotation >::GetServices().
|
protected |
Definition at line 103 of file mitkAbstractAnnotationRenderer.cpp.
References mitk::BaseRenderer::GetByName(), and GetRendererID().
Referenced by CurrentBaseRendererChanged(), GetID(), RemoveAllAnnotation(), and Update().
const std::string mitk::AbstractAnnotationRenderer::GetID | ( | ) | const |
Definition at line 72 of file mitkAbstractAnnotationRenderer.cpp.
References us::ServiceTracker< Annotation >::AddingService(), mitk::Annotation::AddToBaseRenderer(), and GetCurrentBaseRenderer().
Referenced by mitk::AnnotationUtils::RegisterAnnotationRenderer().
const std::string mitk::AbstractAnnotationRenderer::GetRendererID | ( | ) | const |
Definition at line 36 of file mitkAbstractAnnotationRenderer.cpp.
Referenced by GetCurrentBaseRenderer(), and mitk::AnnotationUtils::RegisterAnnotationRenderer().
|
inlinevirtual |
Reimplemented in mitk::LayoutAnnotationRenderer.
Definition at line 45 of file mitkAbstractAnnotationRenderer.h.
References Update().
void mitk::AbstractAnnotationRenderer::RemoveAllAnnotation | ( | ) |
Definition at line 49 of file mitkAbstractAnnotationRenderer.cpp.
References GetCurrentBaseRenderer(), and us::ServiceTracker< Annotation >::GetServices().
void mitk::AbstractAnnotationRenderer::Update | ( | ) |
Definition at line 61 of file mitkAbstractAnnotationRenderer.cpp.
References GetCurrentBaseRenderer(), and us::ServiceTracker< Annotation >::GetServices().
|
static |
Definition at line 49 of file mitkAbstractAnnotationRenderer.h.
Referenced by mitk::AnnotationUtils::GetAnnotationRenderer().
|
static |
Definition at line 50 of file mitkAbstractAnnotationRenderer.h.
Referenced by mitk::AnnotationUtils::GetAnnotationRenderer(), and mitk::AnnotationUtils::RegisterAnnotationRenderer().
|
static |
Definition at line 51 of file mitkAbstractAnnotationRenderer.h.
Referenced by mitk::AnnotationUtils::GetAnnotationRenderer(), and mitk::AnnotationUtils::RegisterAnnotationRenderer().