![]() |
convertUNICADO2CPACS
|
Class for creation and management of program output. More...
#include <convertUNICADO2CPACSOutput.h>
Public Member Functions | |
convertUNICADO2CPACSOutput (const convertUNICADO2CPACS &myConverter, const convertUNICADO2CPACSSettings &mySettings) | |
Constructor of class convertUNICADO2CPACSOutput. More... | |
virtual | ~convertUNICADO2CPACSOutput () |
Destructor of class convertUNICADO2CPACSOutput. More... | |
void | initialize () override |
Function sets settings and xml paths for writing the output. More... | |
Private Member Functions | |
std::stringstream | generateHtmlReportBody () override |
Method for generating the HTML report. More... | |
std::stringstream | generateTexReportBody () override |
Method for generating the tex-report. More... | |
void | generatePlotData () override |
Generate plot data. More... | |
void | generatePlotScripts () override |
Generate plot script. More... | |
void | writeXmlOutput () override |
Method for generating the xml-output and writing this to the Aircraft-Exchange-File. More... | |
void | writeCpacsHeader () |
Function writes cpacs header. More... | |
void | writeVehicles () |
Function writes vehicle. More... | |
void | writeCpacsAircraft () |
Function writes cpacs aircraft. More... | |
void | writeGeneral () |
Function writes general vehicle information. More... | |
void | writeMassesAndLoadings () |
Function writes masses and loadings. More... | |
void | writeMassBreakdown () |
Function writes mass breakdown. More... | |
void | writeProfiles () |
Function writes profile geometry of fuselage and wings to <cpacs/vehicles/profiles/...> More... | |
void | writeFuselage () |
Functions writes fuselage data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>) More... | |
void | writeFuselageProfiles () |
Function writes fuselage geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>) More... | |
void | writeWing () |
Functions writes wing data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>) More... | |
void | writeWingProfiles () |
Function writes wing geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>) More... | |
void | writeWingFuelTank (cpacsAcft::cpacsWing *cpacsWingPt) |
Function writes wing fuel tank into CPACS-XML. More... | |
void | writeStabiliser () |
Function writes stabiliser geometry into CPACS-XML by calling function writeLiftingSurface. More... | |
void | writeLiftingSurface (cpacsAcft::cpacsWing *cpacsWingPt) |
Function writes lifting surface geometry into CPACS-XML. More... | |
void | writeFin () |
Function writes fin geometry into CPACS-XML. More... | |
void | writePropulsionGeometry () |
Function writes pylon and engine geometry into CPACS-XML. More... | |
void | writeNacelles () |
Function writes nacelle geometry into CPACS-XML. More... | |
void | writeLandingGear () |
Functions writes landing gear geometry into CPACS-XML. More... | |
void | writeWheelGeometry (cpacsAcft::cpacsGear::wheel *thisWheelPt, const std::string &parentUID) |
Functions writes wheel geometry into CPACS-XML. More... | |
void | writeLandingGearStrut (const std::string &GearPath, cpacsAcft::cpacsGear *thisGearPt) |
Functions writes gear strut geometry into CPACS-XML. More... | |
void | writeWheelStrutGeometry (cpacsAcft::cpacsGear::mainStrut *thisGearStrutPt, const std::string &parentUID) |
Functions writes wheel geometry into CPACS-XML. More... | |
void | writeAnalysis () |
writes <cpacs/vehicle/aircraft/model/analysis> More... | |
void | writeAccommodation () |
writes accomodation data into CPACS-XML More... | |
void | writeSystems () |
writes system data into CPACS-XML More... | |
void | writeAerodynamics () |
writes aerodynamics data into CPACS-XML More... | |
void | writeStabilityAndControlCharacteristics () |
writes stability and control characteristics into CPACS-XML More... | |
void | writePerformance () |
writes performance data into CPACS-XML More... | |
void | writeMission (cpacsAcft::cpacsMission *thisCpacsMissionPt) |
writes mission into CPACS-XML More... | |
void | writeMonetaryValues () |
writes monetary values into CPACS-XML More... | |
void | writeEcologicalValues () |
writes ecological values into CPACS-XML More... | |
void | writeRequirements () |
writes requirements into CPACS-XML More... | |
void | writeDesignSpecs () |
writes design specification into CPACS-XML More... | |
void | writeTrajectory (cpacsAcft::cpacsMission *thisCpacsMissionPt) |
writes trajectory into CPACS-XML More... | |
void | writeEnginePerformance () |
writes engine performance data into CPACS-XML More... | |
node * | createCpacsXmlPath (const std::string &xMLPath, const bool &duplicateChild=false) const |
Functions creates new xml path in cpacs file. More... | |
void | deleteEmptyuID (const std::string &path) |
Function checks if tree has an empty uID at the given Path. If Yes, it is deleted. More... | |
void | deleteEmptyTree (const std::string &path) |
Function checks if any uID has been written within the path. If not, it is deleted. More... | |
void | deleteEmptyTrees () |
A hardcoded function to check every tree in cpacs with deleteEmptyTree() More... | |
void | writeVec3CpacsXml (const Vec3 &Vector, const std::string &path) |
writes in vector defined location into cpacs xml More... | |
void | writeMat3CpacsXml (const Mat3 &Matrix, const std::string &path) |
writes 3x3 matrix into cpacs xml More... | |
template<class T > | |
void | writeCpacsXML (T value, std::string Path, const bool &duplicateIfAlreadyExisting=false) const |
template to check if node in cpacs xml exists More... | |
Private Attributes | |
const convertUNICADO2CPACSSettings * | mySettingsPt |
cpacsAcft * | myCpacsAcftPt |
unicadoAcft * | myUnicadoAcftPt |
node & | acXML |
double | columnWidth |
double | columnSpace |
std::string | cpacsAcftModelXMLPath |
std::string | massBreakdownPath |
std::string | cpacsAcftModelToolSpecificXMLPath |
std::string | massBreakdownToolSpecificPath |
Class for creation and management of program output.
convertUNICADO2CPACSOutput::convertUNICADO2CPACSOutput | ( | const convertUNICADO2CPACS & | myConverter, |
const convertUNICADO2CPACSSettings & | mySettings | ||
) |
Constructor of class convertUNICADO2CPACSOutput.
myConverter | converter object |
mySettings | Global settings object |
|
virtual |
Destructor of class convertUNICADO2CPACSOutput.
|
private |
Functions creates new xml path in cpacs file.
xMLPath | string contains name of new path |
duplicateChild | checks for duplicate data |
|
private |
Function checks if any uID has been written within the path. If not, it is deleted.
|
private |
A hardcoded function to check every tree in cpacs with deleteEmptyTree()
|
private |
Function checks if tree has an empty uID at the given Path. If Yes, it is deleted.
|
overrideprivate |
Method for generating the HTML report.
|
overrideprivate |
Generate plot data.
|
overrideprivate |
Generate plot script.
|
overrideprivate |
Method for generating the tex-report.
|
override |
Function sets settings and xml paths for writing the output.
|
private |
writes accomodation data into CPACS-XML
|
private |
writes aerodynamics data into CPACS-XML
|
private |
writes <cpacs/vehicle/aircraft/model/analysis>
|
private |
Function writes cpacs aircraft.
|
private |
Function writes cpacs header.
|
private |
template to check if node in cpacs xml exists
value | value for the node |
path | path in cpacs xml |
duplicateIfAlreadyExisting | check if the node already exists |
|
private |
writes design specification into CPACS-XML
|
private |
writes ecological values into CPACS-XML
|
private |
writes engine performance data into CPACS-XML
|
private |
Function writes fin geometry into CPACS-XML.
|
private |
Functions writes fuselage data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>)
|
private |
Function writes fuselage geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>)
|
private |
Function writes general vehicle information.
|
private |
Functions writes landing gear geometry into CPACS-XML.
|
private |
Functions writes gear strut geometry into CPACS-XML.
thisGearPt | Pointer to the cpacs landing gear |
GearPath | XML-path to cpacs landing gear |
|
private |
Function writes lifting surface geometry into CPACS-XML.
cpacsWingPt | pointer to cpacs wing object |
|
private |
Function writes mass breakdown.
<
<
|
private |
Function writes masses and loadings.
|
private |
writes 3x3 matrix into cpacs xml
Matrix | 3x3 moment of inertia tensor [kg*m^2] |
path | path in cpacs xml |
|
private |
writes mission into CPACS-XML
thisCpacsMissionPt | Pointer to cpacs mission |
|
private |
writes monetary values into CPACS-XML
|
private |
Function writes nacelle geometry into CPACS-XML.
|
private |
writes performance data into CPACS-XML
|
private |
Function writes profile geometry of fuselage and wings to <cpacs/vehicles/profiles/...>
|
private |
Function writes pylon and engine geometry into CPACS-XML.
|
private |
writes requirements into CPACS-XML
|
private |
Function writes stabiliser geometry into CPACS-XML by calling function writeLiftingSurface.
|
private |
writes stability and control characteristics into CPACS-XML
|
private |
writes system data into CPACS-XML
|
private |
writes trajectory into CPACS-XML
thisCpacsMissionPt | Pointer to cpacs mission |
|
private |
writes in vector defined location into cpacs xml
Vector | 3 dimensional location in reference to the global point of reference (x,y,z coordinates) [m] |
path | path in cpacs xml |
|
private |
Function writes vehicle.
|
private |
Functions writes wheel geometry into CPACS-XML.
thisWheelPt | Pointer to the cpacs wheel geometry |
parentUID | uID of parent geometry |
|
private |
Functions writes wheel geometry into CPACS-XML.
thisGearStrutPt | Pointer to the cpacs landing gear strut |
parentUID | uID of parent geometry |
|
private |
Functions writes wing data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>)
|
private |
Function writes wing fuel tank into CPACS-XML.
cpacsWingPt | pointer to cpacs wing object |
|
private |
Function writes wing geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>)
|
overrideprivate |
Method for generating the xml-output and writing this to the Aircraft-Exchange-File.
|
private |
Node for aircraft xml
|
private |
column distance in HTML-Report [px]
|
private |
width of figure in HTML-Report [px]
|
private |
XML Path of tool specific data
|
private |
XML Path of the AC Model with uID
|
private |
XML Path of the massBreakdown with uID
|
private |
XML Path of the tool specific mass breakdown
|
private |
Pointer to cpacs aircraft
|
private |
pointer to convertUNICADO2CPACSSettings object
|
private |
Pointer to unicado aircaft