/usr/include/vtk-7.1/vtkImageStack.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImageStack.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkImageStack
* @brief manages a stack of composited images
*
* vtkImageStack manages the compositing of a set of images. Each image
* is assigned a layer number through its property object, and it is
* this layer number that determines the compositing order: images with
* a higher layer number are drawn over top of images with a lower layer
* number. The image stack has a SetActiveLayer method for controlling
* which layer to use for interaction and picking.
* @par Thanks:
* Thanks to David Gobbi at the Seaman Family MR Centre and Dept. of Clinical
* Neurosciences, Foothills Medical Centre, Calgary, for providing this class.
* @sa
* vtkImageMapper3D vtkImageProperty vtkProp3D
*/
#ifndef vtkImageStack_h
#define vtkImageStack_h
#include "vtkRenderingImageModule.h" // For export macro
#include "vtkImageSlice.h"
class vtkImageSliceCollection;
class vtkImageProperty;
class vtkImageMapper3D;
class vtkCollection;
class VTKRENDERINGIMAGE_EXPORT vtkImageStack : public vtkImageSlice
{
public:
vtkTypeMacro(vtkImageStack,vtkImageSlice);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkImageStack *New();
/**
* Add an image to the stack. If the image is already present, then
* this method will do nothing.
*/
void AddImage(vtkImageSlice *prop);
/**
* Remove an image from the stack. If the image is not present, then
* this method will do nothing.
*/
void RemoveImage(vtkImageSlice *prop);
/**
* Check if an image is present. The returned value is one or zero.
*/
int HasImage(vtkImageSlice *prop);
/**
* Get the list of images as a vtkImageSliceCollection.
*/
vtkImageSliceCollection *GetImages() { return this->Images; }
//@{
/**
* Set the active layer number. This is the layer that will be
* used for picking and interaction.
*/
vtkSetMacro(ActiveLayer, int);
int GetActiveLayer() { return this->ActiveLayer; }
//@}
/**
* Get the active image. This will be the topmost image whose
* LayerNumber is the ActiveLayer. If no image matches, then NULL
* will be returned.
*/
vtkImageSlice *GetActiveImage();
/**
* Get the mapper for the currently active image.
*/
vtkImageMapper3D *GetMapper();
/**
* Get the property for the currently active image.
*/
vtkImageProperty *GetProperty();
//@{
/**
* Get the combined bounds of all of the images.
*/
double *GetBounds();
void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
//@}
/**
* Return the max MTime of all the images.
*/
vtkMTimeType GetMTime();
/**
* Return the mtime of anything that would cause the rendered image to
* appear differently. Usually this involves checking the mtime of the
* prop plus anything else it depends on such as properties, mappers,
* etc.
*/
vtkMTimeType GetRedrawMTime();
/**
* Shallow copy of this prop. Overloads the virtual vtkProp method.
*/
void ShallowCopy(vtkProp *prop);
/**
* For some exporters and other other operations we must be
* able to collect all the actors, volumes, and images. These
* methods are used in that process.
*/
void GetImages(vtkPropCollection *);
//@{
/**
* Support the standard render methods.
*/
virtual int RenderOverlay(vtkViewport *viewport);
virtual int RenderOpaqueGeometry(vtkViewport *viewport);
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
//@}
/**
* Does this prop have some translucent polygonal geometry?
*/
virtual int HasTranslucentPolygonalGeometry();
/**
* Release any resources held by this prop.
*/
void ReleaseGraphicsResources(vtkWindow *win);
//@{
/**
* Methods for traversing the stack as if it was an assembly.
* The traversal only gives the view prop for the active layer.
*/
void InitPathTraversal();
vtkAssemblyPath *GetNextPath();
int GetNumberOfPaths();
//@}
/**
* WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
* DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
* Used to construct assembly paths and perform part traversal.
*/
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
protected:
vtkImageStack();
~vtkImageStack();
void SetMapper(vtkImageMapper3D *mapper);
void SetProperty(vtkImageProperty *property);
void PokeMatrices(vtkMatrix4x4 *matrix);
void UpdatePaths();
vtkTimeStamp PathTime;
vtkCollection *ImageMatrices;
vtkImageSliceCollection *Images;
int ActiveLayer;
private:
vtkImageStack(const vtkImageStack&) VTK_DELETE_FUNCTION;
void operator=(const vtkImageStack&) VTK_DELETE_FUNCTION;
};
#endif
|