VTK  9.2.6
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=========================================================================*/
111#ifndef vtkFixedPointVolumeRayCastMapper_h
112#define vtkFixedPointVolumeRayCastMapper_h
113
114#include "vtkRenderingVolumeModule.h" // For export macro
115#include "vtkThreads.h" // for VTK_THREAD_RETURN_TYPE
116#include "vtkVolumeMapper.h"
117
118#define VTKKW_FP_SHIFT 15
119#define VTKKW_FPMM_SHIFT 17
120#define VTKKW_FP_MASK 0x7fff
121#define VTKKW_FP_SCALE 32767.0
122
123class vtkMatrix4x4;
124class vtkMultiThreader;
126class vtkRenderer;
127class vtkTimerLog;
128class vtkVolume;
129class vtkTransform;
130class vtkRenderWindow;
144class vtkDataArray;
145
146// Forward declaration needed for use by friend declaration below.
147VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays(void* arg);
148VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType(void* arg);
149
150class VTKRENDERINGVOLUME_EXPORT vtkFixedPointVolumeRayCastMapper : public vtkVolumeMapper
151{
152public:
155 void PrintSelf(ostream& os, vtkIndent indent) override;
156
158
163 vtkSetMacro(SampleDistance, float);
164 vtkGetMacro(SampleDistance, float);
166
168
175 vtkSetMacro(InteractiveSampleDistance, float);
176 vtkGetMacro(InteractiveSampleDistance, float);
178
180
187 vtkSetClampMacro(ImageSampleDistance, float, 0.1f, 100.0f);
188 vtkGetMacro(ImageSampleDistance, float);
190
192
196 vtkSetClampMacro(MinimumImageSampleDistance, float, 0.1f, 100.0f);
197 vtkGetMacro(MinimumImageSampleDistance, float);
199
201
205 vtkSetClampMacro(MaximumImageSampleDistance, float, 0.1f, 100.0f);
206 vtkGetMacro(MaximumImageSampleDistance, float);
208
210
219 vtkSetClampMacro(AutoAdjustSampleDistances, vtkTypeBool, 0, 1);
220 vtkGetMacro(AutoAdjustSampleDistances, vtkTypeBool);
221 vtkBooleanMacro(AutoAdjustSampleDistances, vtkTypeBool);
223
225
233 vtkSetClampMacro(LockSampleDistanceToInputSpacing, vtkTypeBool, 0, 1);
234 vtkGetMacro(LockSampleDistanceToInputSpacing, vtkTypeBool);
235 vtkBooleanMacro(LockSampleDistanceToInputSpacing, vtkTypeBool);
237
239
244 void SetNumberOfThreads(int num);
247
249
253 vtkSetClampMacro(IntermixIntersectingGeometry, vtkTypeBool, 0, 1);
254 vtkGetMacro(IntermixIntersectingGeometry, vtkTypeBool);
255 vtkBooleanMacro(IntermixIntersectingGeometry, vtkTypeBool);
257
259
266 float ComputeRequiredImageSampleDistance(float desiredTime, vtkRenderer* ren);
267 float ComputeRequiredImageSampleDistance(float desiredTime, vtkRenderer* ren, vtkVolume* vol);
269
274 void Render(vtkRenderer*, vtkVolume*) override;
275
276 unsigned int ToFixedPointPosition(float val);
277 void ToFixedPointPosition(float in[3], unsigned int out[3]);
278 unsigned int ToFixedPointDirection(float dir);
279 void ToFixedPointDirection(float in[3], unsigned int out[3]);
280 void FixedPointIncrement(unsigned int position[3], unsigned int increment[3]);
281 void GetFloatTripleFromPointer(float v[3], float* ptr);
282 void GetUIntTripleFromPointer(unsigned int v[3], unsigned int* ptr);
283 void ShiftVectorDown(unsigned int in[3], unsigned int out[3]);
284 int CheckMinMaxVolumeFlag(unsigned int pos[3], int c);
285 int CheckMIPMinMaxVolumeFlag(unsigned int pos[3], int c, unsigned short maxIdx, int flip);
286
287 void LookupColorUC(unsigned short* colorTable, unsigned short* scalarOpacityTable,
288 unsigned short index, unsigned char color[4]);
289 void LookupDependentColorUC(unsigned short* colorTable, unsigned short* scalarOpacityTable,
290 unsigned short index[4], int components, unsigned char color[4]);
291 void LookupAndCombineIndependentColorsUC(unsigned short* colorTable[4],
292 unsigned short* scalarOpacityTable[4], unsigned short index[4], float weights[4],
293 int components, unsigned char color[4]);
294 int CheckIfCropped(unsigned int pos[3]);
295
296 vtkGetObjectMacro(RenderWindow, vtkRenderWindow);
297 vtkGetObjectMacro(MIPHelper, vtkFixedPointVolumeRayCastMIPHelper);
298 vtkGetObjectMacro(CompositeHelper, vtkFixedPointVolumeRayCastCompositeHelper);
299 vtkGetObjectMacro(CompositeGOHelper, vtkFixedPointVolumeRayCastCompositeGOHelper);
300 vtkGetObjectMacro(CompositeGOShadeHelper, vtkFixedPointVolumeRayCastCompositeGOShadeHelper);
301 vtkGetObjectMacro(CompositeShadeHelper, vtkFixedPointVolumeRayCastCompositeShadeHelper);
302 vtkGetVectorMacro(TableShift, float, 4);
303 vtkGetVectorMacro(TableScale, float, 4);
304 vtkGetMacro(ShadingRequired, int);
305 vtkGetMacro(GradientOpacityRequired, int);
306
307 vtkGetObjectMacro(CurrentScalars, vtkDataArray);
308 vtkGetObjectMacro(PreviousScalars, vtkDataArray);
309
310 int* GetRowBounds() { return this->RowBounds; }
311 unsigned short* GetColorTable(int c) { return this->ColorTable[c]; }
312 unsigned short* GetScalarOpacityTable(int c) { return this->ScalarOpacityTable[c]; }
313 unsigned short* GetGradientOpacityTable(int c) { return this->GradientOpacityTable[c]; }
314 vtkVolume* GetVolume() { return this->Volume; }
315 unsigned short** GetGradientNormal() { return this->GradientNormal; }
316 unsigned char** GetGradientMagnitude() { return this->GradientMagnitude; }
317 unsigned short* GetDiffuseShadingTable(int c) { return this->DiffuseShadingTable[c]; }
318 unsigned short* GetSpecularShadingTable(int c) { return this->SpecularShadingTable[c]; }
319
321 int x, int y, unsigned int pos[3], unsigned int dir[3], unsigned int* numSteps);
322
324
326
328
334 vtkGetObjectMacro(RayCastImage, vtkFixedPointRayCastImage);
336
337 int PerImageInitialization(vtkRenderer*, vtkVolume*, int, double*, double*, int*);
343
344 void CreateCanonicalView(vtkVolume* volume, vtkImageData* image, int blend_mode,
345 double viewDirection[3], double viewUp[3]);
346
354 {
355 return this->RetrieveRenderTime(ren, vol);
356 }
357 float GetEstimatedRenderTime(vtkRenderer* ren) { return this->RetrieveRenderTime(ren); }
358
360
373 vtkSetMacro(FinalColorWindow, float);
374 vtkGetMacro(FinalColorWindow, float);
375 vtkSetMacro(FinalColorLevel, float);
376 vtkGetMacro(FinalColorLevel, float);
378
379 // Here to be used by the mapper to tell the helper
380 // to flip the MIP comparison in order to support
381 // minimum intensity blending
382 vtkGetMacro(FlipMIPComparison, int);
383
391
392protected:
395
396 // The helper class that displays the image
398
399 // The distance between sample points along the ray
402
403 // The distance between rays in the image
409
410 // Saved values used to restore
413
414 // Internal method for computing matrices needed during
415 // ray casting
416 void ComputeMatrices(double inputOrigin[3], double inputSpacing[3], int inputExtent[6],
417 vtkRenderer* ren, vtkVolume* vol);
418
419 int ComputeRowBounds(vtkRenderer* ren, int imageFlag, int rowBoundsFlag, int inputExtent[6]);
420
422
423 friend VTK_THREAD_RETURN_TYPE FixedPointVolumeRayCastMapper_CastRays(void* arg);
424 friend VTK_THREAD_RETURN_TYPE vtkFPVRCMSwitchOnDataType(void* arg);
425
427
434
436
440
441 // This object encapsulated the image and all related information
443
446
452
453 void StoreRenderTime(vtkRenderer* ren, vtkVolume* vol, float t);
456
458
460
461 vtkColorTransferFunction* SavedRGBFunction[4];
462 vtkPiecewiseFunction* SavedGrayFunction[4];
463 vtkPiecewiseFunction* SavedScalarOpacityFunction[4];
464 vtkPiecewiseFunction* SavedGradientOpacityFunction[4];
465 int SavedColorChannels[4];
466 float SavedScalarOpacityDistance[4];
470
473
475
476 unsigned short ColorTable[4][32768 * 3];
477 unsigned short ScalarOpacityTable[4][32768];
478 unsigned short GradientOpacityTable[4][256];
479 int TableSize[4];
480 float TableScale[4];
481 float TableShift[4];
482
483 float GradientMagnitudeScale[4];
484 float GradientMagnitudeShift[4];
485
486 unsigned short** GradientNormal;
487 unsigned char** GradientMagnitude;
490
492
494
496
498
499 unsigned short DiffuseShadingTable[4][65536 * 3];
500 unsigned short SpecularShadingTable[4][65536 * 3];
501
504
507
510
512 double rayStart[3], double rayEnd[3], float rayDirection[3], double bounds[6]);
513
518
520
522 double rayStart[3], double rayEnd[3], int numClippingPlanes, float* clippingPlanes);
523
524 unsigned int FixedPointCroppingRegionPlanes[6];
525 unsigned int CroppingRegionMask[27];
526
527 // Get the ZBuffer value corresponding to location (x,y) where (x,y)
528 // are indexing into the ImageInUse image. This must be converted to
529 // the zbuffer image coordinates. Nearest neighbor value is returned.
530 float GetZBufferValue(int x, int y);
531
537
538 // Some variables used for ray computation
539 float ViewToVoxelsArray[16];
540 float WorldToVoxelsArray[16];
541 float VoxelsToWorldArray[16];
542
543 double CroppingBounds[6];
544
547
548 double SavedSpacing[3];
549
550 // Min Max structure used to do space leaping
551 unsigned short* MinMaxVolume;
552 int MinMaxVolumeSize[4];
556
558 void FillInMaxGradientMagnitudes(int fullDim[3], int smallDim[3]);
559
562
564
566
567private:
569 void operator=(const vtkFixedPointVolumeRayCastMapper&) = delete;
570
571 bool ThreadWarning;
572};
573
575{
576 return static_cast<unsigned int>(val * VTKKW_FP_SCALE + 0.5);
577}
578
579inline void vtkFixedPointVolumeRayCastMapper::ToFixedPointPosition(float in[3], unsigned int out[3])
580{
581 out[0] = static_cast<unsigned int>(in[0] * VTKKW_FP_SCALE + 0.5);
582 out[1] = static_cast<unsigned int>(in[1] * VTKKW_FP_SCALE + 0.5);
583 out[2] = static_cast<unsigned int>(in[2] * VTKKW_FP_SCALE + 0.5);
584}
585
587{
588 return ((dir < 0.0) ? (static_cast<unsigned int>(-dir * VTKKW_FP_SCALE + 0.5))
589 : (0x80000000 + static_cast<unsigned int>(dir * VTKKW_FP_SCALE + 0.5)));
590}
591
593 float in[3], unsigned int out[3])
594{
595 out[0] = ((in[0] < 0.0) ? (static_cast<unsigned int>(-in[0] * VTKKW_FP_SCALE + 0.5))
596 : (0x80000000 + static_cast<unsigned int>(in[0] * VTKKW_FP_SCALE + 0.5)));
597 out[1] = ((in[1] < 0.0) ? (static_cast<unsigned int>(-in[1] * VTKKW_FP_SCALE + 0.5))
598 : (0x80000000 + static_cast<unsigned int>(in[1] * VTKKW_FP_SCALE + 0.5)));
599 out[2] = ((in[2] < 0.0) ? (static_cast<unsigned int>(-in[2] * VTKKW_FP_SCALE + 0.5))
600 : (0x80000000 + static_cast<unsigned int>(in[2] * VTKKW_FP_SCALE + 0.5)));
601}
602
604 unsigned int position[3], unsigned int increment[3])
605{
606 if (increment[0] & 0x80000000)
607 {
608 position[0] += (increment[0] & 0x7fffffff);
609 }
610 else
611 {
612 position[0] -= increment[0];
613 }
614 if (increment[1] & 0x80000000)
615 {
616 position[1] += (increment[1] & 0x7fffffff);
617 }
618 else
619 {
620 position[1] -= increment[1];
621 }
622 if (increment[2] & 0x80000000)
623 {
624 position[2] += (increment[2] & 0x7fffffff);
625 }
626 else
627 {
628 position[2] -= increment[2];
629 }
630}
631
633{
634 v[0] = *(ptr);
635 v[1] = *(ptr + 1);
636 v[2] = *(ptr + 2);
637}
638
640 unsigned int v[3], unsigned int* ptr)
641{
642 v[0] = *(ptr);
643 v[1] = *(ptr + 1);
644 v[2] = *(ptr + 2);
645}
646
648 unsigned int in[3], unsigned int out[3])
649{
650 out[0] = in[0] >> VTKKW_FP_SHIFT;
651 out[1] = in[1] >> VTKKW_FP_SHIFT;
652 out[2] = in[2] >> VTKKW_FP_SHIFT;
653}
654
655inline int vtkFixedPointVolumeRayCastMapper::CheckMinMaxVolumeFlag(unsigned int mmpos[3], int c)
656{
657 vtkIdType offset = static_cast<vtkIdType>(this->MinMaxVolumeSize[3]) *
658 (mmpos[2] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0] * this->MinMaxVolumeSize[1]) +
659 mmpos[1] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0]) + mmpos[0]) +
660 static_cast<vtkIdType>(c);
661
662 return ((*(this->MinMaxVolume + 3 * offset + 2)) & 0x00ff);
663}
664
666 unsigned int mmpos[3], int c, unsigned short maxIdx, int flip)
667{
668 vtkIdType offset = static_cast<vtkIdType>(this->MinMaxVolumeSize[3]) *
669 (mmpos[2] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0] * this->MinMaxVolumeSize[1]) +
670 mmpos[1] * static_cast<vtkIdType>(this->MinMaxVolumeSize[0]) + mmpos[0]) +
671 static_cast<vtkIdType>(c);
672
673 if ((*(this->MinMaxVolume + 3 * offset + 2) & 0x00ff))
674 {
675 if (flip)
676 {
677 return (*(this->MinMaxVolume + 3 * offset) < maxIdx);
678 }
679 else
680 {
681 return (*(this->MinMaxVolume + 3 * offset + 1) > maxIdx);
682 }
683 }
684 else
685 {
686 return 0;
687 }
688}
689
690inline void vtkFixedPointVolumeRayCastMapper::LookupColorUC(unsigned short* colorTable,
691 unsigned short* scalarOpacityTable, unsigned short index, unsigned char color[4])
692{
693 unsigned short alpha = scalarOpacityTable[index];
694 color[0] = static_cast<unsigned char>(
695 (colorTable[3 * index] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
696 color[1] = static_cast<unsigned char>(
697 (colorTable[3 * index + 1] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
698 color[2] = static_cast<unsigned char>(
699 (colorTable[3 * index + 2] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
700 color[3] = static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
701}
702
703inline void vtkFixedPointVolumeRayCastMapper::LookupDependentColorUC(unsigned short* colorTable,
704 unsigned short* scalarOpacityTable, unsigned short index[4], int components,
705 unsigned char color[4])
706{
707 unsigned short alpha;
708 switch (components)
709 {
710 case 2:
711 alpha = scalarOpacityTable[index[1]];
712 color[0] = static_cast<unsigned char>(
713 (colorTable[3 * index[0]] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
714 color[1] = static_cast<unsigned char>(
715 (colorTable[3 * index[0] + 1] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
716 color[2] = static_cast<unsigned char>(
717 (colorTable[3 * index[0] + 2] * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
718 color[3] = static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
719 break;
720 case 4:
721 alpha = scalarOpacityTable[index[3]];
722 color[0] = static_cast<unsigned char>((index[0] * alpha + 0x7fff) >> VTKKW_FP_SHIFT);
723 color[1] = static_cast<unsigned char>((index[1] * alpha + 0x7fff) >> VTKKW_FP_SHIFT);
724 color[2] = static_cast<unsigned char>((index[2] * alpha + 0x7fff) >> VTKKW_FP_SHIFT);
725 color[3] = static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
726 break;
727 }
728}
729
731 unsigned short* colorTable[4], unsigned short* scalarOpacityTable[4], unsigned short index[4],
732 float weights[4], int components, unsigned char color[4])
733{
734 unsigned int tmp[4] = { 0, 0, 0, 0 };
735
736 for (int i = 0; i < components; i++)
737 {
738 unsigned short alpha =
739 static_cast<unsigned short>(static_cast<float>(scalarOpacityTable[i][index[i]]) * weights[i]);
740 tmp[0] += static_cast<unsigned char>(
741 ((colorTable[i][3 * index[i]]) * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
742 tmp[1] += static_cast<unsigned char>(
743 ((colorTable[i][3 * index[i] + 1]) * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
744 tmp[2] += static_cast<unsigned char>(
745 ((colorTable[i][3 * index[i] + 2]) * alpha + 0x7fff) >> (2 * VTKKW_FP_SHIFT - 8));
746 tmp[3] += static_cast<unsigned char>(alpha >> (VTKKW_FP_SHIFT - 8));
747 }
748
749 color[0] = static_cast<unsigned char>((tmp[0] > 255) ? (255) : (tmp[0]));
750 color[1] = static_cast<unsigned char>((tmp[1] > 255) ? (255) : (tmp[1]));
751 color[2] = static_cast<unsigned char>((tmp[2] > 255) ? (255) : (tmp[2]));
752 color[3] = static_cast<unsigned char>((tmp[3] > 255) ? (255) : (tmp[3]));
753}
754
756{
757 int idx;
758
759 if (pos[2] < this->FixedPointCroppingRegionPlanes[4])
760 {
761 idx = 0;
762 }
763 else if (pos[2] > this->FixedPointCroppingRegionPlanes[5])
764 {
765 idx = 18;
766 }
767 else
768 {
769 idx = 9;
770 }
771
772 if (pos[1] >= this->FixedPointCroppingRegionPlanes[2])
773 {
774 if (pos[1] > this->FixedPointCroppingRegionPlanes[3])
775 {
776 idx += 6;
777 }
778 else
779 {
780 idx += 3;
781 }
782 }
783
784 if (pos[0] >= this->FixedPointCroppingRegionPlanes[0])
785 {
786 if (pos[0] > this->FixedPointCroppingRegionPlanes[1])
787 {
788 idx += 2;
789 }
790 else
791 {
792 idx += 1;
793 }
794 }
795
796 return !(static_cast<unsigned int>(this->CroppingRegionFlags) & this->CroppingRegionMask[idx]);
797}
798
799#endif
Defines a transfer function for mapping a property to an RGB color value.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
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:163
a simple class to control print indentation
Definition: vtkIndent.h:119
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:151
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:179
record modification and/or execution time
Definition: vtkTimeStamp.h:55
Timer support and logging.
Definition: vtkTimerLog.h:205
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:170
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:150
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
@ dir
Definition: vtkX3D.h:330
@ alpha
Definition: vtkX3D.h:256
@ color
Definition: vtkX3D.h:227
@ image
Definition: vtkX3D.h:380
@ position
Definition: vtkX3D.h:267
@ index
Definition: vtkX3D.h:252
@ offset
Definition: vtkX3D.h:444
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