Skip to content
Snippets Groups Projects
Commit 7e8e7271 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: method virtual for ImageLayer

parent 89a06d40
No related branches found
No related tags found
No related merge requests found
...@@ -99,38 +99,38 @@ public: ...@@ -99,38 +99,38 @@ public:
typedef typename ExtractFilterType::Pointer ExtractFilterPointerType; typedef typename ExtractFilterType::Pointer ExtractFilterPointerType;
/** Set/Get the image */ /** Set/Get the image */
void SetImage(ImageType * img) virtual void SetImage(ImageType * img)
{ {
if(m_Image != img) if(this->m_Image != img)
{ {
m_Image = img; this-> m_Image = img;
m_ExtractFilter->SetInput(m_Image); this->m_ExtractFilter->SetInput(m_Image);
m_ScaledExtractFilter->SetInput(m_Image); this->m_ScaledExtractFilter->SetInput(m_Image);
} }
} }
itkGetObjectMacro(Image,ImageType); itkGetObjectMacro(Image,ImageType);
/** Set/Get the quicklook */ /** Set/Get the quicklook */
void SetQuicklook(ImageType * ql) virtual void SetQuicklook(ImageType * ql)
{ {
if(m_Quicklook != ql) if(this->m_Quicklook != ql)
{ {
m_Quicklook = ql; this->m_Quicklook = ql;
m_QuicklookRenderingFilter->SetInput(m_Quicklook); this->m_QuicklookRenderingFilter->SetInput(m_Quicklook);
} }
} }
itkGetObjectMacro(Quicklook,ImageType); itkGetObjectMacro(Quicklook,ImageType);
/** Get the histogram list */ /** Get the histogram list */
HistogramListPointerType GetHistogramList() virtual HistogramListPointerType GetHistogramList()
{ {
//FIXME Update condition? //FIXME Update condition?
return m_RenderingFunction->GetHistogramList(); return m_RenderingFunction->GetHistogramList();
} }
/** Set/Get the rendering function */ /** Set/Get the rendering function */
void SetRenderingFunction(RenderingFunctionType * function) virtual void SetRenderingFunction(RenderingFunctionType * function)
{ {
m_RenderingFunction = function; m_RenderingFunction = function;
m_RenderingFunction->SetListSample(this->GetListSample()); m_RenderingFunction->SetListSample(this->GetListSample());
......
...@@ -117,7 +117,7 @@ ImageLayer<TImage,TOutputImage> ...@@ -117,7 +117,7 @@ ImageLayer<TImage,TOutputImage>
{ {
itk::TimeProbe probe; itk::TimeProbe probe;
probe.Start(); probe.Start();
//std::cout<<"Extent: "<<this->GetExtent()<<" Largest: "<<m_Image->GetLargestPossibleRegion()<<" ExtractRegion: "<<this->GetExtractRegion()<<std::endl; // std::cout<<"Extent: "<<this->GetExtent()<<" Largest: "<<m_Image->GetLargestPossibleRegion()<<" ExtractRegion: "<<this->GetExtractRegion()<<std::endl;
m_ExtractRenderingFilter->GetOutput()->SetRequestedRegion(this->GetExtractRegion()); m_ExtractRenderingFilter->GetOutput()->SetRequestedRegion(this->GetExtractRegion());
m_ExtractRenderingFilter->Update(); m_ExtractRenderingFilter->Update();
this->SetRenderedExtract(m_ExtractRenderingFilter->GetOutput()); this->SetRenderedExtract(m_ExtractRenderingFilter->GetOutput());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment