23 #include <itkCommand.h>
81 QPalette palette = QPalette();
87 if (colorProp.IsNull())
94 pen.setColor(QColor(color[0], color[1], color[2], 255));
95 pen.setStyle(Qt::SolidLine);
96 pen.setCapStyle(Qt::FlatCap);
97 pen.setJoinStyle(Qt::MiterJoin);
106 if (prop.IsNotNull())
113 typedef itk::SimpleMemberCommand<QmitkScalarBarOverlay> MemberCommandType;
117 m_ObserverTag = prop->AddObserver(itk::ModifiedEvent(), propModifiedCommand);
itk::SmartPointer< Self > Pointer
void SetPen(const QPen &pen)
mitk::PropertyList::Pointer m_PropertyList
void SetupCallback(mitk::BaseProperty::Pointer prop)
void AddDropShadow(QWidget *widget)
Add drop shadow effect via QGraphicsEffect.
Abstract base class for all overlay-objects in MITK.
QmitkScalarBarOverlay(const char *id)
Default Constructor.
The ColorProperty class RGB color property.
QmitkScalarBar * m_ScalarBar
QWidget internally representing the TextOverlay.
QWidget * m_Widget
internal QWidget representing the overlay
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
virtual void GenerateData(mitk::PropertyList::Pointer) override
Setup the QLabel with overlay specific information.
mitk::BaseProperty::Pointer m_ObservedProperty
unsigned long m_ObserverTag
virtual void SetScaleFactor(double scale)
virtual ~QmitkScalarBarOverlay()
Default Destructor.
QSize GetNeededSize() override
void GetProperties(mitk::PropertyList::Pointer)
internal helper class to determine text-properties
const char * m_Id
ID of the overlay.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.