Skip to content
Snippets Groups Projects
Commit 5a8cc0e3 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: add a method to change the RegionGlComponent color in the ImageView

parent 97ba949b
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,8 @@ public:
/** Region gl component typedef */
typedef RegionGlComponent RegionGlComponentType;
typedef typename RegionGlComponent::ColorType ColorType;
typedef typename RegionGlComponentType::Pointer RegionGlComponentPointerType;
/**
......@@ -103,6 +105,19 @@ public:
/** Clear the widgets buffers */
void ClearBuffer();
/** Method to set the ExtractRegionGlComponent color */
void SetExtractRegionGlComponentColor(const ColorType& color)
{
m_ExtractRegionGlComponent->SetColor(color);
}
/** Method to set the ScaledExtractRegionGlComponent color */
void SetScaledExtractRegionGlComponent(const ColorType& color)
{
m_ScaledExtractRegionGlComponent->SetColor(color);
}
protected:
/** Constructor */
ImageView();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment