]> Creatis software - clitk.git/blob - vv/vvGlyphSource.h
remove antique RCS headers
[clitk.git] / vv / vvGlyphSource.h
1 /*=========================================================================
2
3  Program:   vv
4  Language:  C++
5  Author :   Pierre Seroul (pierre.seroul@gmail.com)
6
7 Copyright (C) 2008
8 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
9 CREATIS-LRMN http://www.creatis.insa-lyon.fr
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, version 3 of the License.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23 =========================================================================*/
24 #ifndef __vvGlyphSource_h
25 #define __vvGlyphSource_h
26
27 #include "vtkGlyphSource2D.h"
28
29 #define VTK_SPECIFICARROW_GLYPH 13
30
31 class vvGlyphSource: public vtkGlyphSource2D
32 {
33 public:
34     static vvGlyphSource *New();
35     vtkTypeRevisionMacro(vvGlyphSource,vtkGlyphSource2D);
36     void PrintSelf(ostream& os, vtkIndent indent);
37
38     void SetGlyphTypeToSpecificArrow() {
39         this->SetGlyphType(VTK_SPECIFICARROW_GLYPH);
40     }
41
42     vtkSetClampMacro(GlyphType,int,VTK_NO_GLYPH,VTK_SPECIFICARROW_GLYPH);
43
44 protected:
45     void CreateSpecificArrow(vtkPoints *pts, vtkCellArray *lines,
46                              vtkCellArray *polys, vtkUnsignedCharArray *colors);
47
48     int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
49
50 private:
51
52
53 };
54 #endif