Developer documentation | Axl-2.5.1

axlActorCylinder.h
Go to the documentation of this file.
1 /* axlActorCylinder.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:06:44 2012 (+0100)
8  * By: Julien Wintz
9  * Update #: 14
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLACTORCYLINDER_H
21 #define AXLACTORCYLINDER_H
22 
23 #include "axlActor.h"
24 
25 #include "axlVtkViewPluginExport.h"
26 
27 #include <QVTKOpenGLWidget.h>
28 
29 #include <vtkVersion.h>
30 
31 class axlActorCylinderPrivate;
32 class axlCylinder;
33 
34 class vtkCylinderSource;
35 
37 {
38 public:
39 #if (VTK_MAJOR_VERSION <= 5)
40  vtkTypeRevisionMacro(axlActorCylinder, vtkAssembly);
41 #endif
42 
43  static axlActorCylinder *New(void);
44 
45 public:
46  dtkAbstractData *data(void);
47  vtkCylinderSource *cylinder(void);
48 
49 
50 public:
51  void setDisplay(bool display);
52  void showCylinderWidget(bool show);
53  void setCylinderWidget(bool cylinderWidget);
54  bool isShowCylinderWidget(void);
55  virtual void setData(dtkAbstractData *cylinder1);
56  void setMode(int state);
57  void setQVTKWidget(QVTKOpenGLWidget *widget);
58 
59 public slots:
60  void onModeChanged(int state);
61  void onRemoved();
62  void onUpdateGeometry();
63 
64 protected:
65  axlActorCylinder(void);
66  ~axlActorCylinder(void);
67 
68 private:
69  axlActorCylinder(const axlActorCylinder&); // Not implemented.
70  void operator = (const axlActorCylinder&); // Not implemented.
71 
72 private:
73  axlActorCylinderPrivate *d;
74 };
75 
77 
78 #endif //AXLACTORCYLINDER_H
virtual void onUpdateGeometry(void)=0
#define AXLVTKVIEWPLUGIN_EXPORT
axlAbstractActor * createAxlActorCylinder(void)
virtual void setDisplay(bool display)
Definition: axlActor.cpp:440
Class axlCylinder defines 3D cylinders.
Definition: axlCylinder.h:33
virtual void setMode(int state)
virtual void onRemoved(void)
Definition: axlActor.cpp:613
virtual dtkAbstractData * data(void)=0
virtual void onModeChanged(int state)
virtual void setData(dtkAbstractData *data)