BALL
1.5.0
source
APPLICATIONS
BALLVIEW
demoTutorialDialog.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id:
5
6
#ifndef BALL_DEMOTUTORIALDIALOG_H
7
#define BALL_DEMOTUTORIALDIALOG_H
8
9
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
10
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
11
#endif
12
13
#ifndef BALL_VIEW_PRIMITIV_MESH_H
14
# include <
BALL/VIEW/PRIMITIVES/mesh.h
>
15
#endif
16
17
#include <
BALL/DATATYPE/regularData3D.h
>
18
19
#include "ui_demoTutorialDialog.h"
20
21
#include <QtWidgets/QDialog>
22
23
namespace
BALL
24
{
25
class
System;
26
class
Composite;
27
28
namespace
VIEW
29
{
32
class
DemoTutorialDialog
:
33
public
QDialog
,
34
public
Ui_DemoTutorialDialogData,
35
public
ModularWidget
36
{
37
Q_OBJECT
38
BALL_EMBEDDABLE
(
DemoTutorialDialog
,
ModularWidget
)
39
40
public
:
41
43
DemoTutorialDialog
(
QWidget
*parent = NULL,
const
char
*name = NULL );
44
46
virtual
~DemoTutorialDialog
();
47
49
virtual
void
onNotify
(
Message
*message);
50
51
virtual
void
initializeWidget
(
MainControl
& main_control);
52
54
void
setDemoMode
(
bool
) { tutorial_type_ = DEMO; }
55
57
//void setTutorialType(int type) { tutorial_type_ = type;}
58
59
public
Q_SLOTS:
60
62
void
show
();
63
65
void
showDemo
();
66
68
void
showTutorial
();
69
71
void
showRaytracingTutorial
();
72
74
void
nextStepClicked
();
75
76
virtual
void
checkMenu
(
MainControl
& main_control);
77
78
protected
:
79
80
void
nextStepDemo_
();
81
void
nextStepTutorial_
();
82
83
void
initDemo_
();
84
void
initTutorials_
();
85
86
void
enableNextStep_
();
87
88
virtual
void
onNotifyTutorial_
(
Message
*message);
89
virtual
void
onNotifyRaytracingTutorial_
(
Message
*message);
90
virtual
void
onNotifyDemo_
(
Message
*message);
91
92
void
addPlane_
(
char
plane_specifier,
int
height,
int
boundary,
bool
bottom =
true
);
93
94
String
getBaseDir_
();
95
96
private
:
97
98
enum
TUTORIAL_TYPE
99
{
100
DEMO,
101
TUTORIAL,
102
RAYTRACING_TUTORIAL
103
};
104
105
TUTORIAL_TYPE tutorial_type_;
106
107
std::list<Composite*> composites_;
108
109
RegularData3D
* grid_;
110
System
* system_;
111
112
String
prefix_;
113
Position
current_step_;
114
Mesh
* surface_;
115
QAction* demo_action_, *tutorial_action_, *raytracing_tutorial_action_;
116
};
117
118
} }
// namespaces
119
120
#endif // BALL_DEMOTUTORIALDIALOG_H
BALL::VIEW::DemoTutorialDialog::onNotify
virtual void onNotify(Message *message)
Message handling method.
Definition:
demoTutorialDialog.C:254
BALL::VIEW::DemoTutorialDialog
Definition:
demoTutorialDialog.h:36
BALL::VIEW::DemoTutorialDialog::addPlane_
void addPlane_(char plane_specifier, int height, int boundary, bool bottom=true)
Definition:
demoTutorialDialog.C:413
BALL::VIEW::DemoTutorialDialog::nextStepClicked
void nextStepClicked()
Next Step.
Definition:
demoTutorialDialog.C:319
BALL::VIEW::DemoTutorialDialog::onNotifyRaytracingTutorial_
virtual void onNotifyRaytracingTutorial_(Message *message)
Definition:
demoTutorialDialog.C:888
BALL::TRegularData3D< float >
BALL::VIEW::DemoTutorialDialog::initTutorials_
void initTutorials_()
Definition:
demoTutorialDialog.C:138
mesh.h
BALL::System
Definition:
KERNEL/system.h:40
BALL::VIEW::DemoTutorialDialog::showRaytracingTutorial
void showRaytracingTutorial()
Definition:
demoTutorialDialog.C:757
QDialog
BALL::VIEW::Message
Definition:
message.h:53
BALL::VIEW::DemoTutorialDialog::getBaseDir_
String getBaseDir_()
Definition:
demoTutorialDialog.C:132
BALL::VIEW::DemoTutorialDialog::onNotifyDemo_
virtual void onNotifyDemo_(Message *message)
Definition:
demoTutorialDialog.C:272
BALL::String
Definition:
string.h:57
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL::VIEW::DemoTutorialDialog::initializeWidget
virtual void initializeWidget(MainControl &main_control)
Definition:
demoTutorialDialog.C:950
BALL::VIEW::MainControl
Definition:
mainControl.h:118
BALL
Definition:
constants.h:13
QWidget
BALL::VIEW::DemoTutorialDialog::show
void show()
Show and raise the dialog.
Definition:
demoTutorialDialog.C:228
modularWidget.h
BALL::VIEW::DemoTutorialDialog::DemoTutorialDialog
DemoTutorialDialog(QWidget *parent=NULL, const char *name=NULL)
Default Constructor.
Definition:
demoTutorialDialog.C:51
BALL_SIZE_TYPE
BALL::VIEW::DemoTutorialDialog::~DemoTutorialDialog
virtual ~DemoTutorialDialog()
Destructor.
Definition:
demoTutorialDialog.C:80
BALL::VIEW::DemoTutorialDialog::checkMenu
virtual void checkMenu(MainControl &main_control)
Definition:
demoTutorialDialog.C:976
BALL::VIEW::DemoTutorialDialog::nextStepTutorial_
void nextStepTutorial_()
BALL::VIEW::DemoTutorialDialog::onNotifyTutorial_
virtual void onNotifyTutorial_(Message *message)
Definition:
demoTutorialDialog.C:776
BALL::VIEW::DemoTutorialDialog::nextStepDemo_
void nextStepDemo_()
Definition:
demoTutorialDialog.C:558
BALL::VIEW::Mesh
Definition:
mesh.h:42
BALL::VIEW::DemoTutorialDialog::initDemo_
void initDemo_()
Definition:
demoTutorialDialog.C:89
BALL::VIEW::DemoTutorialDialog::setDemoMode
void setDemoMode(bool)
Definition:
demoTutorialDialog.h:54
BALL::VIEW::DemoTutorialDialog::showTutorial
void showTutorial()
Definition:
demoTutorialDialog.C:764
regularData3D.h
BALL::VIEW::DemoTutorialDialog::enableNextStep_
void enableNextStep_()
Definition:
demoTutorialDialog.C:313
BALL::VIEW::DemoTutorialDialog::showDemo
void showDemo()
Definition:
demoTutorialDialog.C:770
BALL::VIEW::ModularWidget
Definition:
modularWidget.h:63
Generated by
1.8.20