diff --git a/Code/Visualization/otbImageView.h b/Code/Visualization/otbImageView.h index a3bf5a3a08d07d5e88d7231274f4f08fa52af585..cb48731741a84c31cc025836eea7a793434d83cf 100644 --- a/Code/Visualization/otbImageView.h +++ b/Code/Visualization/otbImageView.h @@ -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();