grid_display.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, Willow Garage, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of the Willow Garage, Inc. nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef RVIZ_GRID_DISPLAY_H
31 #define RVIZ_GRID_DISPLAY_H
32 
39 #include <rviz/display.h>
40 
41 namespace rviz
42 {
43 class Grid;
44 
51 class GridDisplay : public Display
52 {
53  Q_OBJECT
54 public:
55  enum Plane
56  {
57  XY,
58  XZ,
59  YZ,
60  };
61 
62  GridDisplay();
63  ~GridDisplay() override;
64 
65  // Overrides from Display
66  void onInitialize() override;
67  void update(float dt, float ros_dt) override;
68 
69 private Q_SLOTS:
70  void updateCellCount();
71  void updateCellSize();
72  void updateColor();
73  void updateHeight();
74  void updateLineWidth();
75  void updateOffset();
76  void updatePlane();
77  void updateStyle();
78 
79 private:
81 
92 };
93 
94 } // namespace rviz
95 
96 #endif
rviz::GridDisplay::XY
@ XY
Definition: grid_display.h:57
rviz::GridDisplay::line_width_property_
FloatProperty * line_width_property_
Definition: grid_display.h:86
rviz::GridDisplay::grid_
Grid * grid_
Handles actually drawing the grid.
Definition: grid_display.h:80
rviz::GridDisplay::YZ
@ YZ
Definition: grid_display.h:59
rviz::GridDisplay::updateLineWidth
void updateLineWidth()
Definition: grid_display.cpp:172
rviz::GridDisplay::~GridDisplay
~GridDisplay() override
Definition: grid_display.cpp:102
int_property.h
float_property.h
rviz::GridDisplay::updateColor
void updateColor()
Definition: grid_display.cpp:152
rviz::ColorProperty
Definition: color_property.h:40
rviz::Display
Definition: display.h:63
rviz::GridDisplay::updateCellCount
void updateCellCount()
Definition: grid_display.cpp:166
rviz::EnumProperty
Enum property.
Definition: enum_property.h:46
rviz::FloatProperty
Property specialized to enforce floating point max/min.
Definition: float_property.h:37
rviz::GridDisplay::cell_size_property_
FloatProperty * cell_size_property_
Definition: grid_display.h:85
rviz
Definition: add_display_dialog.cpp:54
color_property.h
rviz::GridDisplay::height_property_
IntProperty * height_property_
Definition: grid_display.h:84
rviz::GridDisplay::Plane
Plane
Definition: grid_display.h:55
rviz::GridDisplay::updateCellSize
void updateCellSize()
Definition: grid_display.cpp:160
rviz::GridDisplay::GridDisplay
GridDisplay()
Definition: grid_display.cpp:48
rviz::GridDisplay::alpha_property_
FloatProperty * alpha_property_
Definition: grid_display.h:89
rviz::Grid
Displays a grid of cells, drawn with lines.
Definition: grid.h:62
rviz::GridDisplay::plane_property_
EnumProperty * plane_property_
Definition: grid_display.h:90
rviz::TfFrameProperty
Definition: tf_frame_property.h:41
tf_frame_property.h
display.h
vector_property.h
rviz::GridDisplay::offset_property_
VectorProperty * offset_property_
Definition: grid_display.h:91
rviz::GridDisplay
Displays a grid in either the XY, YZ, or XZ plane.
Definition: grid_display.h:51
rviz::GridDisplay::cell_count_property_
IntProperty * cell_count_property_
Definition: grid_display.h:83
rviz::GridDisplay::frame_property_
TfFrameProperty * frame_property_
Definition: grid_display.h:82
rviz::GridDisplay::updateStyle
void updateStyle()
Definition: grid_display.cpp:184
rviz::GridDisplay::onInitialize
void onInitialize() override
Override this function to do subclass-specific initialization.
Definition: grid_display.cpp:110
rviz::GridDisplay::updatePlane
void updatePlane()
Definition: grid_display.cpp:208
rviz::VectorProperty
Definition: vector_property.h:39
rviz::GridDisplay::update
void update(float dt, float ros_dt) override
Called periodically by the visualization manager.
Definition: grid_display.cpp:124
rviz::GridDisplay::XZ
@ XZ
Definition: grid_display.h:58
rviz::GridDisplay::updateOffset
void updateOffset()
Definition: grid_display.cpp:202
rviz::GridDisplay::style_property_
EnumProperty * style_property_
Definition: grid_display.h:87
rviz::GridDisplay::updateHeight
void updateHeight()
Definition: grid_display.cpp:178
enum_property.h
rviz::IntProperty
Property specialized to provide max/min enforcement for integers.
Definition: int_property.h:37
rviz::GridDisplay::color_property_
ColorProperty * color_property_
Definition: grid_display.h:88


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09