Skip to content

Commit

Permalink
Migrate igndbg -> gzdbg
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon committed May 25, 2022
1 parent 7fa9508 commit 1b70777
Show file tree
Hide file tree
Showing 51 changed files with 147 additions and 147 deletions.
10 changes: 5 additions & 5 deletions ogre/src/OgreDepthCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -491,16 +491,16 @@ void OgreDepthCamera::PostRender()
"PF_FLOAT32_RGBA");

// Uncomment to debug xyz output
// igndbg << "wxh: " << width << " x " << height << std::endl;
// gzdbg << "wxh: " << width << " x " << height << std::endl;
// for (unsigned int i = 0; i < height; ++i)
// {
// for (unsigned int j = 0; j < width; ++j)
// {
// igndbg << "[" << this->dataPtr->pcdBuffer[i*width*4+j*4] << "]"
// gzdbg << "[" << this->dataPtr->pcdBuffer[i*width*4+j*4] << "]"
// << "[" << this->dataPtr->pcdBuffer[i*width*4+j*4+1] << "]"
// << "[" << this->dataPtr->pcdBuffer[i*width*4+j*4+2] << "],";
// }
// igndbg << std::endl;
// gzdbg << std::endl;
// }

// Uncommnet to debug color output
Expand All @@ -513,11 +513,11 @@ void OgreDepthCamera::PostRender()
// unsigned int r = *rgba >> 24 & 0xFF;
// unsigned int g = *rgba >> 16 & 0xFF;
// unsigned int b = *rgba >> 8 & 0xFF;
// igndbg << "[" << r << "]"
// gzdbg << "[" << r << "]"
// << "[" << g << "]"
// << "[" << b << "],";
// }
// igndbg << std::endl;
// gzdbg << std::endl;
// }
}
}
Expand Down
6 changes: 3 additions & 3 deletions ogre/src/OgreThermalCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,14 @@ void OgreThermalCamera::PostRender()
this->dataPtr->thermalBuffer, width, height, 1, "L16");

// Uncomment to debug thermal output
// igndbg << "wxh: " << width << " x " << height << std::endl;
// gzdbg << "wxh: " << width << " x " << height << std::endl;
// for (unsigned int i = 0; i < height; ++i)
// {
// for (unsigned int j = 0; j < width; ++j)
// {
// igndbg << "[" << this->dataPtr->thermalImage[i*width + j] << "]";
// gzdbg << "[" << this->dataPtr->thermalImage[i*width + j] << "]";
// }
// igndbg << std::endl;
// gzdbg << std::endl;
// }
}

Expand Down
2 changes: 1 addition & 1 deletion ogre/src/OgreWideAngleCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ void OgreWideAngleCamera::PostRender()
this->dataPtr->wideAngleImage, width, height, channelCount, "PF_R8G8B8");

// Uncomment to debug wide angle cameraoutput
// igndbg << "wxh: " << width << " x " << height << std::endl;
// gzdbg << "wxh: " << width << " x " << height << std::endl;
// for (unsigned int i = 0; i < height; ++i)
// {
// for (unsigned int j = 0; j < width * channelCount; j += channelCount)
Expand Down
16 changes: 8 additions & 8 deletions ogre2/src/Ogre2DepthCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1116,34 +1116,34 @@ void Ogre2DepthCamera::PostRender()
// unsigned int r = *rgba >> 24 & 0xFF;
// unsigned int g = *rgba >> 16 & 0xFF;
// unsigned int b = *rgba >> 8 & 0xFF;
// igndbg << "[" << r << "]" << "[" << g << "]" << "[" << b << "],";
// gzdbg << "[" << r << "]" << "[" << g << "]" << "[" << b << "],";
// }
// igndbg << std::endl;
// gzdbg << std::endl;
// }

// Uncomment to debug xyz output
// igndbg << "wxh: " << width << " x " << height << std::endl;
// gzdbg << "wxh: " << width << " x " << height << std::endl;
// for (unsigned int i = 0; i < height; ++i)
// {
// for (unsigned int j = 0; j < width; ++j)
// {
// igndbg << "[" << this->dataPtr->pointCloudImage[i*width*4+j*4] << "]"
// gzdbg << "[" << this->dataPtr->pointCloudImage[i*width*4+j*4] << "]"
// << "[" << this->dataPtr->pointCloudImage[i*width*4+j*4+1] << "]"
// << "[" << this->dataPtr->pointCloudImage[i*width*4+j*4+2] << "],";
// }
// igndbg << std::endl;
// gzdbg << std::endl;
// }
}

// Uncomment to debug depth output
// igndbg << "wxh: " << width << " x " << height << std::endl;
// gzdbg << "wxh: " << width << " x " << height << std::endl;
// for (unsigned int i = 0; i < height; ++i)
// {
// for (unsigned int j = 0; j < width; ++j)
// {
// igndbg << "[" << this->dataPtr->depthImage[i*width + j] << "]";
// gzdbg << "[" << this->dataPtr->depthImage[i*width + j] << "]";
// }
// igndbg << std::endl;
// gzdbg << std::endl;
// }
}

