diff --git a/src/osgSim/ElevationSlice.cpp b/src/osgSim/ElevationSlice.cpp index c796517f3..f5f3b3145 100644 --- a/src/osgSim/ElevationSlice.cpp +++ b/src/osgSim/ElevationSlice.cpp @@ -77,7 +77,7 @@ struct DistanceHeightCalculator _radiusList.push_back(newRadius); _distanceList.push_back(distance); - // osg::notify(osg::NOTICE)<<" newVector = "<height)<<" p2 = "<<(_p2->distance)<<" "<<(_p2->height)<height)<<" p2 = "<<(_p2->distance)<<" "<<(_p2->height)<height<<" p2 = "<<_p2->distance<<" "<<_p2->height<height<<" p2 = "<distance<<" "<height<height<<" p2 = "<<_p2->distance<<" "<<_p2->height<height<<" p2 = "<distance<<" "<height<position + (_p2->position - _p1->position)*r); } @@ -389,14 +389,14 @@ struct LineConstructor void report() { - osg::notify(osg::NOTICE)<<"Number of segments = "<<_segments.size()<height)<<" p2 = "<<(seg._p2->distance)<<" "<<(seg._p2->height)<<"\t"; + OSG_NOTICE<<"p1 = "<<(seg._p1->distance)<<" "<<(seg._p1->height)<<" p2 = "<<(seg._p2->distance)<<" "<<(seg._p2->height)<<"\t"; SegmentSet::iterator nextItr = itr; ++nextItr; @@ -405,21 +405,21 @@ struct LineConstructor Segment::Classification classification = itr->compare(*nextItr); switch(classification) { - case(Segment::IDENTICAL): osg::notify(osg::NOTICE)<<"i"; break; - case(Segment::SEPERATE): osg::notify(osg::NOTICE)<<"s"<0.0 || delta2>0.0) { - osg::notify(osg::NOTICE)<<" "<<&s<<" computed height delta ="<=Segment::OVERLAPPING) OSG_NOTICE<=Segment::OVERLAPPING) { @@ -495,7 +495,7 @@ struct LineConstructor if (distance_between < epsilon) { - // osg::notify(osg::NOTICE)<<"OVERLAPPING : distance_between acceptable "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance), rhs._p2.get()); @@ -554,16 +554,16 @@ struct LineConstructor nextItr = itr; ++nextItr; -// osg::notify(osg::NOTICE)<<" newSeg_p1 "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<= 0.0 && dh2 >= 0.0) { -// osg::notify(osg::NOTICE)<<"++ OVERLAPPING : rhs above lhs "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance)); @@ -574,24 +574,24 @@ struct LineConstructor nextItr = itr; ++nextItr; -// osg::notify(osg::NOTICE)<<" newSeg_p1 "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance), enclosing._p2.get()); nextItr = itr; @@ -658,19 +658,19 @@ struct LineConstructor itr = nextItr; ++nextItr; -// osg::notify(osg::NOTICE)<<" newSeg_p1 "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance) ); @@ -681,19 +681,19 @@ struct LineConstructor nextItr = itr; ++nextItr; -// osg::notify(osg::NOTICE)<<" newSeg_p1 "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance) ); @@ -707,22 +707,22 @@ struct LineConstructor nextItr = itr; ++nextItr; -// osg::notify(osg::NOTICE)<<" newSegLeft_p1 "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance - enclosing._p1->distance; double d_right = enclosing._p2->distance - enclosed._p2->distance; @@ -732,7 +732,7 @@ struct LineConstructor // treat ENCLOSED as ENCLOSING. if (dh1 < 0.0) { - // osg::notify(osg::NOTICE)<<" >> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> Replace enclosing with right section"<> Replace enclosing with right section"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> Replace enclosing with left section"<> Replace enclosing with left section"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<distance)); @@ -856,12 +856,12 @@ struct LineConstructor } else { -// osg::notify(osg::NOTICE)<<" >> Replace enclosing with left and right sections"<> Replace enclosing with left and right sections"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<> enclosing left side is above enclosed left side"<distance)); @@ -904,12 +904,12 @@ struct LineConstructor } else { - osg::notify(osg::NOTICE)<<"ENCLOSING: ENCLOSING - error case "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<=0.0 && dh2>=0.0) { -// osg::notify(osg::NOTICE)<<"ENCLOSED: ENCLOSING is below enclosed "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance), enclosed._p2.get())); _segments.erase(nextItr); @@ -954,11 +954,11 @@ struct LineConstructor } else if (dh1 * dh2 < 0.0) { -// osg::notify(osg::NOTICE)<<"ENCLOSED: ENCLOSING is crossing enclosed "<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<distance<<" "<height<convertXYZToLatLongHeight(_startPoint.x(), _startPoint.y(), _startPoint.z(), start_latitude, start_longitude, start_height); - osg::notify(osg::NOTICE)<<"start_lat = "<_hat = height; - osg::notify(osg::NOTICE)<<"lat = "<second.get(); } @@ -59,7 +59,7 @@ osg::Node* DatabaseCacheReadCallback::readNodeFile(const std::string& filename) if (_filenameSceneMap.size() < _maxNumFilesToCache) { - osg::notify(osg::INFO)<<"Inserting into cache "<second->referenceCount()==1) { - osg::notify(osg::NOTICE)<<"Erasing "<first<first<second==1) { - // osg::notify(osg::NOTICE)<<" edge Ok"<first; Face face; face.name = "baseSide"; @@ -352,13 +352,13 @@ public: } - // osg::notify(osg::NOTICE)<<" Removed faces "<second==1) { - // osg::notify(osg::NOTICE)<<" edge Ok"<first; double h_first = (edge.first-control) * normal; @@ -515,7 +515,7 @@ public: const EdgeFaces& edgeFaces = eitr->second; if (edgeFaces.size()==1) { - // osg::notify(osg::NOTICE)<<"Open edge found "<name<name<plane.getNormal() * normal; if (dotProduct0 * dotProduct1 <0.0) { - // osg::notify(osg::NOTICE)<<" Silhoette edge found "<name<<" "<name<name<<" "<name<name<<" "<name<name<<" "<name< Distances; Distances distances; @@ -626,12 +626,12 @@ public: int intersect = plane.intersect(face.vertices); if (intersect==1) { - // osg::notify(osg::NOTICE)<<" Face inside"<_texture) { - // osg::notify(osg::NOTICE)<<" setting up texture"<setTextureSize(tex_width, tex_height); @@ -981,7 +981,7 @@ OverlayNode::OverlayData* OverlayNode::getOverlayData(osgUtil::CullVisitor* cv) // set up the render to texture camera. if (!overlayData->_camera || overlayData->_camera->getRenderTargetImplementation() != _renderTargetImpl) { - // osg::notify(osg::NOTICE)<<" setting up camera"<_camera = new osg::Camera; @@ -1198,7 +1198,7 @@ void OverlayNode::init() void OverlayNode::init_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY() { - osg::notify(osg::INFO)<<"OverlayNode::init() - OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY"<getCalculatedNearPlane(); double zfar = cv->getCalculatedFarPlane(); - // osg::notify(osg::NOTICE)<<" before znear ="<get(); edge->_toTraverse.clear(); - //osg::notify(osg::INFO)<<"edge= "<get(); while (edge) { - // osg::notify(osg::INFO)<<" vertex "<_intersectionVertex<_intersectionVertex<push_back(edge->_intersectionVertex+_centre/*+osg::Vec3(0.0f,0.0f,200.0f)*/); Edge* newEdge = 0; @@ -1878,11 +1878,11 @@ namespace SphereSegmentIntersector edge->removeFromToTraverseList(tri); newEdge->removeFromToTraverseList(tri); - // osg::notify(osg::INFO)<<" tri="<empty()) return; - // osg::notify(osg::INFO)<<"Testing line of "<size()<size()<size()) @@ -1944,7 +1944,7 @@ namespace SphereSegmentIntersector if (first==sourceLine->size()) { - // osg::notify(osg::INFO)<<"No valid points found"<size()) { - // osg::notify(osg::INFO)<<"Copying complete line"<empty()) return; - // osg::notify(osg::INFO)<<"Testing line of "<size()<size()<size()) @@ -2009,7 +2009,7 @@ namespace SphereSegmentIntersector if (first==sourceLine->size()) { - // osg::notify(osg::INFO)<<"No valid points found"<size()) { - // osg::notify(osg::INFO)<<"Copying complete line"<r2) { - osg::notify(osg::INFO)<<"end point, 1 near to end than 2"<_line.get()<<" "<_lineEnd<<" neighbour "<_neighbourLine.get()<<" "<_neighbourLineEnd<<" distance="<_distance<_line.get()<<" "<_lineEnd<<" neighbour "<_neighbourLine.get()<<" "<_neighbourLineEnd<<" distance="<_distance< fuseDistance) { - osg::notify(osg::INFO)<<"Completed work, shortest distance left is "<size()-1])*0.5f; @@ -2390,7 +2390,7 @@ namespace SphereSegmentIntersector } else { - osg::notify(osg::INFO)<<"Error couldn't find line in unfused list, exiting fusing loop."< 0.f ) // we are inside Group::traverse(nv);