-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvtkAttributedPolyDataToImage.h
62 lines (46 loc) · 1.73 KB
/
vtkAttributedPolyDataToImage.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
/*
* This is a subclass of vtkPolyDataToImageStencilOBBTree, with extended functionality to build a lookup from the
* stencil back to the triangles of the mesh.
*
* Author: Ipek Oguz
*
*/
#ifndef _vtkAttributedPolyDataToImage_h
#define _vtkAttributedPolyDataToImage_h
#include "vtkPolyDataToImageStencilOBBTree.h"
#include "vtkIdList.h"
#include "vtkIdTypeArray.h"
#include "vtkPoints.h"
#include "vtkCell.h"
#include "vtkImageData.h"
#include "vtkFloatArray.h"
#include "vtkImageStencil.h"
#include "vtkSmartPointer.h"
class vtkAttributedPolyDataToImage : public vtkPolyDataToImageStencilOBBTree
{
public:
static vtkAttributedPolyDataToImage *New();
vtkTypeMacro(vtkAttributedPolyDataToImage, vtkPolyDataToImageStencilOBBTree);
//void PrintSelf(ostream& os, vtkIndent indent);
vtkSetMacro(Attributes, vtkFloatArray *) ;
vtkSmartPointer<vtkImageData> GetAttributeVolume () ;
vtkSmartPointer<vtkImageData> GetBinaryVolume () ;
protected:
vtkAttributedPolyDataToImage();
~vtkAttributedPolyDataToImage();
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
//void BuildLookup () ;
void ComputeAttributeVolume () ;
private:
vtkAttributedPolyDataToImage (const vtkAttributedPolyDataToImage&); // Not implemented.
void operator=(const vtkAttributedPolyDataToImage&); // Not implemented.
vtkSmartPointer<vtkImageData> BinaryVolume, AttributeVolume ;
vtkSmartPointer<vtkFloatArray> Attributes ;
vtkSmartPointer<vtkIdTypeArray> faceList ;
vtkSmartPointer<vtkPoints> pointList ;
vtkSmartPointer<vtkPolyData> mesh ;
vtkSmartPointer<vtkImageStencil> stencil ;
typedef vtkImageStencilSource SuperSuperclass ;
bool ScanConvertPerformed ;
} ;
#endif