VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgSegmentPickable.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 <
vrvOsg/vrvOsg.h
>
13
14
#include <osg/ShapeDrawable>
15
#include <osg/MatrixTransform>
16
17
namespace
makVrv
18
{
23
class
DT_DLL_VRVOSG
DtOsgSegmentPickable
24
{
25
public
:
26
28
DtOsgSegmentPickable
(osg::Group* parent);
29
31
virtual
~
DtOsgSegmentPickable
();
32
34
virtual
void
updateFromGeometry(
const
std::vector<osg::Vec3>& geometry,
const
std::vector<double>& lineWidths);
35
37
virtual
void
updateFromGeometry(
const
osg::Vec3Array& geometry,
const
std::vector<double>& lineWidths);
38
40
virtual
void
removeAll();
41
42
protected
:
43
osg::Group*
myParent
;
44
osg::ref_ptr<osg::Group>
myPickableTransform
;
45
struct
PickableSegment
46
{
47
osg::ref_ptr<osg::MatrixTransform>
transform
;
48
osg::ref_ptr<osg::Geode>
geode
;
49
};
50
51
typedef
std::vector<PickableSegment>
PickableSegments
;
52
PickableSegments
myPickableSegments
;
53
};
54
}
55
56
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
)