Go to the documentation of this file.
9 #ifndef CEnhancedMetaFile_H
10 #define CEnhancedMetaFile_H
45 const std::string &targetFileName,
87 unsigned int width = 1,
101 const std::string &str,
112 virtual void selectVectorTextFont(
113 const std::string &fontName,
116 bool italic =
false );
144 virtual void rectangle(
150 unsigned int width = 1 );
167 float confIntervalStds = 2,
169 unsigned int width = 1,
170 int nEllipsePoints = 20
174 int x1=0,y1=0,x2=0,y2=0;
180 cov2D->eigenVectors(eigVec,eigVal);
186 for (i=0,ang=0;i<nEllipsePoints;i++,ang+= (
M_2PI/(nEllipsePoints-1)))
188 float ccos = cos(ang);
189 float ssin = sin(ang);
191 x2 =
round( mean_x + confIntervalStds * (ccos * M(0,0) + ssin * M(1,0)) );
192 y2 =
round( mean_y + confIntervalStds * (ccos * M(0,1) + ssin * M(1,1)) );
195 line( x1, y1,x2, y2,color,width );
202 std::cout <<
"Covariance matrix leading to error is:" << std::endl << *cov2D << std::endl; \
int round(const T value)
Returns the closer integer (int) to x.
#define MRPT_END_WITH_CLEAN_UP(stuff)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A class for storing images as grayscale or RGB bitmaps.
A matrix of dynamic size.
This virtual class defines the interface of any object accepting drawing primitives on it.
virtual void drawImage(int x, int y, const utils::CImage &img)
Draws an image as a bitmap at a given position.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 23:11:08 UTC 2019 | | |