VR-Forces 4.1 Class Documentation
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 
26 #include "vrfobjcore/rwGndInter.h"
27 
28 
29 class DtString;
31 class DtVector;
32 
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
43  const DtString& name,
44  DtReaderWriterRegistry* parentRegistry = NULL);
45 
46  const DtSpaceEntityParameters & operator=(const
48 
49  //destructor
50  virtual ~DtSpaceEntityParameters();
51 
52  //Returns new copy of this object
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 
68 
69 protected:
70 
72 };
73 
74 #endif
75 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)