VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
23 
24 class DtString;
26 
28 {
29 public:
30 
31  //constructor with parameters to set up read/writability correctly
32  DtSpaceEntityParameters(const DtString& name = DtString::nullString(),
33  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(), DtEnvValueSP* objectNode = NULL);
34 
35  //copy constructor
37  const DtString& name,
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
40  const DtSpaceEntityParameters & operator=(const
42 
43  //destructor
44  virtual ~DtSpaceEntityParameters();
45 
46  //Returns new copy of this object
48  const DtString& name = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0) const;
50 
51  //should return the type of entity this is a parameter block for.
52  //Use the strings in paramTypes.h
53  virtual DtString type() const;
54 
55  //Accessor/mutator for our new parameter, myMaxHullTemperature.
56  //Set/get maximum hull temperature this entity can sustain.
57  //In degrees Celsius.
58  virtual void setMaxHullTemperature(DtReal temp);
59  virtual DtReal maxHullTemperature() const;
60 
61  static DtVrfObjectParameters* creator(DtEnvironmentSP, DtEnvValueSP* root);
62 
63 protected:
64 
66 };

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)