]> Creatis software - clitk.git/blob - vv/vvGlyph2D.h
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvGlyph2D.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 __vvGlyph2D_h
19 #define __vvGlyph2D_h
20 #include "vtkGlyph3D.h"
21
22 class vvGlyph2D : public vtkGlyph3D
23 {
24 public:
25     vtkTypeMacro(vvGlyph2D,vtkGlyph3D);
26     void PrintSelf(ostream& os, vtkIndent indent);
27
28     // Description
29     // Construct object with scaling on, scaling mode is by scalar value,
30     // scale factor = 1.0, the range is (0,1), orient geometry is on, and
31     // orientation is by vector. Clamping and indexing are turned off. No
32     // initial sources are defined.
33     void SetOrientation(int x,int y,int z);
34     static vvGlyph2D *New();
35
36     void SetUseLog(int log) {
37         mUseLog = log;
38     }
39     int GetUseLog() {
40         return mUseLog;
41     }
42
43 protected:
44     vvGlyph2D();
45     ~vvGlyph2D() {};
46
47     virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
48
49 private:
50     vvGlyph2D(const vvGlyph2D&);  // Not implemented.
51     void operator=(const vvGlyph2D&);  // Not implemented.
52     double mOrientation[3];
53     int mUseLog;
54 };
55
56 #endif