3 N1Indicator::N1Indicator(
int prmX,
int prmY,
float prmXScale,
float prmYScale, std::string prmGuid1, std::string prmGuid2,
int prmOrdinal):
Instrument(prmX, prmY, prmXScale, prmYScale)
59 float tempn1 =
n1*100.0f;
60 if (tempn1 < 7.0f) tempn1 = 0;
62 needle.
rotate = -D3DXToRadian(tempn1 / 115.0f*280.0f - 45.0f);
69 swprintf_s(msg, 99, L
"%4.1f", tempn1);
virtual void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip)
Systems::Fault * n1FaultPtr
Systems::Fault * GetComponentFaultStatePtr(std::string guidStr)
N1Indicator(int prmX, int prmY, float prmXScale, float prmYScale, std::string prmGuid1, std::string prmGuid2, int prmOrdinal)
Systems::Fault * fadecFaultPtr
Abstract base class for instrumentation By definition, instruments don't do any of the work (they don...
std::string pathAndFilename
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
void Initialize(Logger *prmLogger, Bus *prmBus, DEVICE_OBJECT *prmpDevice, int elementX, int elementY, ID3DX10Font *prmFont, bool prmFlip)
void Initialize(Logger *prmLogger, Bus *prmBus, DEVICE_OBJECT *prmpDevice, int prmScreenHeight, int prmElementX, int prmElementY, bool prmFlip)
void Render(float fElapsed) override