VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addEntity
spacePar.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
7
//
8
//File: spacePar.h
9
//
10
//Class: DtSpaceEntityParameters
11
//
12
//Description: This parameter class holds all of the parameters required by
13
//space entities (entities having a state repository class of type
14
//DtSpaceEntityStateRepository). It contains a single the readable/writeable
15
//parameter data members specific to space entities. In this example, we add a
16
//single new readable/writeable parameter, myMaxHullTemperature.
17
18
#pragma once
19
20
#include "
vrfobjparam/mvObjParams.h
"
21
#include "
vrfobjparam/vrfObjParams.h
"
22
#include "
vrfobjcore/rwGndInter.h
"
23
#include "
vrfobjparam/vrfXmlUtils.h
"
24
25
class
DtString
;
26
class
DtReaderWriterRegistry
;
27
class
DtVector
;
28
29
class
DtSpaceEntityParameters
:
public
DtMovingObjectParameters
30
{
31
public
:
32
33
//constructor with parameters to set up read/writability correctly
34
DtSpaceEntityParameters
(
const
DtString
&
name
= DtString::nullString(),
35
DtReaderWriterRegistry
* parentRegistry = NULL,
DtEnvironmentSP
env =
DtEnvironmentSP
(), DtEnvValueSP* objectNode = NULL);
36
37
//copy constructor
38
DtSpaceEntityParameters
(
const
DtSpaceEntityParameters
& orig,
39
const
DtString
&
name
,
40
DtReaderWriterRegistry
* parentRegistry = NULL);
41
42
const
DtSpaceEntityParameters
&
operator=
(
const
43
DtSpaceEntityParameters
& orig);
44
45
//destructor
46
virtual
~DtSpaceEntityParameters
();
47
48
//Returns new copy of this object
49
virtual
DtVrfObjectParameters
*
clone
(
50
const
DtString
& name = DtString::nullString(),
51
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
52
53
//should return the type of entity this is a parameter block for.
54
//Use the strings in paramTypes.h
55
virtual
DtString
type
()
const
;
56
57
//Accessor/mutator for our new parameter, myMaxHullTemperature.
58
//Set/get maximum hull temperature this entity can sustain.
59
//In degrees Celsius.
60
virtual
void
setMaxHullTemperature
(DtReal temp);
61
virtual
DtReal
maxHullTemperature
()
const
;
62
63
static
DtVrfObjectParameters
*
creator
(
DtEnvironmentSP
, DtEnvValueSP* root);
64
65
protected
:
66
67
DtRwReal
myMaxHullTemperature
;
68
};
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)