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 
40 #ifndef vtkUnstructuredGridHomogeneousRayIntegrator_h
41 #define vtkUnstructuredGridHomogeneousRayIntegrator_h
42 
43 #include "vtkRenderingVolumeModule.h" // For export macro
45 
46 class vtkVolumeProperty;
47 
49 {
50 public:
54  virtual void PrintSelf(ostream &os, vtkIndent indent);
55 
56  virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars);
57 
58  virtual void Integrate(vtkDoubleArray *intersectionLengths,
59  vtkDataArray *nearIntersections,
60  vtkDataArray *farIntersections,
61  float color[4]);
62 
64 
69  vtkSetMacro(TransferFunctionTableSize, int);
70  vtkGetMacro(TransferFunctionTableSize, int);
72 
73 protected:
76 
79 
81  float **ColorTable;
83  double *TableShift;
84  double *TableScale;
86 
89 
90  virtual void GetTransferFunctionTables(vtkDataArray *scalars);
91 
92 private:
94  void operator=(const vtkUnstructuredGridHomogeneousRayIntegrator&) VTK_DELETE_FUNCTION;
95 };
96 
97 #endif //vtkUnstructuredGridHomogeneousRayIntegrator_h
vtkUnstructuredGridHomogeneousRayIntegrator::Volume
vtkVolume * Volume
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:77
vtkUnstructuredGridVolumeRayIntegrator
a superclass for volume ray integration functions
Definition: vtkUnstructuredGridVolumeRayIntegrator.h:44
vtkUnstructuredGridVolumeRayIntegrator::Integrate
virtual void Integrate(vtkDoubleArray *intersectionLengths, vtkDataArray *nearIntersections, vtkDataArray *farIntersections, float color[4])=0
Given a set of intersections (defined by the three arrays), compute the peicewise integration of the ...
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkUnstructuredGridHomogeneousRayIntegrator::Property
vtkVolumeProperty * Property
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:78
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkUnstructuredGridHomogeneousRayIntegrator::ColorTable
float ** ColorTable
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:81
vtkUnstructuredGridHomogeneousRayIntegrator::TransferFunctionTableSize
int TransferFunctionTableSize
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:88
vtkX3D::color
@ color
Definition: vtkX3D.h:221
vtkUnstructuredGridHomogeneousRayIntegrator
performs peicewise constant ray integration.
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridHomogeneousRayIntegrator::UseAverageColor
int UseAverageColor
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:87
vtkUnstructuredGridHomogeneousRayIntegrator::NumComponents
int NumComponents
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:80
vtkUnstructuredGridVolumeRayIntegrator.h
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkUnstructuredGridVolumeRayIntegrator::Initialize
virtual void Initialize(vtkVolume *volume, vtkDataArray *scalars)=0
Set up the integrator with the given properties and scalars.
vtkUnstructuredGridHomogeneousRayIntegrator::TableShift
double * TableShift
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:83
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:41
vtkUnstructuredGridHomogeneousRayIntegrator::TablesBuilt
vtkTimeStamp TablesBuilt
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:85
vtkUnstructuredGridHomogeneousRayIntegrator::TableScale
double * TableScale
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:84
vtkVolumeProperty
represents the common properties for rendering a volume.
Definition: vtkVolumeProperty.h:60
vtkUnstructuredGridHomogeneousRayIntegrator::AttenuationTable
float ** AttenuationTable
Definition: vtkUnstructuredGridHomogeneousRayIntegrator.h:82
vtkUnstructuredGridVolumeRayIntegrator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.