Developer documentation | Axl-2.5.1

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