Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
7e8e7271
Commit
7e8e7271
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
BUG: method virtual for ImageLayer
parent
89a06d40
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Visualization/otbImageLayer.h
+11
-11
11 additions, 11 deletions
Code/Visualization/otbImageLayer.h
Code/Visualization/otbImageLayer.txx
+1
-1
1 addition, 1 deletion
Code/Visualization/otbImageLayer.txx
with
12 additions
and
12 deletions
Code/Visualization/otbImageLayer.h
+
11
−
11
View file @
7e8e7271
...
@@ -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
());
...
...
This diff is collapsed.
Click to expand it.
Code/Visualization/otbImageLayer.txx
+
1
−
1
View file @
7e8e7271
...
@@ -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());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment