VTK
vtkProjectedTetrahedraMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProjectedTetrahedraMapper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 /*
17  * Copyright 2003 Sandia Corporation.
18  * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19  * license for use of this work by or on behalf of the
20  * U.S. Government. Redistribution and use in source and binary forms, with
21  * or without modification, are permitted provided that this Notice and any
22  * statement of authorship are reproduced on all copies.
23  */
24 
44 #ifndef __vtkProjectedTetrahedraMapper_h
45 #define __vtkProjectedTetrahedraMapper_h
46 
47 #include "vtkRenderingVolumeModule.h" // For export macro
49 
50 class vtkFloatArray;
51 class vtkPoints;
53 class vtkVisibilitySort;
54 class vtkVolumeProperty;
55 
56 class VTKRENDERINGVOLUME_EXPORT vtkProjectedTetrahedraMapper : public vtkUnstructuredGridVolumeMapper
57 {
58 public:
59  vtkTypeMacro(vtkProjectedTetrahedraMapper,
62  virtual void PrintSelf(ostream &os, vtkIndent indent);
63 
64  virtual void SetVisibilitySort(vtkVisibilitySort *sort);
65  vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort);
66 
67  static void MapScalarsToColors(vtkDataArray *colors,
68  vtkVolumeProperty *property,
69  vtkDataArray *scalars);
70  static void TransformPoints(vtkPoints *inPoints,
71  const float projection_mat[16],
72  const float modelview_mat[16],
73  vtkFloatArray *outPoints);
74 
75 protected:
78 
80 
83  virtual void ReportReferences(vtkGarbageCollector *collector);
84 
85 private:
87  void operator=(const vtkProjectedTetrahedraMapper &); // Not Implemented.
88 };
89 
90 #endif