pxmlw6n2f/Gazebo_Distributed_MPI/gazebo/gui/model/ModelEditorPrivate.hh

117 lines
3.5 KiB
C++
Raw Normal View History

2019-04-18 10:27:54 +08:00
/*
* Copyright (C) 2015 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_MODEL_EDITOR_PRIVATE_HH_
#define _GAZEBO_MODEL_EDITOR_PRIVATE_HH_
#include <vector>
#include <string>
#include "gazebo/gui/model/ModelEditorTypes.hh"
#include "gazebo/gui/qt.h"
namespace gazebo
{
namespace gui
{
class SchematicViewWidget;
class ModelTreeWidget;
class ModelEditorPalette;
/// \internal
/// \class ModelEditor ModelEditor.hh
/// \brief Private data for the ModelEditor class.
class ModelEditorPrivate
{
/// \brief Menubar containing actions related to the editor.
public: QMenuBar *menuBar;
/// \brief A palette of entities that can be inserted into the editor.
public: ModelEditorPalette *modelPalette;
/// \brief A display of model settings and its child entities
public: ModelTreeWidget *modelTree;
/// \brief True if model editor is active.
public: bool active;
/// \brief Qt action for adding a previously selected joint in the
/// model editor.
public: QAction *jointAct;
/// \brief Qt signal mapper for mapping add jointsignals.
public: QSignalMapper *signalMapper;
/// \brief Previously selected joint type.
public: std::string selectedJointType;
/// \brief Action to save model.
public: QAction *saveAct;
/// \brief Action to save model as.
public: QAction *saveAsAct;
/// \brief Action to start a new model.
public: QAction *newAct;
/// \brief Action to exit the editor.
public: QAction *exitAct;
/// \brief Action to show collisions.
public: QAction *showCollisionsAct;
/// \brief Action to show visuals.
public: QAction *showVisualsAct;
/// \brief Action to show joints.
public: QAction *showJointsAct;
/// \brief Action to show link frames.
public: QAction *showLinkFramesAct;
/// \brief Action to show/hide the schematic view.
public: QAction *schematicViewAct;
/// \brief Pointer to the schematic view widget.
public: SchematicViewWidget *svWidget;
/// \brief Pointer to the Insert model widget in main window.
public: QWidget *insertModel;
/// \brief Show toolbars action cloned from main window.
public: QAction *showToolbarsAct;
/// \brief Fullscreen action cloned from main window.
public: QAction *fullScreenAct;
/// \brief Camera orthographic view action cloned from main window.
public: QAction *cameraOrthoAct;
/// \brief Camera perspective view action cloned from main window.
public: QAction *cameraPerspectiveAct;
/// \brief A list of event connections.
public: std::vector<event::ConnectionPtr> connections;
/// \brief Model editor material switcher used to switch the non-editable
/// models in the background to use a different material
public: EditorMaterialSwitcherPtr materialSwitcher;
};
}
}
#endif