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
Container Registry
Model registry
Operate
Environments
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
Main Repositories
otb
Commits
4659a89d
Commit
4659a89d
authored
17 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
new visu
parent
d8d884a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Visu/otbImageAlternateViewer.h
+30
-3
30 additions, 3 deletions
Code/Visu/otbImageAlternateViewer.h
Code/Visu/otbImageAlternateViewer.txx
+488
-164
488 additions, 164 deletions
Code/Visu/otbImageAlternateViewer.txx
with
518 additions
and
167 deletions
Code/Visu/otbImageAlternateViewer.h
+
30
−
3
View file @
4659a89d
...
...
@@ -108,6 +108,10 @@ class ITK_EXPORT ImageAlternateViewer
itkSetObjectMacro
(
Image
,
ImageType
);
itkGetObjectMacro
(
Image
,
ImageType
);
itkSetObjectMacro
(
SecondImage
,
ImageType
);
itkGetObjectMacro
(
SecondImage
,
ImageType
);
itkSetMacro
(
DisplayExtent
,
RegionType
);
itkGetMacro
(
DisplayExtent
,
RegionType
);
...
...
@@ -161,11 +165,19 @@ protected:
RegionType
GetAdditionalBufferRegion
(
unsigned
int
i
);
unsigned
char
*
CreateAdditionalBuffer
(
RegionType
region
);
unsigned
char
*
CreateAdditionalBuffer
(
RegionType
region
,
ImagePointerType
image
);
virtual
void
MergeBuffersAndFreeMemory
(
std
::
vector
<
unsigned
char
*>
bufferList
,
std
::
vector
<
RegionType
>
bufferRegionList
);
virtual
void
AdditionalRedraw
(
void
);
virtual
void
DecorationRedraw
(
void
);
virtual
void
DrawRegionBoundary
(
RegionType
&
region
);
virtual
long
IndexInOldGrid
(
PointType
point
,
PointType
oldUpperLeft
,
SpacingType
spacing
,
SizeType
size
);
RegionType
ComputeRequestedRegion
(
RegionType
&
region
);
/**PrintSelf method */
virtual
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
...
...
@@ -230,9 +242,24 @@ private:
/** Prevent messing around with simultaneous update */
bool
m_Updating
;
/** Region splitter */
SplitterPointerType
m_Splitter
;
/** Swith the drag mode */
bool
m_Drag
;
/** Count drag events */
unsigned
int
m_DragEventCounter
;
/** Remember the mouse pos in drag mode */
IndexType
m_OldMousePos
;
/** The second image */
ImagePointerType
m_SecondImage
;
/** The subwindow region */
RegionType
m_SubWindowRegion
;
/** subwindow mode switch */
bool
m_SubWindowMode
;
/** subwindow mode switch */
bool
m_SubWindowMove
;
};
}
// End namespace otb
#ifndef OTB_MANUAL_INSTANTIATION
...
...
This diff is collapsed.
Click to expand it.
Code/Visu/otbImageAlternateViewer.txx
+
488
−
164
View file @
4659a89d
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