Skip to content

Commit

Permalink
Merge pull request #4 from fspindle/fix_indent
Browse files Browse the repository at this point in the history
Wrong auto-indent fix
  • Loading branch information
fspindle authored Jun 10, 2024
2 parents b567f44 + b9b482d commit fd63541
Show file tree
Hide file tree
Showing 181 changed files with 315 additions and 315 deletions.
2 changes: 1 addition & 1 deletion modules/ar/include/visp3/ar/vpSimulatorException.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN_VISP_NAMESPACE
/*!
* \class vpSimulatorException
* \brief Error that can be emitted by the vpSimulator class and its derivatives.
*/
*/
class VISP_EXPORT vpSimulatorException : public vpException
{
public:
Expand Down
14 changes: 7 additions & 7 deletions modules/core/include/visp3/core/vpCPUFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ BEGIN_VISP_NAMESPACE
The example below shows how to check or get CPU capabilities.
\code
#include <visp3/core/vpCPUFeatures.h>
#include <visp3/core/vpCPUFeatures.h>
int main()
{
std::cout << "checkSSE2: " << vpCPUFeatures::checkSSE2() << std::endl;
std::cout << "CPU info: " << vpCPUFeatures::printCPUInfo() << std::endl;
return 0;
}
int main()
{
std::cout << "checkSSE2: " << vpCPUFeatures::checkSSE2() << std::endl;
std::cout << "CPU info: " << vpCPUFeatures::printCPUInfo() << std::endl;
return 0;
}
\endcode
*/

Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpCameraParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ BEGIN_VISP_NAMESPACE
$ cat cam.json
{"model":"perspectiveWithoutDistortion","px":801.0,"py":802.0,"u0":325.0,"v0":245.0}
\endcode
*/
*/

class VISP_EXPORT vpCameraParameters
{
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpCannyEdgeDetection.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN_VISP_NAMESPACE
* \brief Class that implements the Canny's edge detector.
* It is possible to use a boolean mask to ignore some pixels of
* the input gray-scale image.
*/
*/
class VISP_EXPORT vpCannyEdgeDetection
{

Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpCircle.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ BEGIN_VISP_NAMESPACE
* projection(const vpColVector &cP, vpColVector &p) const. They could be retrieved using get_x(), get_y(), get_n20(),
* get_n11() and get_n02(). They correspond to 2D normalized circle parameters with values expressed in meters.
* To get theses parameters use get_p().
*/
*/
class VISP_EXPORT vpCircle : public vpForwardProjection
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ BEGIN_VISP_NAMESPACE
* \sa vpClient
* \sa vpRequest
* \sa vpNetwork
*/
*/
class VISP_EXPORT vpClient : public vpNetwork
{
private:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpColVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ BEGIN_VISP_NAMESPACE
* $ cat col-vector.json
* {"cols":1,"data":[1.0,2.0,3.0,4.0],"rows":4,"type":"vpColVector"}
* \endcode
*/
*/
class VISP_EXPORT vpColVector : public vpArray2D<double>
{
friend class vpMatrix;
Expand Down
96 changes: 48 additions & 48 deletions modules/core/include/visp3/core/vpColor.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,55 +97,55 @@ BEGIN_VISP_NAMESPACE
a circle) and a specific brown color (used to draw a rectangle).
\code
#include <visp3/gui/vpDisplayD3D.h>
#include <visp3/gui/vpDisplayGDI.h>
#include <visp3/gui/vpDisplayGTK.h>
#include <visp3/gui/vpDisplayOpenCV.h>
#include <visp3/gui/vpDisplayX.h>
#include <visp3/gui/vpDisplayD3D.h>
#include <visp3/gui/vpDisplayGDI.h>
#include <visp3/gui/vpDisplayGTK.h>
#include <visp3/gui/vpDisplayOpenCV.h>
#include <visp3/gui/vpDisplayX.h>
int main()
{
vpImage<unsigned char> I(240, 320); // Create a black grey level image
vpDisplay *d;
// Depending on the detected third party libraries, we instantiate here the
// first video device which is available
#if defined(VISP_HAVE_X11)
d = new vpDisplayX;
#elif defined(VISP_HAVE_GTK)
d = new vpDisplayGTK;
#elif defined(VISP_HAVE_GDI)
d = new vpDisplayGDI;
#elif defined(VISP_HAVE_D3D9)
d = new vpDisplayD3D;
#elif defined(HAVE_OPENCV_HIGHGUI)
d = new vpDisplayOpenCV;
#endif
// Initialize the display with the image I. Display and image are
// now link together.
#ifdef VISP_HAVE_DISPLAY
d->init(I);
#endif
// Set the display background with image I content
vpDisplay::display(I);
// Draw a filled circle with the predefined blue color
vpDisplay::displayCircle(I, 100, 200, 30, vpColor::blue, true);
// Creation of a new brown color with its RGB values
vpColor color(128, 100, 50);
// Draw a brown rectangle in the display overlay (foreground)
vpDisplay::displayRectangle(I, 10, 10, 100, 20, color, true);
// Flush the foreground and background display
vpDisplay::flush(I);
delete d;
}
int main()
{
vpImage<unsigned char> I(240, 320); // Create a black grey level image
vpDisplay *d;
// Depending on the detected third party libraries, we instantiate here the
// first video device which is available
#if defined(VISP_HAVE_X11)
d = new vpDisplayX;
#elif defined(VISP_HAVE_GTK)
d = new vpDisplayGTK;
#elif defined(VISP_HAVE_GDI)
d = new vpDisplayGDI;
#elif defined(VISP_HAVE_D3D9)
d = new vpDisplayD3D;
#elif defined(HAVE_OPENCV_HIGHGUI)
d = new vpDisplayOpenCV;
#endif
// Initialize the display with the image I. Display and image are
// now link together.
#ifdef VISP_HAVE_DISPLAY
d->init(I);
#endif
// Set the display background with image I content
vpDisplay::display(I);
// Draw a filled circle with the predefined blue color
vpDisplay::displayCircle(I, 100, 200, 30, vpColor::blue, true);
// Creation of a new brown color with its RGB values
vpColor color(128, 100, 50);
// Draw a brown rectangle in the display overlay (foreground)
vpDisplay::displayRectangle(I, 10, 10, 100, 20, color, true);
// Flush the foreground and background display
vpDisplay::flush(I);
delete d;
}
\endcode
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpColormap.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ BEGIN_VISP_NAMESPACE
*
* \brief Creates a colormap class to be able to recolor an image with different grayscale
* values into some corresponding color values, for better visualization for example.
*/
*/
class VISP_EXPORT vpColormap
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpConvert.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BEGIN_VISP_NAMESPACE
\class vpConvert
\ingroup group_core_bridges
Bridges over other frameworks like OpenCV.
*/
*/
class VISP_EXPORT vpConvert
{
public:
Expand Down
4 changes: 2 additions & 2 deletions modules/core/include/visp3/core/vpCylinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ BEGIN_VISP_NAMESPACE
* Perspective projection is achieved using projection() methods. The methods
* get_p(), getRho1(), getTheta1() and getRho2(), getTheta2() allow to access to the
* projected line parameters.
*/
class VISP_EXPORT vpCylinder : public vpForwardProjection
*/
class VISP_EXPORT vpCylinder : public vpForwardProjection
{
public:
typedef enum
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ BEGIN_VISP_NAMESPACE
*
* Other examples are available in tutorial-image-viewer.cpp and
* tutorial-viewer.cpp.
*/
*/
class VISP_EXPORT vpDisplay
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpDisplayException.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN_VISP_NAMESPACE
* \class vpDisplayException
* \ingroup group_core_debug
* \brief Error that can be emitted by the vpDisplay class and its derivatives.
*/
*/
class VISP_EXPORT vpDisplayException : public vpException
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpException.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ BEGIN_VISP_NAMESPACE
* STL.
* It is therefore possible to catch vpException with any other derivative of
* std::exception in the same catch.
*/
*/
class VISP_EXPORT vpException : public std::exception
{
public:
Expand Down
38 changes: 19 additions & 19 deletions modules/core/include/visp3/core/vpForceTwistMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,30 +140,30 @@ int main()
from probe frame to a sensor frame.
\code
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpForceTwistMatrix.h>
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpForceTwistMatrix.h>
int main()
{
// Twist transformation matrix from sensor to probe frame
vpForceTwistMatrix sFp;
int main()
{
// Twist transformation matrix from sensor to probe frame
vpForceTwistMatrix sFp;
// Force/torque sensor frame to probe frame transformation
vpHomogeneousMatrix sMp;
// ... sMp need here to be initialized
// Force/torque sensor frame to probe frame transformation
vpHomogeneousMatrix sMp;
// ... sMp need here to be initialized
sFp.build(sMp);
sFp.build(sMp);
// Force/torque skew in the probe frame: fx,fy,fz,tx,ty,tz
vpColVector p_H(6);
// ... p_H should here have an initial value
// Force/torque skew in the probe frame: fx,fy,fz,tx,ty,tz
vpColVector p_H(6);
// ... p_H should here have an initial value
// Force/torque skew in the sensor frame: fx,fy,fz,tx,ty,tz
vpColVector s_H(6);
// Force/torque skew in the sensor frame: fx,fy,fz,tx,ty,tz
vpColVector s_H(6);
// Compute the value of the force/torque in the sensor frame
s_H = sFp * p_H;
}
// Compute the value of the force/torque in the sensor frame
s_H = sFp * p_H;
}
\endcode
*/
class VISP_EXPORT vpForceTwistMatrix : public vpArray2D<double>
Expand Down Expand Up @@ -242,6 +242,6 @@ class VISP_EXPORT vpForceTwistMatrix : public vpArray2D<double>
vp_deprecated void setIdentity();
//@}
#endif
};
};
END_VISP_NAMESPACE
#endif
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpForwardProjection.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ BEGIN_VISP_NAMESPACE
* - in the image plane \e p. These parameters are located in the public
* attribute vpTracker::p. They correspond to normalized coordinates
* of the feature expressed in meters.
*/
*/
class VISP_EXPORT vpForwardProjection : public vpTracker
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpFrameGrabber.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ BEGIN_VISP_NAMESPACE
* #endif
* }
* \endcode
*/
*/
class VISP_EXPORT vpFrameGrabber
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpFrameGrabberException.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN_VISP_NAMESPACE
/*!
* \brief Error that can be emitted by the vpFrameGrabber class and its
* derivates.
*/
*/
class VISP_EXPORT vpFrameGrabberException : public vpException
{
public:
Expand Down
48 changes: 24 additions & 24 deletions modules/core/include/visp3/core/vpGaussRand.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,37 +82,37 @@ different values using seed(). For example, this could be done using the
current time. The code becomes:
\verbatim
#include <iostream>
#include <visp3/core/vpGaussRand.h>
#include <visp3/core/vpTime.h>
int main()
{
vpGaussRand noise(0.5, 10);
long seed = (long)vpTime::measureTimeMs();
#include <iostream>
#include <visp3/core/vpGaussRand.h>
#include <visp3/core/vpTime.h>
noise.seed(seed);
for(int i=0; i< 10; i++) {
std::cout << "noise " << i << ": " << noise() << std::endl;
int main()
{
vpGaussRand noise(0.5, 10);
long seed = (long)vpTime::measureTimeMs();
noise.seed(seed);
for(int i=0; i< 10; i++) {
std::cout << "noise " << i << ": " << noise() << std::endl;
}
return 0;
}
return 0;
}
\endverbatim
Now if you run the previous example you will always get different values:
\verbatim
noise 0: 10.5982
noise 1: 9.19111
noise 2: 9.82498
noise 3: 9.07857
noise 4: 9.9285
noise 5: 10.3688
noise 6: 9.75621
noise 7: 10.3259
noise 8: 10.4238
noise 9: 10.2391
noise 0: 10.5982
noise 1: 9.19111
noise 2: 9.82498
noise 3: 9.07857
noise 4: 9.9285
noise 5: 10.3688
noise 6: 9.75621
noise 7: 10.3259
noise 8: 10.4238
noise 9: 10.2391
\endverbatim
*/
*/
class VISP_EXPORT vpGaussRand
{
private:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpImageCircle.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
BEGIN_VISP_NAMESPACE
/**
* \brief Class that defines a 2D circle in an image.
*/
*/
class VISP_EXPORT vpImageCircle
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpImageException.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN_VISP_NAMESPACE
* \class vpImageException
* \ingroup group_core_debug
* \brief Error that can be emitted by the vpImage class and its derivatives.
*/
*/
class VISP_EXPORT vpImageException : public vpException
{
public:
Expand Down
Loading

0 comments on commit fd63541

Please sign in to comment.