VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkFloatArray;
34 class vtkPoints;
36 class vtkVisibilitySort;
37 class vtkVolumeProperty;
38 class vtkRenderWindow;
39 
40 class VTKRENDERINGVOLUME_EXPORT VTK_MARSHALAUTO vtkProjectedTetrahedraMapper
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  virtual void SetVisibilitySort(vtkVisibilitySort* sort);
49  vtkGetObjectMacro(VisibilitySort, vtkVisibilitySort);
50 
51  static void MapScalarsToColors(
52  vtkDataArray* colors, vtkVolumeProperty* property, vtkDataArray* scalars);
53  static void TransformPoints(vtkPoints* inPoints, const float projection_mat[16],
54  const float modelview_mat[16], vtkFloatArray* outPoints);
55 
60  virtual bool IsSupported(vtkRenderWindow*) { return false; }
61 
62 protected:
64  ~vtkProjectedTetrahedraMapper() override;
65 
67 
72  void ReportReferences(vtkGarbageCollector* collector) override;
73 
74 private:
76  void operator=(const vtkProjectedTetrahedraMapper&) = delete;
77 };
78 
79 VTK_ABI_NAMESPACE_END
80 #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:31
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()
#define VTK_MARSHALAUTO
represent and manipulate 3D points
Definition: vtkPoints.h:30