-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkPProjectedTetrahedraMapper.h
64 lines (50 loc) · 1.91 KB
/
vtkPProjectedTetrahedraMapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef vtkPProjectedTetrahedraMapper_h
#define vtkPProjectedTetrahedraMapper_h
#include "vtkRenderingVolumeModule.h" // For export macro
#include "vtkUnstructuredGridVolumeMapper.h"
class vtkFloatArray;
class vtkPoints;
class vtkUnsignedCharArray;
class vtkPVisibilitySort;//
class vtkVolumeProperty;
class vtkRenderWindow;
class vtkPProjectedTetrahedraMapper : public vtkUnstructuredGridVolumeMapper
{
public:
virtual void SetNumberOfVST(int)=0;
virtual void SetNumberOfCDT(int) = 0;
vtkTypeMacro(vtkPProjectedTetrahedraMapper,
vtkUnstructuredGridVolumeMapper);
static vtkPProjectedTetrahedraMapper *New();
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
virtual void SetVisibilitySort(vtkPVisibilitySort *sort);
vtkGetObjectMacro(VisibilitySort, vtkPVisibilitySort);
static void MapScalarsToColors(vtkDataArray *colors,
vtkVolumeProperty *property,
vtkDataArray *scalars);
static void TransformPoints(vtkPoints *inPoints,
const float projection_mat[16],
const float modelview_mat[16],
vtkFloatArray *outPoints);
/**
* Return true if the rendering context provides
* the nececessary functionality to use this class.
*/
virtual bool IsSupported(vtkRenderWindow *)
{ return false; }
protected:
vtkPProjectedTetrahedraMapper();
~vtkPProjectedTetrahedraMapper() VTK_OVERRIDE;
vtkPVisibilitySort *VisibilitySort;
/**
* The visibility sort will probably make a reference loop by holding a
* reference to the input.
*/
void ReportReferences(vtkGarbageCollector *collector) VTK_OVERRIDE;
int VST = 1;
int CDT = 1;
private:
vtkPProjectedTetrahedraMapper(const vtkPProjectedTetrahedraMapper &) VTK_DELETE_FUNCTION;
void operator=(const vtkPProjectedTetrahedraMapper &) VTK_DELETE_FUNCTION;
};
#endif