VTK  9.2.6
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
60 {
61 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
66  virtual void SetVisibilitySort(vtkVisibilitySort* sort);
67  vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort);
68 
69  static void MapScalarsToColors(
70  vtkDataArray* colors, vtkVolumeProperty* property, vtkDataArray* scalars);
71  static void TransformPoints(vtkPoints* inPoints, const float projection_mat[16],
72  const float modelview_mat[16], vtkFloatArray* outPoints);
73 
78  virtual bool IsSupported(vtkRenderWindow*) { return false; }
79 
80 protected:
82  ~vtkProjectedTetrahedraMapper() override;
83 
85 
90  void ReportReferences(vtkGarbageCollector* collector) override;
91 
92 private:
94  void operator=(const vtkProjectedTetrahedraMapper&) = delete;
95 };
96 
97 #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:55
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