VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkMesaProjectedTetrahedraMapper.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00016 /* 00017 * Copyright 2003 Sandia Corporation. 00018 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00019 * license for use of this work by or on behalf of the 00020 * U.S. Government. Redistribution and use in source and binary forms, with 00021 * or without modification, are permitted provided that this Notice and any 00022 * statement of authorship are reproduced on all copies. 00023 */ 00024 00035 #ifndef __vtkMesaProjectedTetrahedraMapper_h 00036 #define __vtkMesaProjectedTetrahedraMapper_h 00037 00038 #include "vtkProjectedTetrahedraMapper.h" 00039 00040 class vtkVisibilitySort; 00041 class vtkUnsignedCharArray; 00042 class vtkFloatArray; 00043 00044 class VTK_VOLUMERENDERING_EXPORT vtkMesaProjectedTetrahedraMapper : public vtkProjectedTetrahedraMapper 00045 { 00046 public: 00047 vtkTypeMacro(vtkMesaProjectedTetrahedraMapper, 00048 vtkProjectedTetrahedraMapper); 00049 static vtkMesaProjectedTetrahedraMapper *New(); 00050 virtual void PrintSelf(ostream &os, vtkIndent indent); 00051 00052 virtual void ReleaseGraphicsResources(vtkWindow *window); 00053 00054 virtual void Render(vtkRenderer *renderer, vtkVolume *volume); 00055 00056 protected: 00057 vtkMesaProjectedTetrahedraMapper(); 00058 ~vtkMesaProjectedTetrahedraMapper(); 00059 00060 vtkUnsignedCharArray *Colors; 00061 int UsingCellColors; 00062 00063 vtkFloatArray *TransformedPoints; 00064 00065 float MaxCellSize; 00066 vtkTimeStamp InputAnalyzedTime; 00067 vtkTimeStamp OpacityTextureTime; 00068 vtkTimeStamp ColorsMappedTime; 00069 00070 unsigned int OpacityTexture; 00071 00072 int GaveError; 00073 00074 vtkVolumeProperty *LastProperty; 00075 00076 float *SqrtTable; 00077 float SqrtTableBias; 00078 00079 virtual void ProjectTetrahedra(vtkRenderer *renderer, vtkVolume *volume); 00080 00081 float GetCorrectedDepth(float x, float y, float z1, float z2, 00082 const float inverse_projection_mat[16], 00083 int use_linear_depth_correction, 00084 float linear_depth_correction); 00085 00086 private: 00087 vtkMesaProjectedTetrahedraMapper(const vtkMesaProjectedTetrahedraMapper &); // Not Implemented. 00088 void operator=(const vtkMesaProjectedTetrahedraMapper &); // Not Implemented. 00089 }; 00090 00091 #endif