Robert Osfield
d8482ef1ba
From Kristofer Tingdahl,"we have a bunch of classes that inherit osg::Node, and they create their own, internal geometry which is passed into the render bucket at the cull-traversal. Last week, we realised that these classes are not accounted for when doing an ComputeBoundVisitor- traversal, as there is no specialization in ComputeBoundVisitor for them.
...
One solution is naturally to create a new class that would inherit the osg::ComputeBoundVisitor, and use that. I don't like that idea as the ComputeBoundVisitor does actually have what I need - it is only hidden in a protected function.
I am therefor suggesting a slight generalization of the ComputeBoundVisitor with the attached patch, which is tested.
The patch has two parts:
we add applyBBox() so that one can use that in a customized traverse-function and add a bbox to the visitor. I considered calling this function expandByBBox(), but I though applyBBox was better.
The MatrixStack is made available to the outside world. That enables a traverse-function to do whatever it wishes.
I do actually only need one of the two, as I can implement what I wish either way, but adding getMatrixStack() will make more generic expansions possible.
"
From Robert Osfield, changed the name of the new applyBBox(..) method to applyBoundingBox(..) to keep it's naming more consistent with the rest of the OSG.
2014-01-23 16:48:29 +00:00
..
2012-03-21 17:36:20 +00:00
2012-03-29 09:57:47 +00:00
2012-12-05 10:13:51 +00:00
2012-03-21 17:36:20 +00:00
2013-07-02 09:44:46 +00:00
2013-06-26 12:59:40 +00:00
2013-10-10 14:45:57 +00:00
2010-11-05 17:24:50 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-11-18 12:45:04 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-29 09:43:12 +00:00
2013-06-28 14:08:36 +00:00
2013-05-27 08:10:42 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-10-10 14:45:57 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2014-01-23 16:48:29 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-01-28 14:30:21 +00:00
2012-03-21 17:36:20 +00:00
2013-01-28 14:30:21 +00:00
2012-03-29 15:08:15 +00:00
2012-03-21 17:36:20 +00:00
2013-10-22 19:12:34 +00:00
2014-01-07 18:32:45 +00:00
2012-03-21 17:36:20 +00:00
2012-12-07 19:04:49 +00:00
2013-07-01 08:21:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-07-31 07:11:07 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-05-14 16:12:21 +00:00
2013-11-21 10:31:34 +00:00
2014-01-20 15:10:49 +00:00
2013-07-24 13:02:32 +00:00
2012-09-20 11:18:19 +00:00
2012-03-21 17:36:20 +00:00
2012-08-22 16:39:47 +00:00
2012-03-21 17:36:20 +00:00
2013-10-22 19:12:34 +00:00
2011-05-12 18:40:18 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-11-18 13:31:44 +00:00
2013-01-18 16:21:17 +00:00
2013-06-28 12:00:43 +00:00
2013-11-06 09:23:21 +00:00
2013-11-06 09:23:21 +00:00
2013-01-24 18:48:34 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-05-14 16:12:21 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-02-12 15:44:52 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-10-18 08:37:18 +00:00
2013-06-10 10:37:08 +00:00
2012-03-21 17:36:20 +00:00
2013-09-24 15:08:23 +00:00
2012-03-21 17:36:20 +00:00
2013-09-20 10:25:23 +00:00
2012-03-29 15:08:15 +00:00
2012-03-21 17:36:20 +00:00
2010-05-14 12:24:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-05-14 16:12:21 +00:00
2013-06-11 10:52:37 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-28 13:43:46 +00:00
2012-03-21 17:36:20 +00:00
2013-07-02 10:32:53 +00:00
2012-03-21 17:36:20 +00:00
2012-03-29 15:08:15 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-08-01 07:19:45 +00:00
2013-02-13 16:29:03 +00:00
2012-03-21 17:36:20 +00:00
2013-12-25 17:36:32 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-05-14 16:12:21 +00:00
2012-03-21 17:36:20 +00:00
2013-10-21 16:35:12 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2014-01-07 18:32:45 +00:00
2013-07-22 10:15:59 +00:00
2012-03-21 17:36:20 +00:00
2013-05-14 16:12:21 +00:00
2012-03-21 17:36:20 +00:00
2010-09-30 16:57:02 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2009-01-07 10:32:59 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-12-16 11:28:10 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-29 15:08:15 +00:00
2013-06-28 12:00:43 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-05-14 16:12:21 +00:00
2012-03-21 17:36:20 +00:00
2013-12-25 17:36:32 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-27 17:37:03 +00:00
2013-06-03 11:38:20 +00:00
2013-06-27 17:37:03 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-27 17:37:03 +00:00
2013-06-03 11:38:20 +00:00
2013-06-27 17:37:03 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2013-06-27 17:37:03 +00:00
2013-10-04 16:28:49 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-04-15 14:21:32 +00:00