-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvtkColoredCube.h
70 lines (54 loc) · 1.67 KB
/
vtkColoredCube.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
65
66
67
68
69
#ifndef vtkColoredCube_h
#define vtkColoredCube_h
#include "vtkObject.h"
class vtkTessellatedBoxSource;
class vtkClipConvexPolyData;
class vtkPlaneCollection;
class vtkColorPolyData;
class vtkTriangleFilter;
class vtkUnsignedIntArray;
class vtkPolyData;
class vtkRenderer;
class vtkWindow;
class vtkMatrix4x4;
class vtkColoredCube : public vtkObject
{
public:
static vtkColoredCube *New();
vtkTypeMacro(vtkColoredCube,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
void UpdateGeometry( vtkRenderer * ren, vtkMatrix4x4 * mat );
void Render();
// Description:
// Release any graphics resources that are being consumed by this actor.
// The parameter window could be used to determine which graphic
// resources to release.
void ReleaseGraphicsResources(vtkWindow *);
// Description:
// Specify the bounding box and cropping region
vtkGetVector6Macro( Bounds, double );
vtkSetVector6Macro( Bounds, double );
vtkGetVector6Macro( CroppingRegionPlanes, double );
vtkSetVector6Macro( CroppingRegionPlanes, double );
void SetCropping( int c );
vtkGetMacro( Cropping, int );
vtkBooleanMacro( Cropping, int );
protected:
vtkColoredCube();
~vtkColoredCube();
// Drawing the bounding box
int Cropping;
double Bounds[6];
double CroppingRegionPlanes[6];
vtkTessellatedBoxSource * BoxSource;
vtkClipConvexPolyData * BoxClip;
vtkColorPolyData * BoxColoring;
vtkTriangleFilter * BoxTriangles;
vtkUnsignedIntArray * BoxIndices;
vtkPlaneCollection * AllPlanes;
vtkPlaneCollection * NearFarPlanes;
private:
vtkColoredCube(const vtkColoredCube&); // Not implemented.
void operator=(const vtkColoredCube&); // Not implemented.
};
#endif