Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95091288
betascene.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 19:11
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Dec 14, 19:11 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22930939
Attached To
rSYMKIT symkit
betascene.h
View Options
#ifndef __ALPHA_SCENE_H__
#define __ALPHA_SCENE_H__
#include "scene.h"
#include "listeners/keylistener.h"
//Forward include
class
NewtonSphere
;
class
Marbled
;
class
Pendule
;
class
Ressor
;
class
SKViewer
;
class
PenduleCouple
;
class
PenduleR
;
class
SKPlot2D
;
namespace
models
{
class
GLSphere
;
class
GLMarbled
;
}
class
BetaScene
:
public
Scene
,
KeyListener
{
public:
/* Constructor and destructor */
BetaScene
(
SKViewer
*
viewer
,
QWidget
*
parent
=
0
);
~
BetaScene
();
signals:
void
freezeScene
(
bool
);
private:
Q_OBJECT
/* initialize in order to load sphere buffer */
virtual
void
initialize
()
override
;
/* In order to update plotting */
virtual
void
tickPlugin
(
float
dt
)
override
;
/* Window close qt handler */
virtual
void
closeEvent
(
QCloseEvent
*
)
override
;
virtual
void
onKeyPress
(
int
key
)
override
;
virtual
void
onKeyRelease
(
int
key
)
override
;
/* A sphere object */
NewtonSphere
*
sphere
;
/* The murbled plan */
Marbled
*
marbled
;
/* The pendule */
Pendule
*
pendule
;
/* The ressor */
Ressor
*
ressor
;
/* The pendulecouple */
//Exemple de d'oscillateur construit avec un constructeur complet, décommenter pour verifier son fonctionnement
//PenduleCouple * penduleCouple2;
PenduleCouple
*
penduleCouple
;
/* The penduleressort */
PenduleR
*
penduleRessort
;
/* Models used */
models
::
GLSphere
*
sphereModel
;
models
::
GLMarbled
*
marbledModel
;
/* Viewer class */
SKViewer
*
viewer
;
bool
freezed
;
};
#endif
Event Timeline
Log In to Comment