Developer documentation | Axl-2.5.1

axlActorLine.h
Go to the documentation of this file.
1 /* axlActorLine.h ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Fri Dec 17 10:58:38 2010 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Dec 17 14:11:14 2012 (+0100)
8  * By: Julien Wintz
9  * Update #: 7
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLACTORLINE_H
21 #define AXLACTORLINE_H
22 
23 #include "axlActor.h"
24 
25 #include <QVTKOpenGLWidget.h>
26 
27 #include "axlVtkViewPluginExport.h"
28 
29 class axlLine;
30 
31 class vtkLineSource;
32 
33 class axlActorLinePrivate;
34 
36 {
37 public:
38 #if (VTK_MAJOR_VERSION <= 5)
39  vtkTypeRevisionMacro(axlActorLine, vtkAssembly);
40 #endif
41 
42  static axlActorLine *New(void);
43 
44 public:
45  dtkAbstractData *data(void);
46  vtkLineSource *line(void);
47 
48 public:
49  void setDisplay(bool display);
50  void showLineWidget(bool show);
51  void setLineWidget(bool lineWidget);
52  bool isShowLineWidget(void);
53  virtual void setData(dtkAbstractData *line1);
54  void setMode(int state);
55  void setQVTKWidget(QVTKOpenGLWidget *widget);
56  void setSize(double size);
57 
58 
59 public slots:
60  void update(void);
61  void onModeChanged(int state);
62  void onRemoved();
63  void onUpdateGeometry();
64 
65 protected:
66  axlActorLine(void);
67  ~axlActorLine(void);
68 
69 private:
70  axlActorLine(const axlActorLine&); // Not implemented.
71  void operator = (const axlActorLine&); // Not implemented.
72 
73 private:
74  axlActorLinePrivate *d;
75 };
76 
77 // /////////////////////////////////////////////////////////////////
78 // Type instanciation
79 // /////////////////////////////////////////////////////////////////
80 
82 
83 
84 
85 #endif //AXLACTORLINE_H
virtual void onUpdateGeometry(void)=0
#define AXLVTKVIEWPLUGIN_EXPORT
Class axlLine defines 3D lines.
Definition: axlLine.h:35
virtual void setDisplay(bool display)
Definition: axlActor.cpp:440
virtual void update(void)
Definition: axlActor.cpp:608
virtual void setMode(int state)
virtual void setSize(double size)
Definition: axlActor.cpp:471
virtual void onRemoved(void)
Definition: axlActor.cpp:613
virtual dtkAbstractData * data(void)=0
axlAbstractActor * createAxlActorLine(void)
virtual void onModeChanged(int state)
virtual void setData(dtkAbstractData *data)