19 #include <itkCommand.h> 77 QPalette palette = QPalette();
83 if (colorProp.IsNull())
90 pen.setColor(QColor(color[0], color[1], color[2], 255));
91 pen.setStyle(Qt::SolidLine);
92 pen.setCapStyle(Qt::FlatCap);
93 pen.setJoinStyle(Qt::MiterJoin);
102 if (prop.IsNotNull())
109 typedef itk::SimpleMemberCommand<QmitkScalarBarOverlay> MemberCommandType;
110 MemberCommandType::Pointer propModifiedCommand;
111 propModifiedCommand = MemberCommandType::New();
113 m_ObserverTag = prop->AddObserver(itk::ModifiedEvent(), propModifiedCommand);
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.
~QmitkScalarBarOverlay() override
Default Destructor.
QWidget * m_Widget
internal QWidget representing the overlay
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
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)
QSize GetNeededSize() override
void GetProperties(mitk::PropertyList::Pointer)
internal helper class to determine text-properties
const char * m_Id
ID of the overlay.