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
51class vtkFloatArray;
52class vtkPoints;
56class vtkRenderWindow;
57
58class VTKRENDERINGVOLUME_EXPORT vtkProjectedTetrahedraMapper : public vtkUnstructuredGridVolumeMapper
59{
60public:
64 virtual void PrintSelf(ostream &os, vtkIndent indent);
65
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
82 { return false; }
83
84protected:
87
89
94 void ReportReferences(vtkGarbageCollector *collector) VTK_OVERRIDE;
95
96private:
98 void operator=(const vtkProjectedTetrahedraMapper &) VTK_DELETE_FUNCTION;
99};
100
101#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
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 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 void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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 a unstructured grid volume mapper.
Abstract class that can sort cell data along a viewpoint.
represents the common properties for rendering a volume.