VTK  9.3.1
vtkProjectedTetrahedraMapper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2003 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4 
25 #ifndef vtkProjectedTetrahedraMapper_h
26 #define vtkProjectedTetrahedraMapper_h
27 
28 #include "vtkRenderingVolumeModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkFloatArray;
33 class vtkPoints;
35 class vtkVisibilitySort;
36 class vtkVolumeProperty;
37 class vtkRenderWindow;
38 
39 class VTKRENDERINGVOLUME_EXPORT vtkProjectedTetrahedraMapper
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47  virtual void SetVisibilitySort(vtkVisibilitySort* sort);
48  vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort);
49 
50  static void MapScalarsToColors(
51  vtkDataArray* colors, vtkVolumeProperty* property, vtkDataArray* scalars);
52  static void TransformPoints(vtkPoints* inPoints, const float projection_mat[16],
53  const float modelview_mat[16], vtkFloatArray* outPoints);
54 
59  virtual bool IsSupported(vtkRenderWindow*) { return false; }
60 
61 protected:
63  ~vtkProjectedTetrahedraMapper() override;
64 
66 
71  void ReportReferences(vtkGarbageCollector* collector) override;
72 
73 private:
75  void operator=(const vtkProjectedTetrahedraMapper&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #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:30
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:28
Unstructured grid volume renderer.
Abstract class for an unstructured grid volume mapper.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
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:28