##

ArrowVisual.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 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 _ARROWVISUAL_HH_
#define _ARROWVISUAL_HH_
#include <string>
#include "gazebo/rendering/Visual.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace rendering
{
class GZ_RENDERING_VISIBLE ArrowVisual : public Visual
{
public: ArrowVisual(const std::string &_name, VisualPtr _vis);
public: virtual ~ArrowVisual() = default;
public: virtual void Load();
public: void ShowRotation(bool _show);
public: void ShowShaft(bool _show);
public: void ShowHead(bool _show);
// Documentation inherited
public: virtual void SetVisible(bool _visible, bool _cascade = true);
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::rendering::ArrowVisual::ShowRotation
void ShowRotation(bool _show)
Show the rotation of the arrow visual.
system.hh
gazebo::rendering::ArrowVisual
Basic arrow visualization.
Definition: ArrowVisual.hh:34
gazebo::rendering::ArrowVisual::ArrowVisual
ArrowVisual(const std::string &_name, VisualPtr _vis)
Constructor.
rendering
rendering
Definition: RenderEngine.hh:31
gazebo::rendering::Visual
A renderable object.
Definition: Visual.hh:60
Visual.hh
gazebo::rendering::ArrowVisual::Load
virtual void Load()
Load the visual with default parameters.
gazebo::rendering::ArrowVisual::ShowShaft
void ShowShaft(bool _show)
Show the shaft of the arrow visual.
gazebo::rendering::ArrowVisual::SetVisible
virtual void SetVisible(bool _visible, bool _cascade=true)
Set whether the visual is visible.
gazebo::rendering::ArrowVisual::ShowHead
void ShowHead(bool _show)
Show the head of the arrow visual.
gazebo::rendering::ArrowVisual::~ArrowVisual
virtual ~ArrowVisual()=default
Destructor.
gazebo::rendering::VisualPtr
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114