diff options
author | Mark Janes <mark.a.janes@intel.com> | 2015-10-05 09:18:37 -0700 |
---|---|---|
committer | Mark Janes <mark.a.janes@intel.com> | 2017-06-19 14:04:45 -0700 |
commit | c285696c500fb53631f4e777ed8619db326c1dc9 (patch) | |
tree | ea9f47a77b3b95f0c01a8199512bc20badae6b45 /retrace/daemon/bargraph | |
parent | a2b05edbe80a782c5b042128ef617d6718db13bb (diff) |
drop model class that was never implemented
Initially, I intended to separate the bar graph model from the view.
Since the data model is so simple (vector of float pairs), I dropped
this part of the design.
If the model becomes more elaborate, I will split it out of the view
later.
Diffstat (limited to 'retrace/daemon/bargraph')
-rw-r--r-- | retrace/daemon/bargraph/CMakeLists.txt | 2 | ||||
-rw-r--r-- | retrace/daemon/bargraph/glframe_bargraphmodel.cpp | 49 | ||||
-rw-r--r-- | retrace/daemon/bargraph/glframe_bargraphmodel.hpp | 60 |
3 files changed, 0 insertions, 111 deletions
diff --git a/retrace/daemon/bargraph/CMakeLists.txt b/retrace/daemon/bargraph/CMakeLists.txt index e39fff9f..656aef1f 100644 --- a/retrace/daemon/bargraph/CMakeLists.txt +++ b/retrace/daemon/bargraph/CMakeLists.txt @@ -39,8 +39,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) set (BARGRAPH_SOURCES glframe_bargraph.cpp glframe_bargraph.hpp - glframe_bargraphmodel.cpp - glframe_bargraphmodel.hpp glframe_glhelper.cpp glframe_glhelper.hpp glframe_qbargraph.cpp diff --git a/retrace/daemon/bargraph/glframe_bargraphmodel.cpp b/retrace/daemon/bargraph/glframe_bargraphmodel.cpp deleted file mode 100644 index bb5a2c97..00000000 --- a/retrace/daemon/bargraph/glframe_bargraphmodel.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/************************************************************************** - * - * Copyright 2015 Intel Corporation - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - **************************************************************************/ - -#include "glframe_bargraphmodel.hpp" - -#include <vector> - -using glretrace::BarGraphModel; - -void -BarGraphModel::onMetrics(const std::vector<float> &metric1, - const std::vector<float> &metric2) { -} - -void -BarGraphModel::onMouseSelect(int x1, int y1, int x2, int y2) { -} - -void -BarGraphModel::onSelected(const std::vector<RenderId> &renders, - int selectionCount) { -} - -const void -BarGraphModel::updateRenderer(BarGraphRenderer *renderer) { -} - diff --git a/retrace/daemon/bargraph/glframe_bargraphmodel.hpp b/retrace/daemon/bargraph/glframe_bargraphmodel.hpp deleted file mode 100644 index 32d4068c..00000000 --- a/retrace/daemon/bargraph/glframe_bargraphmodel.hpp +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (C) Intel Corp. 2014. All Rights Reserved. - -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: - -// The above copyright notice and this permission notice (including the -// next paragraph) shall be included in all copies or substantial -// portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -// IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -// **********************************************************************/ -// * Authors: -// * Mark Janes <mark.a.janes@intel.com> -// **********************************************************************/ - -#ifndef RETRACE_DAEMON_BARGRAPH_GLFRAME_BARGRAPHMODEL_H_ -#define RETRACE_DAEMON_BARGRAPH_GLFRAME_BARGRAPHMODEL_H_ - -#include <QtQuick/QQuickFramebufferObject> - -#include <vector> - -#include "glframe_retrace.hpp" -#include "glframe_traits.hpp" - -namespace glretrace { - -class BarGraphRenderer; - - -// Converts native units to the 0.0 -> 1.0 scale required my -// BarGraphRenderer. Calculates height and width of all metric bars. -class BarGraphModel : NoCopy, NoAssign, NoMove { - public: - void onMetrics(const std::vector<float> &metric1, - const std::vector<float> &metric2); - void onMouseSelect(int x1, int y1, int x2, int y2); - void onSelected(const std::vector<RenderId> &renders, - int selectionCount); - const void updateRenderer(BarGraphRenderer *renderer); - private: - // requires reference to RenderSelection, which will be called when the mouse - // area crosses a bar. -}; - -} // namespace glretrace - -#endif // RETRACE_DAEMON_BARGRAPH_GLFRAME_BARGRAPHMODEL_H_ |