Developer documentation | Axl-2.5.1

axlActorBSpline.h
Go to the documentation of this file.
1 /* axlActorBSpline.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 Mar 28 17:11:18 2011 (+0200)
8  * By: Julien Wintz
9  * Update #: 12
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLACTORBSPLINE_H
21 #define AXLACTORBSPLINE_H
22 
23 #include "axlActor.h"
24 
25 #include "axlVtkViewPluginExport.h"
26 
28 
29 class vtkCommand;
30 class vtkSphereSource;
31 
32 
33 class axlActorBSplinePrivate;
34 
36 {
37 
38 public:
39  virtual dtkAbstractData *data(void) = 0;
40 
41 public:
42  virtual void setDisplay(bool display);
43  virtual void setMode(int state);
44  virtual axlControlPointsWidget *getControlPoints(void);
45  virtual void setControlPoints(axlControlPointsWidget *controlPoints);
46  virtual void showControlPoints(bool show);
47 
48  virtual void setControlPolygon(bool control);
49  virtual bool isShowControlPoints(void);
50 
51  virtual void addToObserver(int idEvent, vtkCommand *observer);
52 
53 
54  virtual void onUpdateGeometry(void) {
55  qDebug() << Q_FUNC_INFO << "NOT IMPLEMENTED";
56  }
57 
58  virtual void onUpdateStructure(void) {
59  this->setControlPolygon(false);
60  this->setControlPolygon(true);
61  }
62 
63 public slots:
64 
65  virtual void initCurrentPoint(void);
66  virtual void onModeChanged(int state);
67 
68  virtual void onControlPointChanged();
69 
70  virtual void onRemoved(void);
71  virtual void showCurrentPoint(double u, double v, dtkAbstractData *data);
72  virtual void moveCurrentPoint(double u, double v, dtkAbstractData *data);
73  virtual void hideCurrentPoint(double u, double v, dtkAbstractData *data);
74 
75 protected:
76  axlActorBSpline(void);
77  ~axlActorBSpline(void);
78 
79 private:
80  axlActorBSplinePrivate *d;
81 };
82 
83 #endif //AXLACTORBSPLINE_H
virtual void hideCurrentPoint(double u, double v, dtkAbstractData *data)
virtual void showCurrentPoint(double u, double v, dtkAbstractData *data)
#define AXLVTKVIEWPLUGIN_EXPORT
virtual void setDisplay(bool display)
Definition: axlActor.cpp:440
virtual bool isShowControlPoints(void)
virtual void showControlPoints(bool show)
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 moveCurrentPoint(double u, double v, dtkAbstractData *data)
virtual void onUpdateGeometry(void)
virtual void onControlPointChanged(void)
virtual void onUpdateStructure(void)