forked from dgobbi/ToolCursor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkGeometricCursorShapes.h
55 lines (42 loc) · 1.77 KB
/
vtkGeometricCursorShapes.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
/*=========================================================================
Program: ToolCursor
Module: vtkGeometricCursorShapes.h
Copyright (c) 2010 David Gobbi
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkGeometricCursorShapes - Basic geometrical cursor shapes.
// .SECTION Description
// This class is a collection of geometric cursor shapes for use with the
// vtkToolCursor. All shapes come in two varieties, one with a single
// color and another with a two-tone color scheme, where the colors are
// separated by a split at the Z plane. The names of the shapes are
// "Cross", "SplitCross", "Sphere", "SplitSphere", "Cone", and "DualCone".
#ifndef __vtkGeometricCursorShapes_h
#define __vtkGeometricCursorShapes_h
#include "vtkCursorShapes.h"
class vtkPolyData;
class VTK_EXPORT vtkGeometricCursorShapes : public vtkCursorShapes
{
public:
// Description:
// Instantiate the object.
static vtkGeometricCursorShapes *New();
// Description:
// Standard vtkObject methods
vtkTypeMacro(vtkGeometricCursorShapes,vtkCursorShapes);
void PrintSelf(ostream& os, vtkIndent indent);
protected:
vtkGeometricCursorShapes();
~vtkGeometricCursorShapes();
void MakeShapes();
static vtkDataSet *MakeCrossShape(int splitCross);
static vtkDataSet *MakeSphereShape(int splitSphere);
static vtkDataSet *MakeConeShape(int doubleCone);
private:
vtkGeometricCursorShapes(const vtkGeometricCursorShapes&); //Not implemented
void operator=(const vtkGeometricCursorShapes&); //Not implemented
};
#endif