##

ExtrudeDialog.hh
Go to the documentation of this file.
/*
* 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_EXTRUDE_DIALOG_HH_
#define _GAZEBO_EXTRUDE_DIALOG_HH_
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class ExtrudeDialogPrivate;
class GZ_GUI_VISIBLE ExtrudeDialog : public QDialog
{
Q_OBJECT
public: ExtrudeDialog(const std::string &_filename, QWidget *_parent = 0);
public: ~ExtrudeDialog();
public: void UpdateView();
public: double GetThickness() const;
public: unsigned int GetSamples() const;
public: double GetResolution() const;
private slots: void OnAccept();
private slots: void OnReject();
private slots: void OnUpdateView(int _value);
private slots: void OnUpdateView(double _value);
private: bool eventFilter(QObject *_obj, QEvent *_event);
private: ExtrudeDialogPrivate *dataPtr;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::ExtrudeDialog::GetResolution
double GetResolution() const
Get the resolution in px/m.
system.hh
gazebo::gui::ExtrudeDialog::UpdateView
void UpdateView()
Reload SVG file to update the view with the current data in the dialog.
gazebo::gui::ExtrudeDialog
Dialog for saving to file.
Definition: ExtrudeDialog.hh:37
gazebo::gui::ExtrudeDialog::GetSamples
unsigned int GetSamples() const
Get the number of samples per segment.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::ExtrudeDialog::ExtrudeDialog
ExtrudeDialog(const std::string &_filename, QWidget *_parent=0)
Constructor.
gazebo::gui::ExtrudeDialog::GetThickness
double GetThickness() const
Get the thickness value.
gazebo::gui::ExtrudeDialog::~ExtrudeDialog
~ExtrudeDialog()
Destructor.