VTK
vtkUnstructuredGridHomogeneousRayIntegrator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridHomogeneousRayIntegrator.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 =========================================================================*/
15 
16 /*
17  * Copyright 2004 Sandia Corporation.
18  * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19  * license for use of this work by or on behalf of the
20  * U.S. Government. Redistribution and use in source and binary forms, with
21  * or without modification, are permitted provided that this Notice and any
22  * statement of authorship are reproduced on all copies.
23  */
24 
39 #ifndef vtkUnstructuredGridHomogeneousRayIntegrator_h
40 #define vtkUnstructuredGridHomogeneousRayIntegrator_h
41 
42 #include "vtkRenderingVolumeModule.h" // For export macro
44 
45 class vtkVolumeProperty;
46 
48 {
49 public:
53  virtual void PrintSelf(ostream &os, vtkIndent indent);
54 
55  virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars);
56 
57  virtual void Integrate(vtkDoubleArray *intersectionLengths,
58  vtkDataArray *nearIntersections,
59  vtkDataArray *farIntersections,
60  float color[4]);
61 
63 
66  vtkSetMacro(TransferFunctionTableSize, int);
67  vtkGetMacro(TransferFunctionTableSize, int);
69 
70 protected:
73 
76 
78  float **ColorTable;
80  double *TableShift;
81  double *TableScale;
83 
86 
87  virtual void GetTransferFunctionTables(vtkDataArray *scalars);
88 
89 private:
91  void operator=(const vtkUnstructuredGridHomogeneousRayIntegrator&); // Not implemented
92 };
93 
94 #endif //vtkUnstructuredGridHomogeneousRayIntegrator_h
vtkUnstructuredGridHomogeneousRayIntegrator::Volume
vtkVolume * Volume
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:74
vtkUnstructuredGridVolumeRayIntegrator
a superclass for volume ray integration functions
Definition: vtkUnstructuredGridVolumeRayIntegrator.h:44
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
vtkUnstructuredGridHomogeneousRayIntegrator::Integrate
virtual void Integrate(vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4])
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkRenderingVolumeModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkUnstructuredGridHomogeneousRayIntegrator::Property
vtkVolumeProperty * Property
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:75
vtkUnstructuredGridHomogeneousRayIntegrator::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkUnstructuredGridHomogeneousRayIntegrator::ColorTable
float ** ColorTable
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:78
vtkUnstructuredGridHomogeneousRayIntegrator::TransferFunctionTableSize
int TransferFunctionTableSize
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:85
vtkUnstructuredGridHomogeneousRayIntegrator::New
static vtkUnstructuredGridHomogeneousRayIntegrator * New()
vtkUnstructuredGridHomogeneousRayIntegrator
performs peicewise constant ray integration.
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridHomogeneousRayIntegrator::vtkUnstructuredGridHomogeneousRayIntegrator
vtkUnstructuredGridHomogeneousRayIntegrator()
vtkUnstructuredGridHomogeneousRayIntegrator::UseAverageColor
int UseAverageColor
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:84
vtkUnstructuredGridHomogeneousRayIntegrator::NumComponents
int NumComponents
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:77
vtkUnstructuredGridVolumeRayIntegrator.h
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkgl::color
GLuint color
Definition: vtkgl.h:12351
vtkUnstructuredGridHomogeneousRayIntegrator::Initialize
virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars)
vtkUnstructuredGridHomogeneousRayIntegrator::~vtkUnstructuredGridHomogeneousRayIntegrator
~vtkUnstructuredGridHomogeneousRayIntegrator()
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkUnstructuredGridHomogeneousRayIntegrator::GetTransferFunctionTables
virtual void GetTransferFunctionTables(vtkDataArray *scalars)
vtkUnstructuredGridHomogeneousRayIntegrator::TableShift
double * TableShift
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:80
VTKRENDERINGVOLUME_EXPORT
#define VTKRENDERINGVOLUME_EXPORT
Definition: vtkRenderingVolumeModule.h:15
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkUnstructuredGridHomogeneousRayIntegrator::TablesBuilt
vtkTimeStamp TablesBuilt
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:82
vtkUnstructuredGridHomogeneousRayIntegrator::TableScale
double * TableScale
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:81
vtkVolumeProperty
represents the common properties for rendering a volume.
Definition: vtkVolumeProperty.h:60
vtkUnstructuredGridHomogeneousRayIntegrator::AttenuationTable
float ** AttenuationTable
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:79