00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkProjectedTetrahedraMapper.h,v $ 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 00044 #ifndef __vtkProjectedTetrahedraMapper_h 00045 #define __vtkProjectedTetrahedraMapper_h 00046 00047 #include "vtkUnstructuredGridVolumeMapper.h" 00048 00049 class vtkFloatArray; 00050 class vtkPoints; 00051 class vtkUnsignedCharArray; 00052 class vtkVisibilitySort; 00053 class vtkVolumeProperty; 00054 00055 class VTK_VOLUMERENDERING_EXPORT vtkProjectedTetrahedraMapper : public vtkUnstructuredGridVolumeMapper 00056 { 00057 public: 00058 vtkTypeRevisionMacro(vtkProjectedTetrahedraMapper, 00059 vtkUnstructuredGridVolumeMapper); 00060 static vtkProjectedTetrahedraMapper *New(); 00061 virtual void PrintSelf(ostream &os, vtkIndent indent); 00062 00063 virtual void SetVisibilitySort(vtkVisibilitySort *sort); 00064 vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort); 00065 00066 static void MapScalarsToColors(vtkDataArray *colors, 00067 vtkVolumeProperty *property, 00068 vtkDataArray *scalars); 00069 static void TransformPoints(vtkPoints *inPoints, 00070 const float projection_mat[16], 00071 const float modelview_mat[16], 00072 vtkFloatArray *outPoints); 00073 00074 protected: 00075 vtkProjectedTetrahedraMapper(); 00076 ~vtkProjectedTetrahedraMapper(); 00077 00078 vtkVisibilitySort *VisibilitySort; 00079 00082 virtual void ReportReferences(vtkGarbageCollector *collector); 00083 00084 private: 00085 vtkProjectedTetrahedraMapper(const vtkProjectedTetrahedraMapper &); // Not Implemented. 00086 void operator=(const vtkProjectedTetrahedraMapper &); // Not Implemented. 00087 }; 00088 00089 #endif