]> Creatis software - clitk.git/blob - vv/vvGlyphSource.h
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvGlyphSource.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef __vvGlyphSource_h
19 #define __vvGlyphSource_h
20 #include "vtkGlyphSource2D.h"
21
22 #define VTK_SPECIFICARROW_GLYPH 13
23
24 class vvGlyphSource: public vtkGlyphSource2D
25 {
26 public:
27     static vvGlyphSource *New();
28     vtkTypeMacro(vvGlyphSource,vtkGlyphSource2D);
29     void PrintSelf(ostream& os, vtkIndent indent);
30
31     void SetGlyphTypeToSpecificArrow() {
32         this->SetGlyphType(VTK_SPECIFICARROW_GLYPH);
33     }
34
35     vtkSetClampMacro(GlyphType,int,VTK_NO_GLYPH,VTK_SPECIFICARROW_GLYPH);
36
37 protected:
38     void CreateSpecificArrow(vtkPoints *pts, vtkCellArray *lines,
39                              vtkCellArray *polys, vtkUnsignedCharArray *colors);
40
41     int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
42
43 private:
44
45
46 };
47 #endif