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 class vtkRenderWindow; 00056 00057 class VTKRENDERINGVOLUME_EXPORT vtkProjectedTetrahedraMapper : public vtkUnstructuredGridVolumeMapper 00058 { 00059 public: 00060 vtkTypeMacro(vtkProjectedTetrahedraMapper, 00061 vtkUnstructuredGridVolumeMapper); 00062 static vtkProjectedTetrahedraMapper *New(); 00063 virtual void PrintSelf(ostream &os, vtkIndent indent); 00064 00065 virtual void SetVisibilitySort(vtkVisibilitySort *sort); 00066 vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort); 00067 00068 static void MapScalarsToColors(vtkDataArray *colors, 00069 vtkVolumeProperty *property, 00070 vtkDataArray *scalars); 00071 static void TransformPoints(vtkPoints *inPoints, 00072 const float projection_mat[16], 00073 const float modelview_mat[16], 00074 vtkFloatArray *outPoints); 00075 00077 00079 virtual bool IsSupported(vtkRenderWindow *) 00080 { return false; } 00082 00083 protected: 00084 vtkProjectedTetrahedraMapper(); 00085 ~vtkProjectedTetrahedraMapper(); 00086 00087 vtkVisibilitySort *VisibilitySort; 00088 00091 virtual void ReportReferences(vtkGarbageCollector *collector); 00092 00093 private: 00094 vtkProjectedTetrahedraMapper(const vtkProjectedTetrahedraMapper &); // Not Implemented. 00095 void operator=(const vtkProjectedTetrahedraMapper &); // Not Implemented. 00096 }; 00097 00098 #endif