##

WireBox.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_RENDERING_WIREBOX_HH_
#define GAZEBO_RENDERING_WIREBOX_HH_
#include <memory>
#include <ignition/math/Box.hh>
#include "gazebo/rendering/Visual.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace rendering
{
class WireBoxPrivate;
class GZ_RENDERING_VISIBLE WireBox
{
public: explicit WireBox(VisualPtr _parent,
const ignition::math::Box &_box);
public: ~WireBox();
public: void Init(const ignition::math::Box &_box);
public: void SetVisible(bool _visible);
public: bool Visible() const;
public: ignition::math::Box Box() const;
private: std::unique_ptr<WireBoxPrivate> dataPtr;
};
}
}
#endif
gazebo::rendering::WireBox::~WireBox
~WireBox()
Destructor.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::rendering::WireBox::SetVisible
void SetVisible(bool _visible)
Set the visibility of the box.
gazebo::rendering::WireBox::Box
ignition::math::Box Box() const
Get the wireframe box.
gazebo::rendering::WireBox::Visible
bool Visible() const
Get the visibility of the box.
system.hh
gazebo::rendering::WireBox
Draws a wireframe box.
Definition: WireBox.hh:38
rendering
rendering
Definition: RenderEngine.hh:31
gazebo::rendering::WireBox::Init
void Init(const ignition::math::Box &_box)
Builds the wireframe line list.
Visual.hh
gazebo::rendering::WireBox::WireBox
WireBox(VisualPtr _parent, const ignition::math::Box &_box)
Constructor.
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::rendering::VisualPtr
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114