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 
45 #ifndef vtkProjectedTetrahedraMapper_h
46 #define vtkProjectedTetrahedraMapper_h
47 
48 #include "vtkRenderingVolumeModule.h" // For export macro
50 
51 class vtkFloatArray;
52 class vtkPoints;
54 class vtkVisibilitySort;
55 class vtkVolumeProperty;
56 class vtkRenderWindow;
57 
58 class VTKRENDERINGVOLUME_EXPORT vtkProjectedTetrahedraMapper : public vtkUnstructuredGridVolumeMapper
59 {
60 public:
61  vtkTypeMacro(vtkProjectedTetrahedraMapper,
64  void PrintSelf(ostream &os, vtkIndent indent) override;
65 
66  virtual void SetVisibilitySort(vtkVisibilitySort *sort);
67  vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort);
68 
69  static void MapScalarsToColors(vtkDataArray *colors,
70  vtkVolumeProperty *property,
71  vtkDataArray *scalars);
72  static void TransformPoints(vtkPoints *inPoints,
73  const float projection_mat[16],
74  const float modelview_mat[16],
75  vtkFloatArray *outPoints);
76 
81  virtual bool IsSupported(vtkRenderWindow *)
82  { return false; }
83 
84 protected:
86  ~vtkProjectedTetrahedraMapper() override;
87 
89 
94  void ReportReferences(vtkGarbageCollector *collector) override;
95 
96 private:
98  void operator=(const vtkProjectedTetrahedraMapper &) = delete;
99 };
100 
101 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract class that can sort cell data along a viewpoint.
void ReportReferences(vtkGarbageCollector *) override
virtual bool IsSupported(vtkRenderWindow *)
Return true if the rendering context provides the nececessary functionality to use this class...
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:39
Unstructured grid volume renderer.
Abstract class for an 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:39