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