IMS2
Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
|
Stores the static data of an Rcs thruster. More...
Public Member Functions | |
virtual bool | HasGui () |
This function serves to check whether a module function has a GUI before creating it. More... | |
bool | IsMirrored () |
Public Member Functions inherited from IMS_ModuleFunctionData_Thruster | |
THRUSTERMODE * | GetThrusterMode (int mode) |
int | getNumberOfModes () |
THRUSTEREXHAUST * | GetThrusterExhaust (int idx) |
int | GetNumberOfExhausts () |
VECTOR3 | GetThrustDirection () |
VECTOR3 | GetThrusterPosition () |
Public Member Functions inherited from IMS_ModuleFunctionData_Base | |
virtual bool | LoadFromFile (string configfile, IMSFILE cfg) |
Loads the data from config file. More... | |
FUNCTIONTYPE | GetType () |
string | GetName () |
Protected Member Functions | |
virtual bool | processConfigLine (vector< string > &tokens) |
Receives all lines of the config file that concern this ModuleFunction one by one. More... | |
virtual bool | validateData (string configfile) |
Validates the data for completeness after loading. More... | |
void | mirrorExhausts () |
Creates exhausts mirroring the existing ones. | |
Protected Attributes | |
bool | mirrored = false |
if true, a mirrored thruster will be placed on the same module | |
Protected Attributes inherited from IMS_ModuleFunctionData_Thruster | |
vector< THRUSTERMODE > | thrustermodes |
vector< THRUSTEREXHAUST > | exhausts |
VECTOR3 | thrustdirection = _V(0, 0, 0) |
VECTOR3 | thrusterpos = _V(0, 0, 0) |
Protected Attributes inherited from IMS_ModuleFunctionData_Base | |
FUNCTIONTYPE | type |
Stores the type of the ModuleFunction. | |
string | name = "" |
Stores the Name of the ModuleFunction. | |
Stores the static data of an Rcs thruster.
In general, defining an RCS thruster is no different from defining a normal thruster. All parameters used for a thruster are valid, with the limitation that Rcs thrusters will only ever use the first thrustermode defined. There is one additional parameter to common thrusterdefinitions:
|
inlinevirtual |
This function serves to check whether a module function has a GUI before creating it.
Reimplemented from IMS_ModuleFunctionData_Thruster.
|
protectedvirtual |
Receives all lines of the config file that concern this ModuleFunction one by one.
Overload this function to receive the relevant data of your module.
tokens | a vector of strings that contains the individual parts of the line, delimited by whitespace or '=' |
Reimplemented from IMS_ModuleFunctionData_Thruster.
|
protectedvirtual |
Validates the data for completeness after loading.
Implement this function to validate your data at the end of the loading process. Check if everything's there that needs to be, and write log messages if it isn't.
configfile | The name of the configfile, so you can add it to your messages so config writers find their mistakes faster. |
Reimplemented from IMS_ModuleFunctionData_Thruster.