##

AxisVisual.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 _GAZEBO_AXISVISUAL_HH_
#define _GAZEBO_AXISVISUAL_HH_
#include <string>
#include "gazebo/rendering/Visual.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace rendering
{
class GZ_RENDERING_VISIBLE AxisVisual : public Visual
{
public: AxisVisual(const std::string &_name, VisualPtr _parent);
public: virtual ~AxisVisual();
public: virtual void Load();
public: void ShowAxisRotation(unsigned int _axis, bool _show);
public: void ShowAxisShaft(unsigned int _axis, bool _show);
public: void ShowAxisHead(unsigned int _axis, bool _show);
public: void ScaleXAxis(const ignition::math::Vector3d &_scale);
public: void ScaleYAxis(const ignition::math::Vector3d &_scale);
public: void ScaleZAxis(const ignition::math::Vector3d &_scale);
public: void SetAxisMaterial(unsigned int _axis,
const std::string &_material);
public: void SetAxisVisible(unsigned int _axis, bool _visible);
protected: AxisVisual(VisualPrivate &_dataPtr,
const std::string &_name, VisualPtr _parent);
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::rendering::AxisVisual::AxisVisual
AxisVisual(const std::string &_name, VisualPtr _parent)
Constructor.
gazebo::rendering::AxisVisual
Basic axis visualization.
Definition: AxisVisual.hh:35
gazebo::rendering::AxisVisual::SetAxisMaterial
void SetAxisMaterial(unsigned int _axis, const std::string &_material)
Set the material used to render and axis.
gazebo::rendering::AxisVisual::~AxisVisual
virtual ~AxisVisual()
Destructor.
system.hh
rendering
rendering
Definition: RenderEngine.hh:31
gazebo::rendering::Visual
A renderable object.
Definition: Visual.hh:60
gazebo::rendering::AxisVisual::ShowAxisShaft
void ShowAxisShaft(unsigned int _axis, bool _show)
Show the axis arrow shaft.
gazebo::rendering::AxisVisual::ShowAxisRotation
void ShowAxisRotation(unsigned int _axis, bool _show)
Show the rotation tube.
Visual.hh
gazebo::rendering::AxisVisual::SetAxisVisible
void SetAxisVisible(unsigned int _axis, bool _visible)
Set whether the axis will be visible.
gazebo::rendering::AxisVisual::ShowAxisHead
void ShowAxisHead(unsigned int _axis, bool _show)
Show the axis arrow head.
gazebo::rendering::AxisVisual::ScaleYAxis
void ScaleYAxis(const ignition::math::Vector3d &_scale)
Scale the Y axis.
gazebo::rendering::AxisVisual::ScaleZAxis
void ScaleZAxis(const ignition::math::Vector3d &_scale)
Scale the Z axis.
gazebo::rendering::VisualPtr
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
gazebo::rendering::AxisVisual::ScaleXAxis
void ScaleXAxis(const ignition::math::Vector3d &_scale)
Scale the X axis.
gazebo::rendering::AxisVisual::Load
virtual void Load()
Load the axis visual.