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