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 class vtkRenderWindow;
56 
58 {
59 public:
60  vtkTypeMacro(vtkProjectedTetrahedraMapper,
63  virtual void PrintSelf(ostream &os, vtkIndent indent);
64 
65  virtual void SetVisibilitySort(vtkVisibilitySort *sort);
66  vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort);
67 
68  static void MapScalarsToColors(vtkDataArray *colors,
69  vtkVolumeProperty *property,
70  vtkDataArray *scalars);
71  static void TransformPoints(vtkPoints *inPoints,
72  const float projection_mat[16],
73  const float modelview_mat[16],
74  vtkFloatArray *outPoints);
75 
77 
79  virtual bool IsSupported(vtkRenderWindow *)
80  { return false; }
82 
83 protected:
86 
88 
91  virtual void ReportReferences(vtkGarbageCollector *collector);
92 
93 private:
95  void operator=(const vtkProjectedTetrahedraMapper &); // Not Implemented.
96 };
97 
98 #endif
#define VTKRENDERINGVOLUME_EXPORT
Abstract class that can sort cell data along a viewpoint.
virtual bool IsSupported(vtkRenderWindow *)
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
Unstructured grid volume renderer.
Abstract class for a unstructured grid volume mapper.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
represents the common properties for rendering a volume.
dynamic, self-adjusting array of unsigned char
create a window for renderers to draw into
static vtkAlgorithm * New()
represent and manipulate 3D points
Definition: vtkPoints.h:38
void PrintSelf(ostream &os, vtkIndent indent)