scg3  0.6
MouseController.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright 2014 Volker Ahlers
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 
25 #ifndef MOUSECONTROLLER_H_
26 #define MOUSECONTROLLER_H_
27 
28 #include "CameraController.h"
29 #include "scg_internals.h"
30 
31 namespace scg {
32 
33 
41 
42 public:
43 
47  MouseController(CameraSP camera);
48 
52  virtual ~MouseController();
53 
57  static MouseControllerSP create(CameraSP camera);
58 
64  virtual void checkInput(ViewState* viewState);
65 
66 };
67 
68 
69 } /* namespace scg */
70 
71 #endif /* MOUSECONTROLLER_H_ */
Base class for all cameras (composite node, abstract).
Definition: Camera.h:51
virtual ~MouseController()
MouseController(CameraSP camera)
Base class for all camera controllers, acting on a Camera node (abstract).
A camera controller using mouse input.
virtual void checkInput(ViewState *viewState)
The view state of the application, managed by Viewer and accessible by Controller::checkInput() (or d...
Definition: ViewState.h:39
static MouseControllerSP create(CameraSP camera)
Base class for all camera controllers, acting on a Camera node (abstract).
Definition: Animation.h:28
Internal definitions required by most classes.