Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <plane_display.h>
Classes | |
struct | AnimationItem |
Public Member Functions | |
PlaneDisplay () | |
void | Draw (const Sensor &sensor, VSSprite *, VSSprite *) |
void | OnDockEnd () |
void | OnJumpEnd () |
![]() | |
DualDisplayBase () | |
void | OnPauseBegin () |
void | OnPauseEnd () |
![]() | |
virtual | ~Display () |
virtual void | OnJumpBegin () |
Protected Types | |
typedef std::vector< float > | AngleSequence |
typedef std::queue< AnimationItem > | AnimationCollection |
Protected Member Functions | |
void | DrawGround (const Sensor &, const ViewArea &) |
void | DrawNear (const Sensor &, const Sensor::TrackCollection &) |
void | DrawDistant (const Sensor &, const Sensor::TrackCollection &) |
void | DrawTrack (const Sensor &, const ViewArea &, const Track &, float) |
void | DrawTarget (Track::Type::Value, const Vector &, const Vector &, float, const GFXColor &) |
void | DrawTargetMarker (const Vector &, const Vector &, const Vector &, float, const GFXColor &, bool) |
void | Animate () |
void | PrepareAnimation (const Vector &, const Vector &, const AngleSequence &, const AngleSequence &, const AngleSequence &) |
void | CalculateRotation () |
Vector | Projection (const ViewArea &, const Vector &) |
![]() | |
float | Jitter (float errorOffset, float errorRange) |
void | Jitter (float errorOffset, float errorRange, Vector &position) |
Protected Attributes | |
Vector | finalCameraAngle |
Vector | currentCameraAngle |
Vector | xrotation |
Vector | yrotation |
Vector | zrotation |
std::vector< Vector > | groundPlane |
float | radarTime |
AnimationCollection | animation |
float | lastAnimationTime |
AngleSequence | nothingSequence |
AngleSequence | bounceSequence |
AngleSequence | cosineSequence |
![]() | |
ViewArea | leftRadar |
ViewArea | rightRadar |
bool | isPaused |
RandomEngine | randomEngine |
RandomDistribution | randomDistribution |
RandomGenerator | randomGenerator |
Definition at line 21 of file plane_display.h.
|
protected |
Definition at line 32 of file plane_display.h.
|
protected |
Definition at line 62 of file plane_display.h.
Radar::PlaneDisplay::PlaneDisplay | ( | ) |
Definition at line 46 of file plane_display.cpp.
References bounceSequence, CalculateRotation(), cosineSequence, f, groundPlane, M_PI, nothingSequence, and Vector.
|
protected |
Definition at line 176 of file plane_display.cpp.
References animation, CalculateRotation(), currentCameraAngle, lastAnimationTime, and radarTime.
Referenced by Draw().
|
protected |
Definition at line 71 of file plane_display.cpp.
References currentCameraAngle, Vector, xrotation, yrotation, and zrotation.
Referenced by Animate(), and PlaneDisplay().
|
virtual |
Implements Radar::Display.
Definition at line 143 of file plane_display.cpp.
References Animate(), DEPTHTEST, DEPTHWRITE, VSSprite::Draw(), DrawDistant(), DrawNear(), Radar::Sensor::FindTracksInRange(), GetElapsedTime(), GFXDisable(), GFXEnable(), GFXPointSize(), Radar::DualDisplayBase::leftRadar, radarTime, Radar::DualDisplayBase::rightRadar, Radar::ViewArea::SetSprite(), and SMOOTH.
|
protected |
Definition at line 290 of file plane_display.cpp.
References DrawGround(), DrawTrack(), Radar::Sensor::GetCloseRange(), Radar::Sensor::GetMaxRange(), Radar::ViewArea::IsActive(), and Radar::DualDisplayBase::rightRadar.
Referenced by Draw().
|
protected |
Definition at line 217 of file plane_display.cpp.
References GFXColor::a, f, Radar::ViewArea::GetColor(), Radar::Sensor::GetLockCone(), GFXBegin(), GFXColorf(), GFXEnd(), GFXLINE, GFXLINESTRIP, GFXLineWidth(), GFXPOLY, GFXVertexf(), groundPlane, Projection(), and Vector.
Referenced by DrawDistant(), and DrawNear().
|
protected |
Definition at line 269 of file plane_display.cpp.
References DrawGround(), DrawTrack(), Radar::Sensor::GetCloseRange(), Radar::ViewArea::IsActive(), and Radar::DualDisplayBase::leftRadar.
Referenced by Draw().
|
protected |
Definition at line 387 of file plane_display.cpp.
References GFXColor::a, GFXBegin(), GFXColorf(), GFXEnd(), GFXLINE, GFXLineWidth(), GFXPOINT, GFXPointSize(), and GFXVertexf().
Referenced by DrawTrack().
|
protected |
Definition at line 411 of file plane_display.cpp.
References GFXColor::a, f, g_game, GFXBegin(), GFXColorf(), GFXEnd(), GFXLINESTRIP, GFXLineWidth(), GFXPOLY, GFXVertex3f(), GFXVertexf(), max(), size, game_data_t::x_resolution, and game_data_t::y_resolution.
Referenced by DrawTrack().
|
protected |
Definition at line 312 of file plane_display.cpp.
References GFXColor::a, Radar::Track::Type::Cargo, center, DrawTarget(), DrawTargetMarker(), Radar::Track::ExplodingProgress(), f, Radar::Sensor::GetColor(), anonymous_namespace{bubble_display.cpp}::GetDangerRate(), Radar::Track::GetPosition(), Radar::Track::GetSize(), Radar::Track::GetType(), Radar::Track::HasActiveECM(), Radar::Sensor::IdentifyThreat(), Radar::Sensor::InsideNebula(), Radar::Track::IsExploding(), Radar::Sensor::IsTracking(), Radar::DualDisplayBase::Jitter(), max(), Radar::Track::Type::Nebula, Projection(), radarTime, Radar::Sensor::UseObjectRecognition(), Radar::Sensor::UseThreatAssessment(), and Vector.
Referenced by DrawDistant(), and DrawNear().
|
virtual |
Reimplemented from Radar::Display.
Definition at line 129 of file plane_display.cpp.
References bounceSequence, anonymous_namespace{plane_display.cpp}::Degree2Radian(), finalCameraAngle, nothingSequence, PrepareAnimation(), and Vector.
|
virtual |
Reimplemented from Radar::Display.
Definition at line 136 of file plane_display.cpp.
References cosineSequence, anonymous_namespace{plane_display.cpp}::Degree2Radian(), finalCameraAngle, nothingSequence, PrepareAnimation(), and Vector.
|
protected |
Definition at line 91 of file plane_display.cpp.
References animation, Radar::PlaneDisplay::AnimationItem::duration, i, max(), Radar::PlaneDisplay::AnimationItem::position, and Vector.
Referenced by OnDockEnd(), and OnJumpEnd().
|
protected |
Definition at line 190 of file plane_display.cpp.
References Radar::ViewArea::Scale(), Vector, x, xrotation, y, yrotation, z, and zrotation.
Referenced by DrawGround(), and DrawTrack().
|
protected |
Definition at line 63 of file plane_display.h.
Referenced by Animate(), and PrepareAnimation().
|
protected |
Definition at line 66 of file plane_display.h.
Referenced by OnDockEnd(), and PlaneDisplay().
|
protected |
Definition at line 67 of file plane_display.h.
Referenced by OnJumpEnd(), and PlaneDisplay().
|
protected |
Definition at line 49 of file plane_display.h.
Referenced by Animate(), and CalculateRotation().
|
protected |
Definition at line 48 of file plane_display.h.
Referenced by OnDockEnd(), and OnJumpEnd().
|
protected |
Definition at line 53 of file plane_display.h.
Referenced by DrawGround(), and PlaneDisplay().
|
protected |
Definition at line 64 of file plane_display.h.
Referenced by Animate().
|
protected |
Definition at line 65 of file plane_display.h.
Referenced by OnDockEnd(), OnJumpEnd(), and PlaneDisplay().
|
protected |
Definition at line 54 of file plane_display.h.
Referenced by Animate(), Draw(), and DrawTrack().
|
protected |
Definition at line 50 of file plane_display.h.
Referenced by CalculateRotation(), and Projection().
|
protected |
Definition at line 51 of file plane_display.h.
Referenced by CalculateRotation(), and Projection().
|
protected |
Definition at line 52 of file plane_display.h.
Referenced by CalculateRotation(), and Projection().