VR-Forces 4.1.1 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) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: spacePar.h,v $ $Revision: 1.11 $ $State: Exp $
7
*******************************************************************************/
8
9
10
//
11
//File: spacePar.h
12
//
13
//Class: DtSpaceEntityParameters
14
//
15
//Description: This parameter class holds all of the parameters required by
16
//space entities (entities having a state repository class of type
17
//DtSpaceEntityStateRepository). It contains a single the readable/writeable
18
//parameter data members specific to space entities. In this example, we add a
19
//single new readable/writeable parameter, myMaxHullTemperature.
20
21
#ifndef DtSpaceEntityParameters_H_
22
#define DtSpaceEntityParameters_H_
23
24
#include "
vrfobjparam/mvObjParams.h
"
25
#include "
vrfobjparam/vrfObjParams.h
"
26
#include "
vrfobjcore/rwGndInter.h
"
27
28
29
class
DtString
;
30
class
DtReaderWriterRegistry
;
31
class
DtVector
;
32
33
class
DtSpaceEntityParameters
:
public
DtMovingObjectParameters
34
{
35
public
:
36
37
//constructor with parameters to set up read/writability correctly
38
DtSpaceEntityParameters
(
const
DtString
&
name
= DtString::nullString(),
39
DtReaderWriterRegistry
* parentRegistry = NULL);
40
41
//copy constructor
42
DtSpaceEntityParameters
(
const
DtSpaceEntityParameters
& orig,
43
const
DtString
&
name
,
44
DtReaderWriterRegistry
* parentRegistry = NULL);
45
46
const
DtSpaceEntityParameters
&
operator=
(
const
47
DtSpaceEntityParameters
& orig);
48
49
//destructor
50
virtual
~DtSpaceEntityParameters
();
51
52
//Returns new copy of this object
53
virtual
DtVrfObjectParameters
*
clone
(
54
const
DtString
& name = DtString::nullString(),
55
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
56
57
//should return the type of entity this is a parameter block for.
58
//Use the strings in paramTypes.h
59
virtual
DtString
type
()
const
;
60
61
//Accessor/mutator for our new parameter, myMaxHullTemperature.
62
//Set/get maximum hull temperature this entity can sustain.
63
//In degrees Celsius.
64
virtual
void
setMaxHullTemperature
(DtReal temp);
65
virtual
DtReal
maxHullTemperature
()
const
;
66
67
static
DtVrfObjectParameters
*
creator
();
68
69
protected
:
70
71
DtRwReal
myMaxHullTemperature
;
72
};
73
74
#endif
75
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)