#include <mod_sim_craft_proxy.hh>
Public Member Functions | |
| ProxyCraft (const eCraftModel craftModel, const WorldVertex &position) | |
| ~ProxyCraft () | |
| const string | GetName (void) |
| void | Draw (void) |
| void | Reset (void) |
| void | Incorporate (SharedPtr< Aircraft > craft, const string &modelName) |
| void | Cycle (void) |
| void | Animate (void) |
| void | SetPosition (const WorldVertex &position) |
| WorldVertex | GetPosition (void) |
| SharedPtr< const Matrix > | GetMatrix (void) |
| void | SetMatrix (const Matrix &matrix) |
| void | Translate (uint axis, fp inc) |
| void | Rotate (uint axis, Radian rad) |
| void | Rotate (uint axis, Radian rad, bool autoRotate) |
| void | RotateWings (const Degree deg, const bool set=false) |
| void | RotateGloveVanes (const Degree deg, const bool set=false) |
| void | RotateTailplanes (const Degree deg, const bool set=false) |
| void | RotateGears (const Degree deg, const bool set=false) |
| void | ResetRotation (void) |
| fp | GetThrottle (void) |
| void | SetThrottle (const fp throttle) |
| void | IncThrottle (const fp inc) |
| void | SetAutoStep (int autoStep) |
| void | SetAutoRotate (uint axis, Radian radian) |
| Physics & | GetPhysics (void) |
| fp | GetSpeedMach (void) |
| fp | GetMaxMach (void) |
| void | SetSpeedMach (const fp mach) |
| bool | IfStall (void) |
| void | EnableChasePlane (const bool enable=true) |
| void | SyncChasePlane (void) |
| void | RotateChasePlane (uint axis, Radian rad) |
| void | TranslateChasePlane (uint axis, fp inc) |
| void | ResetChasePlane (void) |
Public Attributes | |
| vector< SharedPtr < Aircraft > > | mCrafts |
| bool | mAutoRotate |
| uint | mAutoRotateAxis |
| Radian | mAutoRotateRad |
Private Member Functions | |
| void | InitF14Tomcat (const WorldVertex &position) |
The reason for a proxy is for switching 3D models. A 3D model is defined by a Graph, but a Graph's state changes as an Object is transformed. So, each model/Graph must transformed in unison. A proxy object is used to orchestrate a set of Crafts, only one of which is visible at a time.
| mod_sim::ProxyCraft::ProxyCraft | ( | const eCraftModel | craftModel, | |
| const WorldVertex & | position | |||
| ) |
| mod_sim::ProxyCraft::~ProxyCraft | ( | ) |
| const string mod_sim::ProxyCraft::GetName | ( | void | ) | [inline] |
| void mod_sim::ProxyCraft::Draw | ( | void | ) | [inline] |
| void mod_sim::ProxyCraft::Reset | ( | void | ) |
Reset.
| void mod_sim::ProxyCraft::Incorporate | ( | SharedPtr< Aircraft > | craft, | |
| const string & | modelName | |||
| ) |
| void mod_sim::ProxyCraft::Cycle | ( | void | ) |
Cycle to next model.
| void mod_sim::ProxyCraft::Animate | ( | void | ) |
Animation. Shimmering textures for alien Craft is done by mod_sim::Craft::Animate().
| void mod_sim::ProxyCraft::SetPosition | ( | const WorldVertex & | position | ) |
| WorldVertex mod_sim::ProxyCraft::GetPosition | ( | void | ) |
| void mod_sim::ProxyCraft::SetMatrix | ( | const Matrix & | matrix | ) |
| void mod_sim::ProxyCraft::Rotate | ( | uint | axis, | |
| Radian | rad | |||
| ) |
Rotate craft.
| void mod_sim::ProxyCraft::Rotate | ( | uint | axis, | |
| Radian | rad, | |||
| bool | autoRotate | |||
| ) |
| void mod_sim::ProxyCraft::RotateWings | ( | const Degree | deg, | |
| const bool | set = false | |||
| ) |
Rotate wings.
| void mod_sim::ProxyCraft::RotateGloveVanes | ( | const Degree | deg, | |
| const bool | set = false | |||
| ) |
Rotate glove vanes.
| void mod_sim::ProxyCraft::RotateTailplanes | ( | const Degree | deg, | |
| const bool | set = false | |||
| ) |
Rotate tailplanes.
| void mod_sim::ProxyCraft::RotateGears | ( | const Degree | deg, | |
| const bool | set = false | |||
| ) |
Rotate landing gears.
| void mod_sim::ProxyCraft::ResetRotation | ( | void | ) |
Reset rotation.
| fp mod_sim::ProxyCraft::GetThrottle | ( | void | ) |
Throttle.
| void mod_sim::ProxyCraft::SetThrottle | ( | const fp | throttle | ) |
| void mod_sim::ProxyCraft::IncThrottle | ( | const fp | inc | ) |
| void mod_sim::ProxyCraft::SetAutoStep | ( | int | autoStep | ) |
Auto-step (forward/backward animation).
| autoStep | {-1, 0, +1} backwards, disable, forward. |
| void mod_sim::ProxyCraft::SetAutoRotate | ( | uint | axis, | |
| Radian | radian | |||
| ) |
Auto-rotate.
| axis | AXIS_INVALID to disable. | |
| radian |
| Physics & mod_sim::ProxyCraft::GetPhysics | ( | void | ) |
Physics pass-thrus.
| fp mod_sim::ProxyCraft::GetSpeedMach | ( | void | ) |
| fp mod_sim::ProxyCraft::GetMaxMach | ( | void | ) |
| void mod_sim::ProxyCraft::SetSpeedMach | ( | const fp | mach | ) |
| bool mod_sim::ProxyCraft::IfStall | ( | void | ) |
| void mod_sim::ProxyCraft::EnableChasePlane | ( | const bool | enable = true |
) |
Enable ChasePlane.
| void mod_sim::ProxyCraft::SyncChasePlane | ( | void | ) |
Sync matrixs of target and ChasePlane.
| void mod_sim::ProxyCraft::RotateChasePlane | ( | uint | axis, | |
| Radian | rad | |||
| ) |
Rotate ChasePlane.
| void mod_sim::ProxyCraft::ResetChasePlane | ( | void | ) |
Reset ChasePlane.
| void mod_sim::ProxyCraft::InitF14Tomcat | ( | const WorldVertex & | position | ) | [private] |
| vector<SharedPtr<Aircraft> > mod_sim::ProxyCraft::mCrafts |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:30 2007