VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)