VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvGraphics
DtTexturedLine.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvGraphics/vrvGraphics.h
>
13
#include <
vrvGraphics/DtSegmentedLine.h
>
14
#include <
vrvGraphics/DtOverlayResourceProvider.h
>
15
16
namespace
makVrv
17
{
18
class
DtTexturedLineSegment;
19
22
class
DT_DLL_VRVGRAPHICS
DtTexturedLine
:
public
DtSegmentedLine
23
{
24
public
:
25
27
DtTexturedLine
(
DtOverlayRenderer
& renderer,
DtWidgetPicker
& picker);
28
30
virtual
~
DtTexturedLine
();
31
33
virtual
DtLineSegmentInterface
* createAndInitNewSegment();
34
36
virtual
void
setTexture(
DtOverlayResourceProvider::NativeResourceHandle
texture,
float
textureWidth);
37
40
virtual
void
setZoomFactor(
float
z);
41
43
virtual
void
setRotationOffset(
float
);
44
45
protected
:
47
virtual
void
removeLineSegmentsUntilEndFrom(
int
segmentCount);
48
50
virtual
void
setLineSegment(
int
,
DtLineSegmentInterface
*);
51
52
protected
:
53
typedef
std::vector<DtTexturedLineSegment*>
TexturedLineSegmentList
;
54
TexturedLineSegmentList
myTexturedLineSegments
;
55
56
DtOverlayResourceProvider::NativeResourceHandle
myTexture
;
57
float
myTextureWidth
;
58
float
myZoomFactor
;
59
float
myRotationOffset
;
60
};
61
}
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)