summaryrefslogtreecommitdiffstats
path: root/src/renderer
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-05-31 07:08:06 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-05-31 07:08:06 +0000
commitd3c847e64379eec8e4987e5448ad8490e592f6d9 (patch)
tree02660e1d6a2644631a88259251dc1543da0e17a1 /src/renderer
parent82208f0a38c7c4f5825bac9fc4268bdba03db5a9 (diff)
downloadzetacomponents-graph-d3c847e64379eec8e4987e5448ad8490e592f6d9.zip
zetacomponents-graph-d3c847e64379eec8e4987e5448ad8490e592f6d9.tar.gz
- Resolved #12379: Ensure one chart can be rerendered with new datasets)
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/2d.php22
-rw-r--r--src/renderer/3d.php29
2 files changed, 51 insertions, 0 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php
index 8a89c08..5f6c477 100644
--- a/src/renderer/2d.php
+++ b/src/renderer/2d.php
@@ -1598,6 +1598,28 @@ class ezcGraphRenderer2d
return true;
}
+ /**
+ * Reset renderer properties
+ *
+ * Reset all renderer properties, which were calculated during the
+ * rendering process, to offer a clean environment for rerendering.
+ *
+ * @return void
+ */
+ protected function resetRenderer()
+ {
+ parent::resetRenderer();
+
+ // Also reset special 2D renderer options
+ $this->pieSegmentLabels = array(
+ 0 => array(),
+ 1 => array(),
+ );
+ $this->pieSegmentBoundings = false;
+ $this->linePostSymbols = array();
+ $this->axisLabels = array();
+ $this->circleSectors = array();
+ }
/**
* Render odometer chart
diff --git a/src/renderer/3d.php b/src/renderer/3d.php
index bca97a9..8f34915 100644
--- a/src/renderer/3d.php
+++ b/src/renderer/3d.php
@@ -2373,6 +2373,35 @@ class ezcGraphRenderer3d
return true;
}
+
+ /**
+ * Reset renderer properties
+ *
+ * Reset all renderer properties, which were calculated during the
+ * rendering process, to offer a clean environment for rerendering.
+ *
+ * @return void
+ */
+ protected function resetRenderer()
+ {
+ parent::resetRenderer();
+
+ // Also reset special 3D renderer options
+ $this->pieSegmentLabels = array(
+ 0 => array(),
+ 1 => array(),
+ );
+ $this->pieSegmentBoundings = false;
+ $this->linePostSymbols = array();
+ $this->frontLines = array();
+ $this->circleSectors = array();
+ $this->barPostProcessing = array();
+ $this->depth = false;
+ $this->xDepthFactor = false;
+ $this->yDepthFactor = false;
+ $this->dataBoundings = false;
+ $this->axisLabels = array();
+ }
}
?>
OpenPOWER on IntegriCloud