VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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 Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)