Developer documentation | Axl-2.5.1

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