VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
deadReckoningSettings.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: deadReckoningSettings.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
11
15
16
#pragma once
17
18
#include "
makSettingsManager/settingsObject.h
"
19
#include "
makSettingsManager/settingsObjectFactory.h
"
20
#include "
vrfutil/vrfutilDefines.h
"
21
22
#include <boost/serialization/nvp.hpp>
23
#include <boost/serialization/base_object.hpp>
24
#include <boost/serialization/export.hpp>
25
26
#include <boost/archive/xml_iarchive.hpp>
27
#include <boost/archive/xml_oarchive.hpp>
28
#include <boost/archive/text_iarchive.hpp>
29
#include <boost/archive/text_oarchive.hpp>
30
31
class
DT_DLL_vrfutil
DtDeadReckoningSettings
:
public
DtSettingsObject
32
{
33
public
:
35
DtDeadReckoningSettings
();
36
38
DtDeadReckoningSettings
(std::string name);
39
41
DtDeadReckoningSettings
(std::string name,
double
translationThreshold,
42
double
rotationThreshold);
43
45
DtDeadReckoningSettings
(
const
DtDeadReckoningSettings
& orig);
46
48
virtual
bool
operator==
(
const
DtSettingsObject
& other)
const
;
49
51
virtual
bool
operator!=
(
const
DtSettingsObject
& other)
const
;
52
54
virtual
DtSettingsObject
*
clone
()
const
;
55
56
virtual
bool
setFrom
(
const
DtSettingsObject
* other);
57
59
static
DtSettingsObject
* create(
DtSettingsObjectCreationParams
& params);
60
62
63
double
translationThreshold()
const
;
64
void
setTranslationThreshold(
double
threshold);
66
68
69
double
rotationThreshold()
const
;
70
void
setRotationThreshold(
double
threshold);
72
73
private
:
74
friend
class
boost::serialization::access;
76
template
<
class
Archive>
77
void
serialize
(Archive & ar,
const
unsigned
int
version)
78
{
80
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
DtSettingsObject
);
81
83
ar & BOOST_SERIALIZATION_NVP(myTranslationThreshold);
84
ar & BOOST_SERIALIZATION_NVP(myRotationThreshold);
85
}
86
87
protected
:
88
double
myTranslationThreshold
;
89
double
myRotationThreshold
;
90
};
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
)