1 // File: GLViewer_Compass.cxx
2 // Created: November, 2004
4 // Copyright (C) CEA 2004
6 //#include <GLViewerAfx.h>
7 #include "GLViewer_Compass.h"
8 #include "GLViewer_Drawer.h"
10 GLViewer_Compass::GLViewer_Compass ( const QColor& color, const int size, const Position pos,
11 const int WidthTop, const int WidthBottom, const int HeightTop,
12 const int HeightBottom ){
16 myArrowWidthTop = WidthTop;
17 myArrowWidthBottom = WidthBottom;
18 myArrowHeightTop = HeightTop;
19 myArrowHeightBottom = HeightBottom;
21 QFont* aFont = new QFont("Times",16);
22 myFont = new GLViewer_TexFont( aFont );
24 //myFont->generateTexture();
27 GLViewer_Compass::~GLViewer_Compass()
32 GLViewer_TexFont* GLViewer_Compass::getFont()
36 myFont->generateTexture();
42 void GLViewer_Compass::setFont( QFont theFont )
45 myFont = new GLViewer_TexFont( &theFont );