@@ -109,7 +109,7 @@ void CameraIntrinsicParams::SetVerticalAngleRad( double angle )
109109// CameraObject class implementation
110110// ---------------------------------------------------------------------------------------
111111
112- static int DefaultImageSize[2 ] = {640 , 480 };
112+ static int DefaultImageSize[2 ] = { 640 , 480 };
113113
114114CameraObject::CameraObject ()
115115{
@@ -813,13 +813,13 @@ void CameraObject::WorldToImage( double * worldPos, double & xIm, double & yIm )
813813 vtkMatrix4x4 * mat = vtkMatrix4x4::New ();
814814 mat->DeepCopy ( m_opticalCenterTransform->GetMatrix () );
815815 mat->Invert ();
816- double pCam[4 ] = {0.0 , 0.0 , 0.0 , 1.0 };
816+ double pCam[4 ] = { 0.0 , 0.0 , 0.0 , 1.0 };
817817 mat->MultiplyPoint ( p4, pCam );
818818 mat->Delete ();
819819
820- double centerPix[2 ] = {0.0 , 0.0 };
820+ double centerPix[2 ] = { 0.0 , 0.0 };
821821 GetImageCenterPix ( centerPix[0 ], centerPix[1 ] );
822- double focalPix[2 ] = {0.0 , 0.0 };
822+ double focalPix[2 ] = { 0.0 , 0.0 };
823823 GetFocalPix ( focalPix[0 ], focalPix[1 ] );
824824
825825 xIm = centerPix[0 ] + pCam[0 ] / pCam[2 ] * focalPix[0 ];
@@ -927,7 +927,7 @@ void CameraObject::DrawRect( double x, double y, double width, double height, do
927927
928928void CameraObject::DrawTarget ( double x, double y, double /* radius*/ , double color[4 ] )
929929{
930- double center[3 ] = {0.0 , 0.0 , 0.0 };
930+ double center[3 ] = { 0.0 , 0.0 , 0.0 };
931931 center[0 ] = x;
932932 center[1 ] = y;
933933 PerViewElementCont::iterator it = m_perViewElements.begin ();
@@ -1099,7 +1099,8 @@ void CameraObject::CreateCameraRepresentation()
10991099 pts->InsertNextPoint ( 100.0 , 100.0 , -m_imageDistance );
11001100 pts->InsertNextPoint ( -100.0 , 100.0 , -m_imageDistance );
11011101
1102- static vtkIdType linesIndex[8 ][2 ] = {{0 , 1 }, {0 , 2 }, {0 , 3 }, {0 , 4 }, {1 , 2 }, {2 , 3 }, {3 , 4 }, {4 , 1 }};
1102+ static vtkIdType linesIndex[8 ][2 ] = { { 0 , 1 }, { 0 , 2 }, { 0 , 3 }, { 0 , 4 },
1103+ { 1 , 2 }, { 2 , 3 }, { 3 , 4 }, { 4 , 1 } };
11031104 vtkSmartPointer<vtkCellArray> lines = vtkSmartPointer<vtkCellArray>::New ();
11041105 for ( int i = 0 ; i < 8 ; ++i ) lines->InsertNextCell ( 2 , linesIndex[i] );
11051106
0 commit comments