/usr/include/vtk-6.3/vtkVolume.h is in libvtk6-dev 6.3.0+dfsg1-5.
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 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkVolume.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.
=========================================================================*/
// .NAME vtkVolume - represents a volume (data & properties) in a rendered scene
//
// .SECTION Description
// vtkVolume is used to represent a volumetric entity in a rendering scene.
// It inherits functions related to the volume's position, orientation and
// origin from vtkProp3D. The volume maintains a reference to the
// volumetric data (i.e., the volume mapper). The volume also contains a
// reference to a volume property which contains all common volume rendering
// parameters.
// .SECTION see also
// vtkAbstractVolumeMapper vtkVolumeProperty vtkProp3D
#ifndef vtkVolume_h
#define vtkVolume_h
#include "vtkRenderingCoreModule.h" // For export macro
#include "vtkProp3D.h"
class vtkRenderer;
class vtkPropCollection;
class vtkVolumeCollection;
class vtkWindow;
class vtkVolumeProperty;
class vtkAbstractVolumeMapper;
class VTKRENDERINGCORE_EXPORT vtkVolume : public vtkProp3D
{
public:
vtkTypeMacro(vtkVolume, vtkProp3D);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Creates a Volume with the following defaults: origin(0,0,0)
// position=(0,0,0) scale=1 visibility=1 pickable=1 dragable=1
// orientation=(0,0,0).
static vtkVolume *New();
// Description:
// Set/Get the volume mapper.
void SetMapper(vtkAbstractVolumeMapper *mapper);
vtkGetObjectMacro(Mapper, vtkAbstractVolumeMapper);
// Description:
// Set/Get the volume property.
void SetProperty(vtkVolumeProperty *property);
vtkVolumeProperty *GetProperty();
// Description:
// For some exporters and other other operations we must be
// able to collect all the actors or volumes. This method
// is used in that process.
void GetVolumes(vtkPropCollection *vc);
// Description:
// Update the volume rendering pipeline by updating the volume mapper
void Update();
// Description:
// Get the bounds - either all six at once
// (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
double *GetBounds();
void GetBounds(double bounds[6])
{ this->vtkProp3D::GetBounds(bounds); }
double GetMinXBound();
double GetMaxXBound();
double GetMinYBound();
double GetMaxYBound();
double GetMinZBound();
double GetMaxZBound();
// Description:
// Return the MTime also considering the property etc.
unsigned long int GetMTime();
// Description:
// 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.
unsigned long GetRedrawMTime();
// Description:
// Shallow copy of this vtkVolume. Overloads the virtual vtkProp method.
void ShallowCopy(vtkProp *prop);
//BTX
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
// Support the standard render methods.
// Depending on the mapper type, the volume may be rendered using
// this method (FRAMEBUFFER volume such as texture mapping will
// be rendered this way)
int RenderVolumetricGeometry(vtkViewport *viewport);
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// Release any graphics resources that are being consumed by this volume.
// The parameter window could be used to determine which graphic
// resources to release.
void ReleaseGraphicsResources(vtkWindow *);
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float *GetCorrectedScalarOpacityArray(int);
float *GetCorrectedScalarOpacityArray()
{ return this->GetCorrectedScalarOpacityArray(0); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float *GetScalarOpacityArray(int);
float *GetScalarOpacityArray()
{ return this->GetScalarOpacityArray(0); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float *GetGradientOpacityArray(int);
float *GetGradientOpacityArray()
{ return this->GetGradientOpacityArray(0); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float *GetGrayArray(int);
float *GetGrayArray()
{ return this->GetGrayArray(0); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float *GetRGBArray(int);
float *GetRGBArray()
{ return this->GetRGBArray(0); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float GetGradientOpacityConstant(int);
float GetGradientOpacityConstant()
{ return this->GetGradientOpacityConstant(0); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
float GetArraySize()
{ return static_cast<float>(this->ArraySize); }
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
void UpdateTransferFunctions(vtkRenderer *ren);
// Description:
// WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE
// DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS
void UpdateScalarOpacityforSampleSize(vtkRenderer *ren,
float sample_distance);
//ETX
protected:
vtkVolume();
~vtkVolume();
vtkAbstractVolumeMapper *Mapper;
vtkVolumeProperty *Property;
// The rgb transfer function array - for unsigned char data this
// is 256 elements, for short or unsigned short it is 65536 elements
// This is a sample at each scalar value of the rgb transfer
// function. A time stamp is kept to know when it needs rebuilding
float *RGBArray[VTK_MAX_VRCOMP];
vtkTimeStamp RGBArrayMTime[VTK_MAX_VRCOMP];
// The gray transfer function array - for unsigned char data this
// is 256 elements, for short or unsigned short it is 65536 elements
// This is a sample at each scalar value of the gray transfer
// function. A time stamp is kept to know when it needs rebuilding
float *GrayArray[VTK_MAX_VRCOMP];
vtkTimeStamp GrayArrayMTime[VTK_MAX_VRCOMP];
// The scalar opacity transfer function array - for unsigned char data this
// is 256 elements, for short or unsigned short it is 65536 elements
// This is a sample at each scalar value of the opacity transfer
// function. A time stamp is kept to know when it needs rebuilding
float *ScalarOpacityArray[VTK_MAX_VRCOMP];
vtkTimeStamp ScalarOpacityArrayMTime[VTK_MAX_VRCOMP];
// The corrected scalar opacity transfer function array - this is identical
// to the opacity transfer function array when the step size is 1.
// In other cases, it is corrected to reflect the new material thickness
// modelled by a step size different than 1.
float *CorrectedScalarOpacityArray[VTK_MAX_VRCOMP];
vtkTimeStamp CorrectedScalarOpacityArrayMTime[VTK_MAX_VRCOMP];
// CorrectedStepSize is the step size currently modelled by
// CorrectedArray. It is used to determine when the
// CorrectedArray needs to be updated to match SampleDistance
// in the volume mapper.
float CorrectedStepSize;
// Number of elements in the rgb, gray, and opacity transfer function arrays
int ArraySize;
// The magnitude of gradient opacity transfer function array
float GradientOpacityArray[VTK_MAX_VRCOMP][256];
float GradientOpacityConstant[VTK_MAX_VRCOMP];
vtkTimeStamp GradientOpacityArrayMTime[VTK_MAX_VRCOMP];
// Function to compute screen coverage of this volume
double ComputeScreenCoverage(vtkViewport *vp);
private:
vtkVolume(const vtkVolume&); // Not implemented.
void operator=(const vtkVolume&); // Not implemented.
};
#endif
|