VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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/fixedWingEntityParameters.h
"
21
#include "
vrfobjparam/vrfObjectParameters.h
"
22
#include "
vrfobjcore/rwGroundInteractionPt.h
"
23
#include "
vrfobjparam/vrfXmlUtils.h
"
24
25
class
DtString
;
26
class
DtReaderWriterRegistry
;
27
28
class
DtSpaceEntityParameters
:
public
DtFixedWingEntityParameters
29
{
30
public
:
31
32
//constructor with parameters to set up read/writability correctly
33
DtSpaceEntityParameters
(
const
DtString
&
name
= DtString::nullString(),
34
DtReaderWriterRegistry
* parentRegistry = NULL,
DtEnvironmentSP
env =
DtEnvironmentSP
(), DtEnvValueSP*
objectNode
= NULL);
35
36
//copy constructor
37
DtSpaceEntityParameters
(
const
DtSpaceEntityParameters
& orig,
38
const
DtString
&
name
,
39
DtReaderWriterRegistry
* parentRegistry = NULL);
40
41
const
DtSpaceEntityParameters
&
operator=
(
const
42
DtSpaceEntityParameters
& orig);
43
44
//destructor
45
virtual
~DtSpaceEntityParameters
();
46
47
//Returns new copy of this object
48
virtual
DtVrfObjectParameters
*
clone
(
49
const
DtString
& name = DtString::nullString(),
50
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
51
52
//should return the type of entity this is a parameter block for.
53
//Use the strings in paramTypes.h
54
virtual
DtString
type
()
const
;
55
56
//Accessor/mutator for our new parameter, myMaxHullTemperature.
57
//Set/get maximum hull temperature this entity can sustain.
58
//In degrees Celsius.
59
virtual
void
setMaxHullTemperature
(DtReal temp);
60
virtual
DtReal
maxHullTemperature
()
const
;
61
62
static
DtVrfObjectParameters
*
creator
(
DtEnvironmentSP
, DtEnvValueSP* root);
63
64
protected
:
65
66
DtRwReal
myMaxHullTemperature
;
67
};
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)