VTK  9.1.0
vtkFixedPointVolumeRayCastMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFixedPointVolumeRayCastMapper.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
114#ifndef vtkFixedPointVolumeRayCastMapper_h
115#define vtkFixedPointVolumeRayCastMapper_h
116
117#include "vtkRenderingVolumeModule.h" // For export macro
118#include "vtkThreads.h" // for VTK_THREAD_RETURN_TYPE
119#include "vtkVolumeMapper.h"
120
121#define VTKKW_FP_SHIFT 15
122#define VTKKW_FPMM_SHIFT 17
123#define VTKKW_FP_MASK 0x7fff
124#define VTKKW_FP_SCALE 32767.0
125
126class vtkMatrix4x4;
127class vtkMultiThreader;
129class vtkRenderer;
130class vtkTimerLog;
131class vtkVolume;
132class vtkTransform;
133class vtkRenderWindow;
147class vtkDataArray;
148
149// Forward declaration needed for use by friend declaration below.
150VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays(void* arg);
151VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType(void* arg);
152
153class VTKRENDERINGVOLUME_EXPORT vtkFixedPointVolumeRayCastMapper : public vtkVolumeMapper
154{
155public:
158 void PrintSelf(ostream& os, vtkIndent indent) override;
159
161
166 vtkSetMacro(SampleDistance, float);
167 vtkGetMacro(SampleDistance, float);
169
171
178 vtkSetMacro(InteractiveSampleDistance, float);
179 vtkGetMacro(InteractiveSampleDistance, float);
181
183
190 vtkSetClampMacro(ImageSampleDistance, float, 0.1f, 100.0f);
191 vtkGetMacro(ImageSampleDistance, float);
193
195
199 vtkSetClampMacro(MinimumImageSampleDistance, float, 0.1f, 100.0f);
200 vtkGetMacro(MinimumImageSampleDistance, float);
202
204
208 vtkSetClampMacro(MaximumImageSampleDistance, float, 0.1f, 100.0f);
209 vtkGetMacro(MaximumImageSampleDistance, float);
211
213
222 vtkSetClampMacro(AutoAdjustSampleDistances, vtkTypeBool, 0, 1);
223 vtkGetMacro(AutoAdjustSampleDistances, vtkTypeBool);
224 vtkBooleanMacro(AutoAdjustSampleDistances, vtkTypeBool);
226
228
236 vtkSetClampMacro(LockSampleDistanceToInputSpacing, vtkTypeBool, 0, 1);
237 vtkGetMacro(LockSampleDistanceToInputSpacing, vtkTypeBool);
238 vtkBooleanMacro(LockSampleDistanceToInputSpacing, vtkTypeBool);
240
242
247 void SetNumberOfThreads(int num);
250
252
256 vtkSetClampMacro(IntermixIntersectingGeometry, vtkTypeBool, 0, 1);
257 vtkGetMacro(IntermixIntersectingGeometry, vtkTypeBool);
258 vtkBooleanMacro(IntermixIntersectingGeometry, vtkTypeBool);
260
262
269 float ComputeRequiredImageSampleDistance(float desiredTime, vtkRenderer* ren);
270 float ComputeRequiredImageSampleDistance(float desiredTime, vtkRenderer* ren, vtkVolume* vol);
272
277 void Render(vtkRenderer*, vtkVolume*) override;
278
279 unsigned int ToFixedPointPosition(float val);
280 void ToFixedPointPosition(float in[3], unsigned int out[3]);
281 unsigned int ToFixedPointDirection(float dir);
282 void ToFixedPointDirection(float in[3], unsigned int out[3]);
283 void FixedPointIncrement(unsigned int position[3], unsigned int increment[3]);
284 void GetFloatTripleFromPointer(float v[3], float* ptr);
285 void GetUIntTripleFromPointer(unsigned int v[3], unsigned int* ptr);
286 void ShiftVectorDown(unsigned int in[3], unsigned int out[3]);
287 int CheckMinMaxVolumeFlag(unsigned int pos[3], int c);
288 int CheckMIPMinMaxVolumeFlag(unsigned int pos[3], int c, unsigned short maxIdx, int flip);
289
290 void LookupColorUC(unsigned short* colorTable, unsigned short* scalarOpacityTable,
291 unsigned short index, unsigned char color[4]);
292 void LookupDependentColorUC(unsigned short* colorTable, unsigned short* scalarOpacityTable,
293 unsigned short index[4], int components, unsigned char color[4]);
294 void LookupAndCombineIndependentColorsUC(unsigned short* colorTable[4],
295 unsigned short* scalarOpacityTable[4], unsigned short index[4], float weights[4],
296 int components, unsigned char color[4]);
297 int CheckIfCropped(unsigned int pos[3]);
298
299 vtkGetObjectMacro(RenderWindow, vtkRenderWindow);
300 vtkGetObjectMacro(MIPHelper, vtkFixedPointVolumeRayCastMIPHelper);
301 vtkGetObjectMacro(CompositeHelper, vtkFixedPointVolumeRayCastCompositeHelper);
302 vtkGetObjectMacro(CompositeGOHelper, vtkFixedPointVolumeRayCastCompositeGOHelper);
303 vtkGetObjectMacro(CompositeGOShadeHelper, vtkFixedPointVolumeRayCastCompositeGOShadeHelper);
304 vtkGetObjectMacro(CompositeShadeHelper, vtkFixedPointVolumeRayCastCompositeShadeHelper);
305 vtkGetVectorMacro(TableShift, float, 4);
306 vtkGetVectorMacro(TableScale, float, 4);
307 vtkGetMacro(ShadingRequired, int);
308 vtkGetMacro(GradientOpacityRequired, int);
309
310 vtkGetObjectMacro(CurrentScalars, vtkDataArray);
311 vtkGetObjectMacro(PreviousScalars, vtkDataArray);
312
313 int* GetRowBounds() { return this->RowBounds; }
314 unsigned short* GetColorTable(int c) { return this->ColorTable[c]; }
315 unsigned short* GetScalarOpacityTable(int c) { return this->ScalarOpacityTable[c]; }
316 unsigned short* GetGradientOpacityTable(int c) { return this->GradientOpacityTable[c]; }
317 vtkVolume* GetVolume() { return this->Volume; }
318 unsigned short** GetGradientNormal() { return this->GradientNormal; }
319 unsigned char** GetGradientMagnitude() { return this->GradientMagnitude; }
320 unsigned short* GetDiffuseShadingTable(int c) { return this->DiffuseShadingTable[c]; }
321 unsigned short* GetSpecularShadingTable(int c) { return this->SpecularShadingTable[c]; }
322
324 int x, int y, unsigned int pos[3], unsigned int dir[3], unsigned int* numSteps);
325
327
329
331
337 vtkGetObjectMacro(RayCastImage, vtkFixedPointRayCastImage);
339
340 int PerImageInitialization(vtkRenderer*, vtkVolume*, int, double*, double*, int*);
346
347 void CreateCanonicalView(vtkVolume* volume, vtkImageData* image, int blend_mode,
348 double viewDirection[3], double viewUp[3]);
349
357 {
358 return this->RetrieveRenderTime(ren, vol);
359 }
360 float GetEstimatedRenderTime(vtkRenderer* ren) { return this->RetrieveRenderTime(ren); }
361
363
376 vtkSetMacro(FinalColorWindow, float);
377 vtkGetMacro(FinalColorWindow, float);
378 vtkSetMacro(FinalColorLevel, float);
379 vtkGetMacro(FinalColorLevel, float);
381
382 // Here to be used by the mapper to tell the helper
383 // to flip the MIP comparison in order to support
384 // minimum intensity blending
385 vtkGetMacro(FlipMIPComparison, int);
386
394
395protected:
398
399 // The helper class that displays the image
401
402 // The distance between sample points along the ray
405
406 // The distance between rays in the image
412
413 // Saved values used to restore
416
417 // Internal method for computing matrices needed during
418 // ray casting
419 void ComputeMatrices(double inputOrigin[3], double inputSpacing[3], int inputExtent[6],
420 vtkRenderer* ren, vtkVolume* vol);
421
422 int ComputeRowBounds(vtkRenderer* ren, int imageFlag, int rowBoundsFlag, int inputExtent[6]);
423
425
426 friend VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays(void* arg);
427 friend VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType(void* arg);
428
430
437
439
443
444 // This object encapsulated the image and all related information
446
449
455
456 void StoreRenderTime(vtkRenderer* ren, vtkVolume* vol, float t);
459
461
463
464 vtkColorTransferFunction* SavedRGBFunction[4];
465 vtkPiecewiseFunction* SavedGrayFunction[4];
466 vtkPiecewiseFunction* SavedScalarOpacityFunction[4];
467 vtkPiecewiseFunction* SavedGradientOpacityFunction[4];
468 int SavedColorChannels[4];
469 float SavedScalarOpacityDistance[4];
473
476
478
479 unsigned short ColorTable[4][32768 * 3];
480 unsigned short ScalarOpacityTable[4][32768];
481 unsigned short GradientOpacityTable[4][256];
482 int TableSize[4];
483 float TableScale[4];
484 float TableShift[4];
485
486 float GradientMagnitudeScale[4];
487 float GradientMagnitudeShift[4];
488
489 unsigned short** GradientNormal;
490 unsigned char** GradientMagnitude;
493
495
497
499
501
502 unsigned short DiffuseShadingTable[4][65536 * 3];
503 unsigned short SpecularShadingTable[4][65536 * 3];
504
507
510
513
515 double rayStart[3], double rayEnd[3], float rayDirection[3], double bounds[6]);
516
521
523
525 double rayStart[3], double rayEnd[3], int numClippingPlanes, float* clippingPlanes);
526
527 unsigned int FixedPointCroppingRegionPlanes[6];
528 unsigned int CroppingRegionMask[27];
529
530 // Get the ZBuffer value corresponding to location (x,y) where (x,y)
531 // are indexing into the ImageInUse image. This must be converted to
532 // the zbuffer image coordinates. Nearest neighbor value is returned.
533 float GetZBufferValue(int x, int y);
534
540
541 // Some variables used for ray computation
542 float ViewToVoxelsArray[16];
543 float WorldToVoxelsArray[16];
544 float VoxelsToWorldArray[16];
545
546 double CroppingBounds[6];
547
550
551 double SavedSpacing[3];
552
553 // Min Max structure used to do space leaping
554 unsigned short* MinMaxVolume;
555 int MinMaxVolumeSize[4];
559
561 void FillInMaxGradientMagnitudes(int fullDim[3], int smallDim[3]);
562
565
567
569
570private:
572 void operator=(const vtkFixedPointVolumeRayCastMapper&) = delete;
573
574 bool ThreadWarning;
575};
576
578{
579 return static_cast<unsigned int>(val * VTKKW_FP_SCALE + 0.5);
580}
581
582inline void vtkFixedPointVolumeRayCastMapper::ToFixedPointPosition(float in[3], unsigned int out[3])
583{
584 out[0] = static_cast<unsigned int>(in[0] * VTKKW_FP_SCALE + 0.5);
585 out[1] = static_cast<unsigned int>(in[1] * VTKKW_FP_SCALE + 0.5);
586 out[2] = static_cast<unsigned int>(in[2] * VTKKW_FP_SCALE + 0.5);
587}
588
590{
591 return ((dir < 0.0) ? (static_cast<unsigned int>(-dir * VTKKW_FP_SCALE + 0.5))
592 : (0x80000000 + static_cast<unsigned int>(dir * VTKKW_FP_SCALE + 0.5)));
593}
594
596 float in[3], unsigned int out[3])
597{
598 out[0] = ((in[0] < 0.0) ? (static_cast<unsigned int>(-in[0] * VTKKW_FP_SCALE + 0.5))
599 : (0x80000000 + static_cast<unsigned int>(in[0] * VTKKW_FP_SCALE + 0.5)));
600 out[1] = ((in[1] < 0.0) ? (static_cast<unsigned int>(-in[1] * VTKKW_FP_SCALE + 0.5))
601 : (0x80000000 + static_cast<unsigned int>(in[1] * VTKKW_FP_SCALE + 0.5)));
602 out[2] = ((in[2] < 0.0) ? (static_cast<unsigned int>(-in[2] * VTKKW_FP_SCALE + 0.5))
603 : (0x80000000 + static_cast<unsigned int>(in[2] * VTKKW_FP_SCALE + 0.5)));
604}
605
607 unsigned int position[3], unsigned int increment[3])
608{
609 if (increment[0] & 0x80000000)
610 {
611 position[0] += (increment[0] & 0x7fffffff);
612 }
613 else
614 {
615 position[0] -= increment[0];
616 }
617 if (increment[1] & 0x80000000)
618 {
619 position[1] += (increment[1] & 0x7fffffff);
620 }
621 else
622 {
623 position[1] -= increment[1];
624 }
625 if (increment[2] & 0x80000000)
626 {
627 position[2] += (increment[2] & 0x7fffffff);
628 }
629 else
630 {
631 position[2] -= increment[2];
632 }
633}
634
636{
637 v[0] = *(ptr);
638 v[1] = *(ptr + 1);
639 v[2] = *(ptr + 2);
640}
641
643 unsigned int v[3], unsigned int* ptr)
644{
645 v[0] = *(ptr);
646 v[1] = *(ptr + 1);
647 v[2] = *(ptr + 2);
648}
649
651 unsigned int in[3], unsigned int out[3])
652{
653 out[0] = in[0] >> VTKKW_FP_SHIFT;
654 out[1] = in[1] >> VTKKW_FP_SHIFT;
655 out[2] = in[2] >> VTKKW_FP_SHIFT;
656}
657
658inline int vtkFixedPointVolumeRayCastMapper::CheckMinMaxVolumeFlag(unsigned int mmpos[3], int c)
659{
660 vtkIdType offset = static_cast<vtkIdType>(this->MinMaxVolumeSize[3]) *
661 (mmpos[2] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0] * this->MinMaxVolumeSize[1]) +
662 mmpos[1] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0]) + mmpos[0]) +
663 static_cast<vtkIdType>(c);
664
665 return ((*(this->MinMaxVolume + 3 * offset + 2)) & 0x00ff);
666}
667
669 unsigned int mmpos[3], int c, unsigned short maxIdx, int flip)
670{
671 vtkIdType offset = static_cast<vtkIdType>(this->MinMaxVolumeSize[3]) *
672 (mmpos[2] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0] * this->MinMaxVolumeSize[1]) +
673 mmpos[1] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0]) + mmpos[0]) +
674 static_cast<vtkIdType>(c);
675
676 if ((*(this->MinMaxVolume + 3 * offset + 2) & 0x00ff))
677 {
678 if (flip)
679 {
680 return (*(this->MinMaxVolume + 3 * offset) < maxIdx);
681 }
682 else
683 {
684 return (*(this->MinMaxVolume + 3 * offset + 1) > maxIdx);
685 }
686 }
687 else
688 {
689 return 0;
690 }
691}
692
693inline void vtkFixedPointVolumeRayCastMapper::LookupColorUC(unsigned short* colorTable,
694 unsigned short* scalarOpacityTable, unsigned short index, unsigned char color[4])
695{
696 unsigned short alpha = scalarOpacityTable[index];
697 color[0] = static_cast<unsigned char>(
698 (colorTable[3 * index] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
699 color[1] = static_cast<unsigned char>(
700 (colorTable[3 * index + 1] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
701 color[2] = static_cast<unsigned char>(
702 (colorTable[3 * index + 2] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
703 color[3] = static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
704}
705
706inline void vtkFixedPointVolumeRayCastMapper::LookupDependentColorUC(unsigned short* colorTable,
707 unsigned short* scalarOpacityTable, unsigned short index[4], int components,
708 unsigned char color[4])
709{
710 unsigned short alpha;
711 switch (components)
712 {
713 case 2:
714 alpha = scalarOpacityTable[index[1]];
715 color[0] = static_cast<unsigned char>(
716 (colorTable[3 * index[0]] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
717 color[1] = static_cast<unsigned char>(
718 (colorTable[3 * index[0] + 1] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
719 color[2] = static_cast<unsigned char>(
720 (colorTable[3 * index[0] + 2] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
721 color[3] = static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
722 break;
723 case 4:
724 alpha = scalarOpacityTable[index[3]];
725 color[0] = static_cast<unsigned char>((index[0] * alpha + 0x7fff) >> VTKKW_FP_SHIFT);
726 color[1] = static_cast<unsigned char>((index[1] * alpha + 0x7fff) >> VTKKW_FP_SHIFT);
727 color[2] = static_cast<unsigned char>((index[2] * alpha + 0x7fff) >> VTKKW_FP_SHIFT);
728 color[3] = static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
729 break;
730 }
731}
732
734 unsigned short* colorTable[4], unsigned short* scalarOpacityTable[4], unsigned short index[4],
735 float weights[4], int components, unsigned char color[4])
736{
737 unsigned int tmp[4] = { 0, 0, 0, 0 };
738
739 for (int i = 0; i < components; i++)
740 {
741 unsigned short alpha =
742 static_cast<unsigned short>(static_cast<float>(scalarOpacityTable[i][index[i]]) * weights[i]);
743 tmp[0] += static_cast<unsigned char>(
744 ((colorTable[i][3 * index[i]]) * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
745 tmp[1] += static_cast<unsigned char>(
746 ((colorTable[i][3 * index[i] + 1]) * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
747 tmp[2] += static_cast<unsigned char>(
748 ((colorTable[i][3 * index[i] + 2]) * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
749 tmp[3] += static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
750 }
751
752 color[0] = static_cast<unsigned char>((tmp[0] > 255) ? (255) : (tmp[0]));
753 color[1] = static_cast<unsigned char>((tmp[1] > 255) ? (255) : (tmp[1]));
754 color[2] = static_cast<unsigned char>((tmp[2] > 255) ? (255) : (tmp[2]));
755 color[3] = static_cast<unsigned char>((tmp[3] > 255) ? (255) : (tmp[3]));
756}
757
759{
760 int idx;
761
762 if (pos[2] < this->FixedPointCroppingRegionPlanes[4])
763 {
764 idx = 0;
765 }
766 else if (pos[2] > this->FixedPointCroppingRegionPlanes[5])
767 {
768 idx = 18;
769 }
770 else
771 {
772 idx = 9;
773 }
774
775 if (pos[1] >= this->FixedPointCroppingRegionPlanes[2])
776 {
777 if (pos[1] > this->FixedPointCroppingRegionPlanes[3])
778 {
779 idx += 6;
780 }
781 else
782 {
783 idx += 3;
784 }
785 }
786
787 if (pos[0] >= this->FixedPointCroppingRegionPlanes[0])
788 {
789 if (pos[0] > this->FixedPointCroppingRegionPlanes[1])
790 {
791 idx += 2;
792 }
793 else
794 {
795 idx += 1;
796 }
797 }
798
799 return !(static_cast<unsigned int>(this->CroppingRegionFlags) & this->CroppingRegionMask[idx]);
800}
801
802#endif
Defines a transfer function for mapping a property to an RGB color value.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
encode a direction into a one or two byte value
Compute shading tables for encoded normals.
Use finite differences to estimate gradient.
helper class for a ray cast image
A helper that generates composite images for the volume ray cast mapper.
A helper that generates composite images for the volume ray cast mapper.
A helper that generates composite images for the volume ray cast mapper.
A helper that generates composite images for the volume ray cast mapper.
A helper that generates MIP images for the volume ray cast mapper.
void SetRayCastImage(vtkFixedPointRayCastImage *)
Set / Get the underlying image object.
vtkRayCastImageDisplayHelper * ImageDisplayHelper
vtkFixedPointVolumeRayCastMIPHelper * MIPHelper
vtkFixedPointVolumeRayCastCompositeGOHelper * CompositeGOHelper
int ShouldUseNearestNeighborInterpolation(vtkVolume *vol)
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
float RetrieveRenderTime(vtkRenderer *ren)
void GetFloatTripleFromPointer(float v[3], float *ptr)
void CaptureZBuffer(vtkRenderer *ren)
float ComputeRequiredImageSampleDistance(float desiredTime, vtkRenderer *ren)
What is the image sample distance required to achieve the desired time? A version of this method is p...
void ComputeRayInfo(int x, int y, unsigned int pos[3], unsigned int dir[3], unsigned int *numSteps)
vtkFixedPointVolumeRayCastCompositeShadeHelper * CompositeShadeHelper
void StoreRenderTime(vtkRenderer *ren, vtkVolume *vol, float t)
vtkFiniteDifferenceGradientEstimator * GradientEstimator
vtkFixedPointVolumeRayCastCompositeGOShadeHelper * CompositeGOShadeHelper
int ComputeRowBounds(vtkRenderer *ren, int imageFlag, int rowBoundsFlag, int inputExtent[6])
float GetZBufferValue(int x, int y)
void DisplayRenderedImage(vtkRenderer *, vtkVolume *)
void FillInMaxGradientMagnitudes(int fullDim[3], int smallDim[3])
void InitializeRayInfo(vtkVolume *vol)
void SetNumberOfThreads(int num)
Set/Get the number of threads to use.
void Render(vtkRenderer *, vtkVolume *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Initialize rendering for this volume.
void ComputeGradients(vtkVolume *vol)
int UpdateShadingTable(vtkRenderer *ren, vtkVolume *vol)
void GetUIntTripleFromPointer(unsigned int v[3], unsigned int *ptr)
float ComputeRequiredImageSampleDistance(float desiredTime, vtkRenderer *ren, vtkVolume *vol)
What is the image sample distance required to achieve the desired time? A version of this method is p...
static vtkFixedPointVolumeRayCastMapper * New()
float GetEstimatedRenderTime(vtkRenderer *ren, vtkVolume *vol)
Get an estimate of the rendering time for a given volume / renderer.
float RetrieveRenderTime(vtkRenderer *ren, vtkVolume *vol)
int CheckMinMaxVolumeFlag(unsigned int pos[3], int c)
vtkFixedPointVolumeRayCastCompositeHelper * CompositeHelper
int CheckMIPMinMaxVolumeFlag(unsigned int pos[3], int c, unsigned short maxIdx, int flip)
friend VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType(void *arg)
void PerSubVolumeInitialization(vtkRenderer *, vtkVolume *, int)
void ComputeMatrices(double inputOrigin[3], double inputSpacing[3], int inputExtent[6], vtkRenderer *ren, vtkVolume *vol)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void LookupColorUC(unsigned short *colorTable, unsigned short *scalarOpacityTable, unsigned short index, unsigned char color[4])
void FixedPointIncrement(unsigned int position[3], unsigned int increment[3])
void LookupAndCombineIndependentColorsUC(unsigned short *colorTable[4], unsigned short *scalarOpacityTable[4], unsigned short index[4], float weights[4], int components, unsigned char color[4])
vtkVolumeRayCastSpaceLeapingImageFilter * SpaceLeapFilter
void PerVolumeInitialization(vtkRenderer *, vtkVolume *)
int ClipRayAgainstVolume(double rayStart[3], double rayEnd[3], float rayDirection[3], double bounds[6])
void CreateCanonicalView(vtkVolume *volume, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3])
int PerImageInitialization(vtkRenderer *, vtkVolume *, int, double *, double *, int *)
void UpdateMinMaxVolume(vtkVolume *vol)
friend VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays(void *arg)
void ShiftVectorDown(unsigned int in[3], unsigned int out[3])
int UpdateColorTable(vtkVolume *vol)
int ClipRayAgainstClippingPlanes(double rayStart[3], double rayEnd[3], int numClippingPlanes, float *clippingPlanes)
int GetNumberOfThreads()
Set/Get the number of threads to use.
int UpdateGradients(vtkVolume *vol)
void LookupDependentColorUC(unsigned short *colorTable, unsigned short *scalarOpacityTable, unsigned short index[4], int components, unsigned char color[4])
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
A class for performing multithreaded execution.
Defines a 1D piecewise function.
maintain a list of planes
helper class that draws the image to the screen
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:182
record modification and/or execution time
Definition: vtkTimeStamp.h:52
Timer support and logging.
Definition: vtkTimerLog.h:199
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:164
Abstract class for a volume mapper.
int CroppingRegionFlags
Cropping variables, and a method for converting the world coordinate cropping region planes to voxel ...
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:144
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
int vtkTypeBool
Definition: vtkABI.h:69
VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType(void *arg)
VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays(void *arg)
int vtkIdType
Definition: vtkType.h:332