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
..
2013-11-22 10:27:15 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-12-05 10:13:51 +00:00
2012-03-21 17:36:20 +00:00
2013-07-01 16:15:25 +00:00
2013-06-26 12:33:40 +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-29 09:43:12 +00:00
2013-06-28 12:00:43 +00:00
2010-06-01 14:12: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
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-08-09 16:51:06 +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-23 16:48:29 +00:00
2013-06-25 16:10:24 +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
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-10-22 19:12:34 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-05-28 11:25:13 +00:00
2013-05-28 11:25:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-09-09 13:33:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-18 11:18:28 +00:00
2013-11-21 10:31:34 +00:00
2013-06-03 09:19:46 +00:00
2013-06-27 15:18:38 +00:00
2013-05-28 08:38:09 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2010-11-22 11:22:03 +00:00
2013-10-21 16:35:12 +00:00
2013-06-28 12:00:43 +00:00
2012-03-21 17:36:20 +00:00
2013-03-11 17:16:32 +00:00
2012-03-21 17:36:20 +00:00
2013-10-28 12:03:55 +00:00
2013-02-05 18:22:46 +00:00
2012-06-12 10:31:50 +00:00
2013-11-06 09:23:21 +00:00
2013-09-24 15:08:23 +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
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-07-23 10:24:28 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-09-24 15:08:23 +00:00
2013-06-28 12:00:43 +00:00
2012-03-21 17:36:20 +00:00
2010-05-20 13:38:28 +00:00
2010-05-28 08:57:48 +00:00
2012-03-21 17:36:20 +00:00
2013-06-26 16:16:23 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-11 10:52:37 +00:00
2012-03-21 17:36:20 +00:00
2013-10-01 09:05: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
2012-03-21 17:36:20 +00:00
2013-06-28 13:43:46 +00:00
2013-07-01 08:21:13 +00:00
2013-12-13 12:38:01 +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-01 08:21:13 +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-06-28 12:00:43 +00:00
2013-06-28 12:00:43 +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
2013-06-28 12:45:39 +00:00
2013-10-22 11:18:28 +00:00
2012-03-21 17:36:20 +00:00
2014-01-23 07:59:46 +00:00
2012-03-21 17:36:20 +00:00
2010-09-15 09:56:16 +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-27 16:44:32 +00:00
2013-06-27 16:44:32 +00:00
2013-06-27 16:44:32 +00:00
2012-03-21 17:36:20 +00:00
2013-06-27 16:44:32 +00:00
2013-12-16 11:28:10 +00:00
2013-06-27 16:44:32 +00:00
2013-06-27 16:44:32 +00:00
2013-06-27 16:44:32 +00:00
2012-03-21 17:36:20 +00:00
2010-05-28 15:47:52 +00:00
2012-03-21 17:36:20 +00:00
2013-09-05 10:23:05 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2009-11-23 09:53:08 +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