VR-Forces 4.7 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
vrfExtObjects
rectangularPyramidPublisherDIS.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#if DtDIS
13
14
#include <
vrfExtObjects/dllExport.h
>
15
#include <
vrfExtObjects/rectangularPyramidEncoderDIS.h
>
16
#include <
vrfExtObjects/rectangularPyramidDecoderDIS.h
>
17
#include <vl/objectPublisherDIS.h>
18
19
class
DtRectangularPyramidStateRepository
;
20
25
class
DT_DLL_vrfExtObjects
DtRectangularPyramidPublisher
:
public
DtObjectPublisher
26
{
27
public
:
29
typedef
DtRectangularPyramidStateRepository
* (*DtStateRepCreator)();
30
31
public
:
33
DtRectangularPyramidPublisher
(
34
DtRectangularPyramidStateRepository
* stateRepToUse,
35
DtExerciseConn* conn,
36
const
DtObjectId&
id
= DtObjectId::nullId());
37
39
DtRectangularPyramidPublisher
(
40
DtExerciseConn* conn,
41
const
DtObjectId&
id
= DtObjectId::nullId());
42
44
virtual
~
DtRectangularPyramidPublisher
();
45
46
private
:
48
DtRectangularPyramidPublisher
(
const
DtRectangularPyramidPublisher
& orig);
49
51
DtRectangularPyramidPublisher
& operator=(
52
const
DtRectangularPyramidPublisher
& orig);
53
54
public
:
55
58
virtual
DtRectangularPyramidStateRepository
* rectangularPyramidStateRep();
59
61
virtual
DtRectangularPyramidStateRepository
* rsr();
62
64
virtual
void
tick();
65
67
virtual
void
forceUpdate();
68
70
virtual
const
DtObjectId& id()
const
;
71
73
virtual
const
DtObjectId& localId()
const
;
74
76
virtual
const
DtGlobalObjectDesignator
& globalId()
const
;
77
78
public
:
80
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
81
82
protected
:
83
static
DtStateRepCreator
theStateRepCreator
;
84
DtObjectId
myId
;
85
DtRectangularPyramidDecoder
*
myDecoder
;
86
DtRectangularPyramidEncoder
*
myEncoder
;
87
88
};
89
90
inline
DtRectangularPyramidStateRepository
*
DtRectangularPyramidPublisher::rectangularPyramidStateRep
()
91
{
92
return
(
DtRectangularPyramidStateRepository
*) myStateRep;
93
}
94
95
inline
DtRectangularPyramidStateRepository
*
DtRectangularPyramidPublisher::rsr
()
96
{
97
return
(
DtRectangularPyramidStateRepository
*) myStateRep;
98
}
99
100
#endif // DtDIS
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)