9 #ifndef CEnhancedMetaFile_H 10 #define CEnhancedMetaFile_H 42 const std::string &targetFileName,
58 size_t getWidth() const MRPT_OVERRIDE {
return 640; }
61 size_t getHeight() const MRPT_OVERRIDE {
return 480;}
84 unsigned int width = 1,
98 const std::string &str,
109 virtual void selectVectorTextFont(
110 const std::string &fontName,
113 bool italic =
false );
127 float scale ) MRPT_OVERRIDE
141 virtual void rectangle(
147 unsigned int width = 1 );
164 float confIntervalStds = 2,
166 unsigned int width = 1,
167 int nEllipsePoints = 20
171 int x1=0,y1=0,x2=0,y2=0;
177 cov2D->eigenVectors(eigVec,eigVal);
183 for (i=0,ang=0;i<nEllipsePoints;i++,ang+= (
M_2PI/(nEllipsePoints-1)))
185 float ccos = cos(ang);
186 float ssin = sin(ang);
188 x2 =
round( mean_x + confIntervalStds * (ccos * M(0,0) + ssin * M(1,0)) );
189 y2 =
round( mean_y + confIntervalStds * (ccos * M(0,1) + ssin * M(1,1)) );
192 line( x1, y1,x2, y2,color,width );
199 std::cout <<
"Covariance matrix leading to error is:" << std::endl << *cov2D << std::endl; \
#define MRPT_END_WITH_CLEAN_UP(stuff)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
A class for storing images as grayscale or RGB bitmaps.
virtual void drawImage(int x, int y, const utils::CImage &img)
Draws an image as a bitmap at a given position.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)
A matrix of dynamic size.
int round(const T value)
Returns the closer integer (int) to x.
This virtual class defines the interface of any object accepting drawing primitives on it...
TPenStyle
Definition of pen styles.