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
vrfmodel
dynamicFeaturesController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfmodel/vrfmodelDefines.h
"
14
#include "
vrfobjcore/controllerComponent.h
"
15
#include "
features/feature.h
"
16
#include "
features/dynamicFeature.h
"
17
19
20
class
DT_DLL_vrfmodel
DtVrfObjectFeature
21
:
public
MAKVRinTerra::DtDynamicFeature
<MAKVRinTerra::DtFeature>
22
{
23
typedef
MAKVRinTerra::DtDynamicFeature<MAKVRinTerra::DtFeature>
Base
;
24
25
public
:
26
explicit
DtVrfObjectFeature
(
DtVrfObject
*
object
);
27
28
MAKVRinTerra::DtFeature
*
clone
()
const
;
29
void
forEachAttribute
(
ForEachFunction
)
const
;
30
unsigned
numberOfAttributes
(
const
Key::String
&)
const
;
31
bool
hasAttribute
(
const
Key
&)
const
;
32
boost::optional<Attribute>
attribute
(
const
Key
&)
const
;
33
34
virtual
DtObjectType
objectType()
const
;
35
virtual
std::string objectName()
const
;
36
virtual
std::string objectUuid()
const
;
37
virtual
DtVector
position()
const
;
38
39
protected
:
40
DtVrfObject
*
myObject
;
41
DtObjectType
myObjectType
;
42
std::string
myObjectTypeString
;
43
44
DtVector
myLastPosition
;
45
};
46
47
class
DT_DLL_vrfmodel
DtDynamicFeaturesController
:
public
DtControllerComponent
48
{
49
public
:
50
DtDynamicFeaturesController
(
51
const
DtString
& name,
52
DtVrfObject
* owner,
53
DtSimManager
* simManager,
54
DtComponentDescriptor
* desc = 0,
55
DtReaderWriterRegistry
* parentRegistry = 0);
56
57
virtual
~
DtDynamicFeaturesController
();
58
59
static
DtSimComponent
* creator(
const
DtString
& name,
60
DtVrfObject
* owner,
61
DtSimManager
* simManager,
62
DtComponentDescriptor
* desc = 0,
63
DtReaderWriterRegistry
* parentRegistry = 0);
64
67
virtual
const
char
*
type
()
const
;
68
69
virtual
bool
init
();
70
71
virtual
void
tick
();
72
73
protected
:
74
virtual
void
verticesChanged();
75
76
virtual
boost::shared_ptr<DtVrfObjectFeature> createFeature();
77
virtual
bool
isChanged()
const
;
78
79
boost::shared_ptr<DtVrfObjectFeature>
myFeature
;
80
81
private
:
82
static
void
staticVerticesChangedCallback(
DtVrfObject
* obj,
void
* data);
83
84
DtDynamicFeaturesController
(
const
DtDynamicFeaturesController
&);
85
DtDynamicFeaturesController
&
operator=
(
const
DtDynamicFeaturesController
&);
86
};
87
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
)