Namespaces | Defines | Functions | Variables

_src_program_aircraft_models.cc File Reference

Aircraft classes. More...

#include "base/module.hh"
#include "math/module.hh"
#include "math/funcs_trig.hh"
#include "math/funcs_vector.hh"
#include "gfx/module.hh"
#include "graph/module.hh"
#include "graph/subgraph.hh"
#include "graph/shadow_scene_graph.hh"
#include "object/module.hh"
#include "object/aircraft.hh"
#include "control/module.hh"
#include "control/defs_axis.hh"
#include "physics/module.hh"
#include "program/module.hh"
#include "program/aircraft_models.hh"

Namespaces

namespace  program
 

Top-level module.


Defines

#define PROGRAM_AIRCRAFT_CC   1
#define CODE_CLASS_GET_SPECS(CONF_FILENAME)
#define MAKE_AIRCRAFT(CLASS)
#define F14_PUSH_GEAR_SUBGRAPH(NUM)   mGearSubgraphs.push_back( mSubgraphGear##NUM );
#define F14_PUSH_WING_SUBGRAPH(NUM)
#define F14_ROTATE_AILERONS(SUBGRAPH, CONTROL_FRACTION, AILERON)

Functions

shptr< Aircraftprogram::MakeAircraft (eAircraftType aircraftType, const WorldVertex &pos, const bool loadCopy)

Variables

INTERN const fp program::THROTTLE_PROPELLER = 0.2f
INTERN const fp program::THROTTLE_FLAME_LOW = 0.3f
INTERN const fp program::THROTTLE_FLAME_HIGH = 0.7f
INTERN const fp program::THROTTLE_FLAME = THROTTLE_FLAME_HIGH
INTERN const fp program::F14_AILERONS_ACTIVE_SWING_WINGS = 0.75f

Detailed Description

Aircraft classes.

LastChangedDate:
2010-06-24 10:22:48 -0400 (Thu, 24 Jun 2010)
Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define CODE_CLASS_GET_SPECS (   CONF_FILENAME  ) 
Value:
{                                                                           \
    /* Load specs from a .conf file once. */                                \
    PERSISTENT AircraftSpecs sAircraftSpecs;                                \
    BEGIN_ONCE {                                                            \
        sAircraftSpecs.ReadSpecsFromConfFile( CONF_FILENAME );              \
    } END_ONCE                                                              \
    return sAircraftSpecs;                                                  \
}
#define F14_PUSH_GEAR_SUBGRAPH (   NUM  )     mGearSubgraphs.push_back( mSubgraphGear##NUM );
#define F14_PUSH_WING_SUBGRAPH (   NUM  ) 
Value:
mLeftWingSubgraphs.push_back(  mSubgraphWingLeft##NUM );    \
        mRightWingSubgraphs.push_back( mSubgraphWingRight##NUM );
#define F14_ROTATE_AILERONS (   SUBGRAPH,
  CONTROL_FRACTION,
  AILERON 
)
Value:
{{                                                                              \
                    (SUBGRAPH).Translate( specs.mAileronOffset );                               \
                    (SUBGRAPH).Rotate( MODEL_AXIS_PITCH,                                        \
                                       specs.mAileronROF * (CONTROL_FRACTION) * int(AILERON) ); \
                    (SUBGRAPH).Translate( -specs.mAileronOffset );                              \
                }}
#define MAKE_AIRCRAFT (   CLASS  ) 
Value:
{                                                                               \
    graph = Aircraft::LoadModel( CLASS::ClassGetSpecs(), loadCopy ).PTR();      \
    aircraft = new CLASS( graph.PTR(), pos );                                   \
}
#define PROGRAM_AIRCRAFT_CC   1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10