Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Patented/vtkDividingCubes.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDividingCubes.h,v $
00005   Language:  C++
00006 
00007 
00008 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00009 All rights reserved.
00010 
00011     THIS CLASS IS PATENTED UNDER UNITED STATES PATENT NUMBER 4,719,585
00012     "Dividing Cubes System and Method for the Display of Surface Structures
00013     Contained Within the Interior Region of a Solid Body".
00014     Application of this software for commercial purposes requires 
00015     a license grant from GE. Contact:
00016 
00017         Carl B. Horton
00018         Sr. Counsel, Intellectual Property
00019         3000 N. Grandview Blvd., W-710
00020         Waukesha, WI  53188
00021         Phone:  (262) 513-4022
00022         E-Mail: Carl.Horton@med.ge.com
00023 
00024     for more information.
00025 
00026 Redistribution and use in source and binary forms, with or without
00027 modification, are permitted provided that the following conditions are met:
00028 
00029  * Redistributions of source code must retain the above copyright notice,
00030    this list of conditions and the following disclaimer.
00031 
00032  * Redistributions in binary form must reproduce the above copyright notice,
00033    this list of conditions and the following disclaimer in the documentation
00034    and/or other materials provided with the distribution.
00035 
00036  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00037    of any contributors may be used to endorse or promote products derived
00038    from this software without specific prior written permission.
00039 
00040  * Modified source versions must be plainly marked as such, and must not be
00041    misrepresented as being the original software.
00042 
00043 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00044 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00045 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00046 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
00047 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00048 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00049 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00050 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00051 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00052 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00053 
00054 =========================================================================*/
00076 #ifndef __vtkDividingCubes_h
00077 #define __vtkDividingCubes_h
00078 
00079 #include "vtkStructuredPointsToPolyDataFilter.h"
00080 
00081 class VTK_PATENTED_EXPORT vtkDividingCubes : public vtkStructuredPointsToPolyDataFilter
00082 {
00083 public:
00084   static vtkDividingCubes *New();
00085   vtkTypeMacro(vtkDividingCubes,vtkStructuredPointsToPolyDataFilter);
00086   void PrintSelf(ostream& os, vtkIndent indent);
00087 
00089 
00090   vtkSetMacro(Value,float);
00091   vtkGetMacro(Value,float);
00093 
00095 
00096   vtkSetClampMacro(Distance,float,1.0e-06,VTK_LARGE_FLOAT);
00097   vtkGetMacro(Distance,float);
00099 
00101 
00104   vtkSetClampMacro(Increment,int,1,VTK_LARGE_INTEGER);
00105   vtkGetMacro(Increment,int);
00107 
00108 protected:
00109   vtkDividingCubes();
00110   ~vtkDividingCubes();
00111 
00112   void Execute();
00113   void SubDivide(float origin[3], int dim[3], float h[3], float values[8]);
00114 
00115   float Value;
00116   float Distance;
00117   int Increment;
00118 
00119   // working variable
00120   int Count;
00121 
00122   vtkIdList *SubVoxelPts;
00123   vtkVoxel *SubVoxel;
00124   vtkFloatArray *SubVoxelScalars;
00125   vtkFloatArray *SubVoxelNormals;
00126 private:
00127   vtkDividingCubes(const vtkDividingCubes&);  // Not implemented.
00128   void operator=(const vtkDividingCubes&);  // Not implemented.
00129 };
00130 
00131 #endif
00132 
00133 

Generated on Thu Mar 28 14:19:31 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001