Expand Down
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2GpuRays.cc
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ void Ogre2GpuRays::CreateSampleTexture()
unsigned int faceIdx;
math::Vector2d uv = this->SampleCubemap(dir, faceIdx);
this->dataPtr->cubeFaceIdx.insert(faceIdx);
// igndbg << "p(" << pitch << ") y(" << yaw << "): " << dir << " | "
// gzdbg << "p(" << pitch << ") y(" << yaw << "): " << dir << " | "
// << uv << " | " << faceIdx << std::endl;
// u
pDest[index++] = uv.X();
Expand Down
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2ParticleEmitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,5 +511,5 @@ void Ogre2ParticleEmitter::CreateParticleSystem()
this->dataPtr->ps->setDefaultDimensions(1, 1);

this->ogreNode->attachObject(this->dataPtr->ps);
igndbg << "Particle emitter initialized" << std::endl;
gzdbg << "Particle emitter initialized" << std::endl;
}
2 changes: 1 addition & 1 deletion src/ArrowVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void ArrowVisualTest::ArrowVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/AxisVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void AxisVisualTest::AxisVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/COMVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void COMVisualTest::COMVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
10 changes: 5 additions & 5 deletions src/Camera_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void CameraTest::ViewProjectionMatrix(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -159,7 +159,7 @@ void CameraTest::RenderTexture(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -204,7 +204,7 @@ void CameraTest::TrackFollow(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -276,7 +276,7 @@ void CameraTest::AddRemoveRenderPass(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -330,7 +330,7 @@ void CameraTest::VisibilityMask(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Capsule_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ void CapsuleTest::Capsule(const std::string &_renderEngine)
{
if (_renderEngine != "ogre" && _renderEngine != "ogre2")
{
igndbg << "Capsule not supported yet in rendering engine: "
gzdbg << "Capsule not supported yet in rendering engine: "
<< _renderEngine << std::endl;
return;
}

RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/GaussianNoisePass_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void GaussianNoisePassTest::GaussianNoise(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/GizmoVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void GizmoVisualTest::GizmoVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -117,7 +117,7 @@ void GizmoVisualTest::Material(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Grid_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ void GridTest::Grid(const std::string &_renderEngine)
{
if (_renderEngine != "ogre" && _renderEngine != "ogre2")
{
igndbg << "Grid not supported yet in rendering engine: "
gzdbg << "Grid not supported yet in rendering engine: "
<< _renderEngine << std::endl;
return;
}

RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Heightmap_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ TEST_P(HeightmapTest, IGN_UTILS_TEST_DISABLED_ON_WIN32(Heightmap))
std::string renderEngine{this->GetParam()};
if (renderEngine != "ogre")
{
igndbg << "Heightmap not supported yet in rendering engine: "
gzdbg << "Heightmap not supported yet in rendering engine: "
<< renderEngine << std::endl;
return;
}

auto engine = rendering::engine(renderEngine);
if (!engine)
{
igndbg << "Engine '" << renderEngine
gzdbg << "Engine '" << renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/InertiaVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void InertiaVisualTest::InertiaVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/JointVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void JointVisualTest::JointVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/LidarVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void LidarVisualTest::LidarVisual(const std::string &_renderEngine)
{
if (_renderEngine == "optix")
{
igndbg << "LidarVisual not supported yet in rendering engine: "
gzdbg << "LidarVisual not supported yet in rendering engine: "
<< _renderEngine << std::endl;
return;
}
Expand All @@ -48,7 +48,7 @@ void LidarVisualTest::LidarVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/LightVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void LightVisualTest::LightVisual(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Light_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void LightTest::Light(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Marker_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void MarkerTest::Marker(const std::string &_renderEngine)
{
if (_renderEngine == "optix")
{
igndbg << "Marker not supported yet in rendering engine: "
gzdbg << "Marker not supported yet in rendering engine: "
<< _renderEngine << std::endl;
return;
}
Expand All @@ -48,7 +48,7 @@ void MarkerTest::Marker(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Material_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void MaterialTest::MaterialProperties(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -293,7 +293,7 @@ void MaterialTest::Copy(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/MeshDescriptor_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void MeshDescriptorTest::Descriptor(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Mesh_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void MeshTest::MeshSubMesh(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -116,7 +116,7 @@ void MeshTest::MeshSkeletonAnimation(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down Expand Up @@ -212,7 +212,7 @@ void MeshTest::MeshClone(const std::string &_renderEngine)
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
gzdbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}
Expand Down
Loading

0 comments on commit 1b70777

Please sign in to comment.