Developer documentation | Axl-2.5.1

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