Developer documentation | Axl-2.5.1

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