LogPlayWidgetPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 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 #ifndef _GAZEBO_LOG_PLAY_WIDGET_PRIVATE_HH_
18 #define _GAZEBO_LOG_PLAY_WIDGET_PRIVATE_HH_
19 
20 #include "gazebo/gui/qt.h"
21 
22 namespace gazebo
23 {
24  namespace gui
25  {
29  {
31  public: bool paused;
32 
34  public: TimePanel *timePanel;
35 
38 
41 
44 
46  public: bool lessThan1h;
47 
49  public: LogPlayView *view;
50  };
51 
55  {
58 
61 
64 
66  public: bool startTimeSet;
67 
69  public: bool endTimeSet;
70 
72  public: int sceneWidth;
73 
75  public: int sceneHeight;
76 
78  public: int margin;
79 
81  public: bool timelineDrawn = false;
82  };
83  }
84 }
85 #endif
bool timelineDrawn
Whether the timeline has already been drawn.
Definition: LogPlayWidgetPrivate.hh:81
bool endTimeSet
Log end time has been set or not.
Definition: LogPlayWidgetPrivate.hh:69
Definition: LogPlayWidgetPrivate.hh:28
int margin
Margin from the ends.
Definition: LogPlayWidgetPrivate.hh:78
bool paused
Paused state of the simulation.
Definition: LogPlayWidgetPrivate.hh:31
int sceneWidth
Width of this view's scene.
Definition: LogPlayWidgetPrivate.hh:72
common::Time startTime
Start time in milliseconds.
Definition: LogPlayWidgetPrivate.hh:60
common::Time endTime
Log end time.
Definition: LogPlayWidgetPrivate.hh:40
Definition: TimePanel.hh:44
common::Time currentTime
Log current time.
Definition: LogPlayWidgetPrivate.hh:43
Private data for the LogPlayView class.
Definition: LogPlayWidgetPrivate.hh:54
bool startTimeSet
Log start time has been set or not.
Definition: LogPlayWidgetPrivate.hh:66
common::Time endTime
End time in milliseconds.
Definition: LogPlayWidgetPrivate.hh:63
CurrentTimeItem * currentTimeItem
Item which indicates the current time.
Definition: LogPlayWidgetPrivate.hh:57
bool lessThan1h
If log is less than 1 hour long.
Definition: LogPlayWidgetPrivate.hh:46
TimePanel * timePanel
Paused state of the simulation.
Definition: LogPlayWidgetPrivate.hh:34
Item which represents the current time within the view.
Definition: LogPlayWidget.hh:145
int sceneHeight
Height of this view's scene.
Definition: LogPlayWidgetPrivate.hh:75
View for the timeline.
Definition: LogPlayWidget.hh:115
LogPlayView * view
View which containes the timeline.
Definition: LogPlayWidgetPrivate.hh:49
common::Time startTime
Log start time.
Definition: LogPlayWidgetPrivate.hh:37
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:39