Commit 13eec3c9 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Adding radixplot.

parent 97769b11
Pipeline #4731 skipped
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES(
SUBPACKAGES_DIRS_CLASSIFICATIONS_OPTREQS
io radixio PS REQUIRED
io radixio PS REQUIRED
plot radixplot PS OPTIONAL
)
##---------------------------------------------------------------------------##
## radixplot/CMakeLists.txt
## Jordan P. Lefebvre
## Tuesday May 31 12:50:40 2016
##---------------------------------------------------------------------------##
## CMAKE for radixplot
##---------------------------------------------------------------------------##
TRIBITS_SUBPACKAGE(plot)
##---------------------------------------------------------------------------##
## PACKAGE CONFIGURE FILE
##---------------------------------------------------------------------------##
##---------------------------------------------------------------------------##
## HEADER AND SOURCE FILES
##---------------------------------------------------------------------------##
# C/C++ headers
SET(HEADERS
plot.hh
)
#
# Moc the header files
#
IF(USE_QT4)
QT4_WRAP_CPP(MOC_FILES
${HEADERS}
)
#
# Process qt resource files
QT4_ADD_RESOURCES(RESOURCE_RESULT
${RESOURCE_FILES}
)
ELSE()
QT5_WRAP_CPP(MOC_FILES
${HEADERS}
)
#
# Process qt resource files
QT5_ADD_RESOURCES(RESOURCE_RESULT
${RESOURCE_FILES}
)
ENDIF()
# C/C++ source
SET(SOURCES
plot.cc
)
SET(RESOURCE_FILES
plot.qrc
)
##---------------------------------------------------------------------------##
## PACKAGE TARGETS AND INSTALL
##---------------------------------------------------------------------------##
TRIBITS_ADD_LIBRARY(
radixplot
SOURCES ${SOURCES} ${MOC_FILES} ${RESOURCE_RESULT}
)
INSTALL(FILES ${HEADERS}
DESTINATION include/radixplot)
#
# Add test directory for this package
#
#TRIBITS_ADD_TEST_DIRECTORIES(tests)
#
# Add example directory for this package
#
TRIBITS_ADD_EXAMPLE_DIRECTORIES(examples)
TRIBITS_SUBPACKAGE_POSTPROCESS()
##---------------------------------------------------------------------------##
## end of radixplot/CMakeLists.txt
##---------------------------------------------------------------------------##
##---------------------------------------------------------------------------##
## radixplot/cmake/Dependencies.cmake
## Jordan P. Lefebvre
## Tuesday May 31 12:57:18 2016
##---------------------------------------------------------------------------##
IF(USE_QT4)
SET(QT_PACKAGES QT)
ELSE()
SET(QT_PACKAGES Qt5Widgets Qt5Core)
ENDIF()
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES(
LIB_REQUIRED_PACKAGES QtSolutions QCustomPlot
LIB_REQUIRED_TPLS ${QT_PACKAGES}
)
##---------------------------------------------------------------------------##
## end of radixplot/cmake/Dependencies.cmake
##---------------------------------------------------------------------------##
# Provide access to QT-generated code
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
IF(USE_QT4)
QT4_WRAP_CPP(QMOC_FILES
mainwindow.hh
)
ELSE()
QT5_WRAP_CPP(QMOC_FILES
mainwindow.hh
)
ENDIF()
SET(SOURCE
mainwindow.cc
)
TRIBITS_ADD_EXECUTABLE(plot2d-examples
NOEXEPREFIX
SOURCES ${SOURCE} ${QMOC_FILES}
)
This diff is collapsed.
#ifndef RADIXPLOT_EXAMPLE_MAINWINDOW_HH_
#define RADIXPLOT_EXAMPLE_MAINWINDOW_HH_
#include <QMainWindow>
#include <QTimer>
#include <QStatusBar>
#include <QModelIndex>
#include <QWidget>
#include "radixplot/plot.hh"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void setupQuadraticDemo();
void setupSimpleDemo();
void setupSincScatterDemo();
void setupScatterStyleDemo();
void setupLineStyleDemo();
void setupDiscontinuousLineDemo();
void setupDateDemo();
private slots:
void changeDemo(const QModelIndex& current, const QModelIndex& previous);
private:
radix::Plot* plot;
QWidget * plotWidget;
QString demoName;
QTimer dataTimer;
QCPItemTracer *itemDemoPhaseTracer;
int currentDemoIndex;
};
#endif // RADIXPLOT_EXAMPLE_MAINWINDOW_HH_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment