Frapper
1.0a
Main Page
Namespaces
Classes
Files
File List
File Members
plugins
nodes
Rendering
TextRender
TextRenderNode.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of FRAPPER
4
research.animationsinstitut.de
5
sourceforge.net/projects/frapper
6
7
Copyright (c) 2008-2010 Filmakademie Baden-Wuerttemberg, Institute of Animation
8
9
This program is free software; you can redistribute it and/or modify it under
10
the terms of the GNU Lesser General Public License as published by the Free Software
11
Foundation; either version 2 of the License, or (at your option) any later
12
version.
13
14
This program is distributed in the hope that it will be useful, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17
18
You should have received a copy of the GNU Lesser General Public License along with
19
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21
http://www.gnu.org/copyleft/lesser.txt.
22
-----------------------------------------------------------------------------
23
*/
24
34
35
#ifndef TEXTRENDER_H
36
#define TEXTRENDER_H
37
38
#include "
OgreTools.h
"
39
#include "
ImageNode.h
"
40
41
#include <QImage>
42
43
// OGRE
44
#include <Ogre.h>
45
#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32)
46
#include <windows.h>
47
#endif
48
49
namespace
TextRenderNode {
50
using namespace
Frapper;
51
55
class
TextRenderNode
:
public
ImageNode
56
{
57
58
Q_OBJECT
59
60
public
:
// constructors and destructors
61
68
TextRenderNode
(
const
QString &name,
ParameterGroup
*parameterRoot );
69
77
virtual
~
TextRenderNode
();
78
79
public
:
80
81
private
slots:
//
82
83
void
updateOutputImage();
84
85
void
resolutionChanged();
86
87
void
fontChanged();
88
89
private
:
// functions
90
91
QImage
m_qImage
;
92
QFont
m_font
;
93
QColor
m_color
;
94
95
Ogre::TexturePtr
m_outputImage
;
96
97
int
m_fontsize
;
98
int
m_width
, m_height;
99
100
101
protected
:
// data
102
103
};
104
105
}
// namespace TextRenderNode
106
107
#endif
Generated on Tue Sep 18 2012 11:43:03 for Frapper by
1.8.2