VTK  9.2.5
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
51class vtkFloatArray;
52class vtkPoints;
56class vtkRenderWindow;
57
58class VTKRENDERINGVOLUME_EXPORT vtkProjectedTetrahedraMapper
60{
61public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
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
80protected:
83
85
90 void ReportReferences(vtkGarbageCollector* collector) override;
91
92private:
94 void operator=(const vtkProjectedTetrahedraMapper&) = delete;
95};
96
97#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:56
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 3D points
Definition: vtkPoints.h:40
Unstructured grid volume renderer.
virtual void SetVisibilitySort(vtkVisibilitySort *sort)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkProjectedTetrahedraMapper() override
void ReportReferences(vtkGarbageCollector *collector) override
The visibility sort will probably make a reference loop by holding a reference to the input.
static void TransformPoints(vtkPoints *inPoints, const float projection_mat[16], const float modelview_mat[16], vtkFloatArray *outPoints)
static vtkProjectedTetrahedraMapper * New()
static void MapScalarsToColors(vtkDataArray *colors, vtkVolumeProperty *property, vtkDataArray *scalars)
virtual bool IsSupported(vtkRenderWindow *)
Return true if the rendering context provides the nececessary functionality to use this class.
create a window for renderers to draw into
dynamic, self-adjusting array of unsigned char
Abstract class for an unstructured grid volume mapper.
Abstract class that can sort cell data along a viewpoint.
represents the common properties for rendering a volume.