##

TopicCurveHandler.hh
Go to the documentation of this file.
/*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_PLOT_TOPICCURVEHANDLER_HH_
#define GAZEBO_GUI_PLOT_TOPICCURVEHANDLER_HH_
#include <memory>
#include <string>
#include "gazebo/gui/plot/PlottingTypes.hh"
#include "gazebo/util/system.hh"
namespace google
{
namespace protobuf
{
class Message;
}
}
namespace gazebo
{
namespace gui
{
// Forward declare private data class
class TopicCurveHandlerPrivate;
class GZ_GUI_VISIBLE TopicCurveHandler
{
public: TopicCurveHandler();
public: ~TopicCurveHandler();
public: void AddCurve(const std::string &_query, PlotCurveWeakPtr _curve);
public: void RemoveCurve(PlotCurveWeakPtr _curve);
public: bool HasCurve(PlotCurveWeakPtr _curve) const;
public: unsigned int CurveCount() const;
private: std::unique_ptr<TopicCurveHandlerPrivate> dataPtr;
};
}
}
#endif
gazebo::gui::TopicCurveHandler::AddCurve
void AddCurve(const std::string &_query, PlotCurveWeakPtr _curve)
Add a curve to be updated.
PlottingTypes.hh
default namespace for gazebo
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::gui::TopicCurveHandler::TopicCurveHandler
TopicCurveHandler()
Constructor.
gazebo::gui::TopicCurveHandler
Manages and updates curves based on topic data.
Definition: TopicCurveHandler.hh:43
system.hh
gazebo::gui::TopicCurveHandler::HasCurve
bool HasCurve(PlotCurveWeakPtr _curve) const
Get whether this topic data handler has the specified curve.
gazebo::gui::TopicCurveHandler::CurveCount
unsigned int CurveCount() const
Get the number of curves managed by this handler.
gazebo::gui::TopicCurveHandler::RemoveCurve
void RemoveCurve(PlotCurveWeakPtr _curve)
Remove a curve from the topic data handler.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::PlotCurveWeakPtr
std::weak_ptr< PlotCurve > PlotCurveWeakPtr
Definition: PlottingTypes.hh:41
gazebo::gui::TopicCurveHandler::~TopicCurveHandler
~TopicCurveHandler()
Destructor.
google
Definition: ConfigWidget.hh:33