Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
74c75b4e
Commit
74c75b4e
authored
Nov 01, 2011
by
David Gobbi
Browse files
ENH: Add HasImage and GetImages methods to vtkImageStack.
parent
4f5f7073
Changes
2
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkImageStack.cxx
View file @
74c75b4e
...
...
@@ -73,6 +73,12 @@ void vtkImageStack::RemoveImage(vtkImageSlice *prop)
}
}
//----------------------------------------------------------------------------
int
vtkImageStack
::
HasImage
(
vtkImageSlice
*
prop
)
{
return
this
->
Images
->
IsItemPresent
(
prop
);
}
//----------------------------------------------------------------------------
void
vtkImageStack
::
GetImages
(
vtkPropCollection
*
vc
)
{
...
...
Rendering/vtkImageStack.h
View file @
74c75b4e
...
...
@@ -44,13 +44,23 @@ public:
static
vtkImageStack
*
New
();
// Description:
// Add an image to the stack.
// Add an image to the stack. If the image is already present, then
// this method will do nothing.
void
AddImage
(
vtkImageSlice
*
prop
);
// Description:
// Remove an image from the stack.
// Remove an image from the stack. If the image is not present, then
// this method will do nothing.
void
RemoveImage
(
vtkImageSlice
*
prop
);
// Description:
// Check if an image is present. The returned value is one or zero.
int
HasImage
(
vtkImageSlice
*
prop
);
// Description:
// Get the list of images as a vtkImageSliceCollection.
vtkImageSliceCollection
*
GetImages
()
{
return
this
->
Images
;
}
// Description:
// Set the active layer number. This is the layer that will be
// used for picking and interaction.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment