Skip to content

Commit

Permalink
[VISU] Coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
frozar committed Dec 5, 2017
1 parent 57baee8 commit 85dc2cc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions visualization/include/pcl/visualization/impl/pcl_visualizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ pcl::visualization::PCLVisualizer::addText3D (
return false;

// If there is no custom viewport and the viewport number is not 0, exit
if ((rens_->GetNumberOfItems() == 1) && (1 <= viewport))
if ((rens_->GetNumberOfItems () == 1) && (1 <= viewport))
{
PCL_ERROR ("[addText3D] The viewport [%d] doesn't exist (id <%s>)! ",
viewport,
Expand All @@ -682,7 +682,7 @@ pcl::visualization::PCLVisualizer::addText3D (
}

rens_->InitTraversal ();
if (rens_->GetNumberOfItems() == 1)
if (rens_->GetNumberOfItems () == 1)
{
if (contains (tid))
{
Expand Down Expand Up @@ -722,7 +722,7 @@ pcl::visualization::PCLVisualizer::addText3D (

// Since each follower may follow a different camera, we need different followers
rens_->InitTraversal ();
if (rens_->GetNumberOfItems() == 1)
if (rens_->GetNumberOfItems () == 1)
{
vtkRenderer* renderer = rens_->GetNextItem ();

Expand Down Expand Up @@ -794,7 +794,7 @@ pcl::visualization::PCLVisualizer::addText3D (
return false;

// If there is no custom viewport and the viewport number is not 0, exit
if ((rens_->GetNumberOfItems() == 1) && (1 <= viewport))
if ((rens_->GetNumberOfItems () == 1) && (1 <= viewport))
{
PCL_ERROR ("[addText3D] The viewport [%d] doesn't exist (id <%s>)! ",
viewport,
Expand All @@ -803,7 +803,7 @@ pcl::visualization::PCLVisualizer::addText3D (
}

rens_->InitTraversal ();
if (rens_->GetNumberOfItems() == 1)
if (rens_->GetNumberOfItems () == 1)
{
if (contains (tid))
{
Expand Down Expand Up @@ -850,7 +850,7 @@ pcl::visualization::PCLVisualizer::addText3D (

// Save the pointer/ID pair to the global actor map. If we are saving multiple vtkFollowers
rens_->InitTraversal ();
if (rens_->GetNumberOfItems() == 1)
if (rens_->GetNumberOfItems () == 1)
{
vtkRenderer* renderer = rens_->GetNextItem ();

Expand Down
4 changes: 2 additions & 2 deletions visualization/src/pcl_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ pcl::visualization::PCLVisualizer::removeText3D (const std::string &id, int view
bool success = true;

// If there is no custom viewport and the viewport number is not 0, exit
if ((rens_->GetNumberOfItems() == 1) && (1 <= viewport))
if ((rens_->GetNumberOfItems () == 1) && (1 <= viewport))
{
PCL_ERROR ( "[addText3D] The viewport [%d] doesn't exist (id <%s>)! ",
viewport,
Expand All @@ -909,7 +909,7 @@ pcl::visualization::PCLVisualizer::removeText3D (const std::string &id, int view
}
// check all or an individual viewport for a similar id
rens_->InitTraversal ();
if (rens_->GetNumberOfItems() == 1)
if (rens_->GetNumberOfItems () == 1)
{
ShapeActorMap::iterator am_it = shape_actor_map_->find (id);

Expand Down
2 changes: 1 addition & 1 deletion visualization/test/text_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int
main (int argc, char** argv)
{
pcl::visualization::PCLVisualizer viz ("Visualizator");
viz.addCoordinateSystem(1.0);
viz.addCoordinateSystem (1.0);

viz.addText3D ("Following text", pcl::PointXYZ(0.0, 0.0, 0.0),
1.0, 1.0, 0.0, 0.0, "id_following");
Expand Down
10 changes: 5 additions & 5 deletions visualization/test/text_simple_multiport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ int
main (int argc, char** argv)
{
pcl::visualization::PCLVisualizer viz ("Visualizator");
int leftPort(0);
int rightPort(0);
int leftPort (0);
int rightPort (0);

viz.createViewPort(0, 0, 0.5, 1, leftPort);
viz.createViewPort(0.5, 0, 1, 1, rightPort);
viz.createViewPort (0, 0, 0.5, 1, leftPort);
viz.createViewPort (0.5, 0, 1, 1, rightPort);

viz.addCoordinateSystem(1.0);
viz.addCoordinateSystem (1.0);

viz.addText3D ("Following text", pcl::PointXYZ(0.0, 0.0, 0.0),
1.0, 1.0, 0.0, 0.0, "id_following", leftPort);
Expand Down

0 comments on commit 85dc2cc

Please sign in to comment.