##

EntityMaker.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_GUI_ENTITYMAKER_HH_
#define GAZEBO_GUI_ENTITYMAKER_HH_
#include <ignition/math/Vector3.hh>
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace common
{
class MouseEvent;
}
namespace gui
{
class GZ_GUI_VISIBLE EntityMaker
{
public: EntityMaker();
public: virtual ~EntityMaker();
public: virtual void Start();
public: virtual void Stop();
public: virtual void OnMouseRelease(const common::MouseEvent &_event);
public: virtual void OnMouseMove(const common::MouseEvent &_event);
public: virtual ignition::math::Vector3d EntityPosition() const;
protected: virtual void SetEntityPosition(
const ignition::math::Vector3d &_pos);
protected: virtual void CreateTheEntity() = 0;
};
}
}
#endif
gazebo::gui::EntityMaker::CreateTheEntity
virtual void CreateTheEntity()=0
Creates the entity.
gazebo::gui::EntityMaker
To make an entity, base class.
Definition: EntityMaker.hh:39
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::gui::EntityMaker::SetEntityPosition
virtual void SetEntityPosition(const ignition::math::Vector3d &_pos)
Sets the entity world position.
common
common
Definition: FuelModelDatabase.hh:37
system.hh
gazebo::gui::EntityMaker::EntityMaker
EntityMaker()
Constructor.
gazebo::gui::EntityMaker::Stop
virtual void Stop()
Stop the maker.
gazebo::gui::EntityMaker::OnMouseRelease
virtual void OnMouseRelease(const common::MouseEvent &_event)
Callback when mouse button is released.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::EntityMaker::~EntityMaker
virtual ~EntityMaker()
Destructor.
gazebo::gui::EntityMaker::Start
virtual void Start()
Start the maker.
gazebo::gui::EntityMaker::EntityPosition
virtual ignition::math::Vector3d EntityPosition() const
Returns the entity world position.
gazebo::gui::EntityMaker::OnMouseMove
virtual void OnMouseMove(const common::MouseEvent &_event)
Callback when moving mouse.
gazebo::common::MouseEvent
Generic description of a mouse event.
Definition: MouseEvent.hh:35