VR-Forces 4.3 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
class
DtVector
;
28
29
class
DtSpaceEntityParameters
:
public
DtFixedWingEntityParameters
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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)