Ignition Sensors

API Reference

3.1.0
RenderingEvents.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef IGNITION_SENSORS_RENDERINGEVENTS_HH_
19 #define IGNITION_SENSORS_RENDERINGEVENTS_HH_
20 
21 #include <ignition/common/Event.hh>
22 #include <ignition/rendering/Scene.hh>
23 #include <ignition/sensors/config.hh>
24 #include <ignition/sensors/rendering/Export.hh>
25 
26 namespace ignition
27 {
28  namespace sensors
29  {
30  // Inline bracket to help doxygen filtering.
31  inline namespace IGNITION_SENSORS_VERSION_NAMESPACE {
32  //
33  class IGNITION_SENSORS_RENDERING_VISIBLE RenderingEvents
34  {
42  public: static ignition::common::ConnectionPtr ConnectSceneChangeCallback(
43  std::function<void(const ignition::rendering::ScenePtr &)>
44  _callback);
45 
48  public: static ignition::common::EventT<
49  void(const ignition::rendering::ScenePtr &)> sceneEvent;
50  };
51  }
52  }
53 }
54 #endif
static ignition::common::EventT< void(const ignition::rendering::ScenePtr &)> sceneEvent
Event that is used to trigger callbacks when the scene is changed.
Definition: RenderingEvents.hh:49
Definition: AirPressureSensor.hh:31
Definition: RenderingEvents.hh:33