summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/engine/bars3dcontroller_p.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-08-07 14:52:28 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-08-08 08:21:37 +0300
commitebee290095f9a32dbcf5956e9fed50d2610cbfe1 (patch)
treec9260232aa82517c12bbcd94ef3d004b29860959 /src/datavis3d/engine/bars3dcontroller_p.h
parentb3e10fcc8403bc1a0d9d4c107b52eb10af0ecffa (diff)
Tickcount and both automatic and explicit range setting via axes
- Tick count moved to QValueAxis. - QValueAxis adjusts range to data by default on barcharts. - QValueaxis explicit range setting now works for barchart. Change-Id: I2c0afcab34b74a848144fda41d9135dcdb510354 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavis3d/engine/bars3dcontroller_p.h')
-rw-r--r--src/datavis3d/engine/bars3dcontroller_p.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/datavis3d/engine/bars3dcontroller_p.h b/src/datavis3d/engine/bars3dcontroller_p.h
index 25d1d2f5..cf186ff1 100644
--- a/src/datavis3d/engine/bars3dcontroller_p.h
+++ b/src/datavis3d/engine/bars3dcontroller_p.h
@@ -103,9 +103,6 @@ private:
QString m_objFile;
bool m_isGridEnabled;
bool m_isBackgroundEnabled;
- GLint m_tickCount;
- GLfloat m_tickStep;
- GLfloat m_tickMinimum;
Bars3dRenderer *m_renderer;
QBarDataProxy *m_data;
@@ -151,11 +148,6 @@ public:
// how many samples per row and column, and names for axes
void setupSampleSpace(int samplesRow, int samplesColumn);
- // Set tick count and step. Note; tickCount * step should be the maximum possible value of data
- // set. Minimum is the absolute minimum possible value a bar can have. This is especially
- // important to set if values can be negative.
- void setTickCount(GLint tickCount, GLfloat step, GLfloat minimum = 0.0f);
-
// TODO: light placement API
// Change selection mode; single bar, bar and row, bar and column, or all
@@ -191,19 +183,19 @@ public slots:
void handleRowsRemoved(int startIndex, int count);
void handleRowsInserted(int startIndex, int count);
+ void handleAxisAutoAdjustRangeChanged(bool autoAdjust);
+
signals:
void selectionModeChanged(SelectionMode mode);
void slicingActiveChanged(bool isSlicing);
- void limitsChanged(QPair<GLfloat, GLfloat> limits); // TODO should be handled via axis range
void sampleSpaceChanged(int samplesRow, int samplesColumn);
void barSpecsChanged(QSizeF thickness, QSizeF spacing, bool relative);
void objFileChanged(QString fileName);
void gridEnabledChanged(bool enable); // TODO should be handled via axis
void backgroundEnabledChanged(bool enable);
- void tickCountChanged(GLint tickCount, GLfloat step, GLfloat minimum); // TODO should be handled via axis
private:
- void handleLimitChange();
+ void adjustValueAxisRange();
Q_DISABLE_COPY(Bars3dController)