VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbolDrawer
vertexDrawer.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: vertexDrawer.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtVertexDrawer_H_
13
#define DtVertexDrawer_H_
14
16
#include <
symbolDrawerInterface/symbolDrawer.h
>
17
18
class
DtSymbol
;
19
21
#include <QtGui/QPixmap>
22
27
#include "
symbolDrawer/symbolDrawerDefines.h
"
28
29
class
DT_DLL_symbolDrawer
DtVertexDrawer
:
public
DtSymbolDrawer
30
{
31
public
:
32
33
DtVertexDrawer
();
34
virtual
~
DtVertexDrawer
();
35
36
enum
DtKnobStyle
37
{
38
DtSquare
,
39
DtCircle
40
};
41
46
virtual
bool
draw
(QPainter& paint,
47
const
DtSymbol
*
const
symbol )
const
;
48
51
virtual
bool
draw
(QPainter& paint,
52
const
DtSymbol
*
const
symbol,
bool
preTransparent)
const
;
53
56
virtual
QSize
calcBBox
(
const
DtSymbol
*
const
symbol )
const
;
57
58
virtual
void
setKnobStyle(DtKnobStyle style);
59
virtual
DtKnobStyle knobStyle()
const
;
60
61
protected
:
63
virtual
void
drawKnob(QPainter& paint,
const
QPoint& pnt,
int
iKnobSize)
const
;
64
virtual
void
drawSquareKnob(QPainter& paint,
const
QPoint& pnt,
int
iKnobSize)
const
;
65
virtual
void
drawCircleKnob(QPainter& paint,
const
QPoint& pnt,
int
iKnobSize)
const
;
66
69
virtual
bool
endTransparentDraw
(QPainter& paint,
70
const
DtSymbol
*
const
symbol)
const
;
71
private
:
73
DtVertexDrawer
(
const
DtVertexDrawer
& orig);
74
DtVertexDrawer
&
operator=
(
const
DtVertexDrawer
& orig);
76
77
protected
:
78
DtKnobStyle
myKnobStyle
;
79
};
80
81
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)