mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
Format source code using clang-format
This commit is contained in:
93
Gauge.h
93
Gauge.h
@@ -5,57 +5,60 @@
|
||||
|
||||
//#include "Classes.h"
|
||||
#include "QueryParserComp.hpp"
|
||||
//class Queryparsercomp::TQueryParserComp;
|
||||
// class Queryparsercomp::TQueryParserComp;
|
||||
class TSubModel;
|
||||
class TModel3d;
|
||||
|
||||
|
||||
typedef enum
|
||||
{//typ ruchu
|
||||
gt_Unknown, //na razie nie znany
|
||||
gt_Rotate, //obrót
|
||||
gt_Move, //przesuniêcie równoleg³e
|
||||
gt_Wiper, //obrót trzech kolejnych submodeli o ten sam k¹t (np. wycieraczka, drzwi harmonijkowe)
|
||||
gt_Digital //licznik cyfrowy, np. kilometrów
|
||||
{ // typ ruchu
|
||||
gt_Unknown, // na razie nie znany
|
||||
gt_Rotate, // obrót
|
||||
gt_Move, // przesuniêcie równoleg³e
|
||||
gt_Wiper, // obrót trzech kolejnych submodeli o ten sam k¹t (np. wycieraczka, drzwi
|
||||
// harmonijkowe)
|
||||
gt_Digital // licznik cyfrowy, np. kilometrów
|
||||
} TGaugeType;
|
||||
|
||||
class TGauge //zmienne "gg"
|
||||
{//animowany wskaŸnik, mog¹cy przyjmowaæ wiele stanów poœrednich
|
||||
private:
|
||||
TGaugeType eType; //typ ruchu
|
||||
double fFriction; //hamowanie przy zli¿aniu siê do zadanej wartoœci
|
||||
double fDesiredValue; //wartoϾ docelowa
|
||||
double fValue; //wartoϾ obecna
|
||||
double fOffset; //wartoœæ pocz¹tkowa ("0")
|
||||
double fScale; //wartoœæ koñcowa ("1")
|
||||
double fStepSize; //nie u¿ywane
|
||||
char cDataType; //typ zmiennej parametru: f-float, d-double, i-int
|
||||
union
|
||||
{//wskaŸnik na parametr pokazywany przez animacjê
|
||||
float* fData;
|
||||
double* dData;
|
||||
int* iData;
|
||||
};
|
||||
public:
|
||||
__fastcall TGauge();
|
||||
__fastcall ~TGauge();
|
||||
void __fastcall Clear();
|
||||
void __fastcall Init(TSubModel *NewSubModel,TGaugeType eNewTyp,double fNewScale=1,double fNewOffset=0,double fNewFriction=0,double fNewValue=0);
|
||||
bool __fastcall Load(TQueryParserComp *Parser,TModel3d *md1,TModel3d *md2=NULL,double mul=1.0);
|
||||
void __fastcall PermIncValue(double fNewDesired);
|
||||
void __fastcall IncValue(double fNewDesired);
|
||||
void __fastcall DecValue(double fNewDesired);
|
||||
void __fastcall UpdateValue(double fNewDesired);
|
||||
void __fastcall PutValue(double fNewDesired);
|
||||
float GetValue() {return fValue;};
|
||||
void __fastcall Update();
|
||||
void __fastcall Render();
|
||||
void __fastcall AssignFloat(float* fValue);
|
||||
void __fastcall AssignDouble(double* dValue);
|
||||
void __fastcall AssignInt(int* iValue);
|
||||
void __fastcall UpdateValue();
|
||||
TSubModel *SubModel; //McZapkie-310302: zeby mozna bylo sprawdzac czy zainicjowany poprawnie
|
||||
class TGauge // zmienne "gg"
|
||||
{ // animowany wskaŸnik, mog¹cy przyjmowaæ wiele stanów poœrednich
|
||||
private:
|
||||
TGaugeType eType; // typ ruchu
|
||||
double fFriction; // hamowanie przy zli¿aniu siê do zadanej wartoœci
|
||||
double fDesiredValue; // wartoϾ docelowa
|
||||
double fValue; // wartoϾ obecna
|
||||
double fOffset; // wartoœæ pocz¹tkowa ("0")
|
||||
double fScale; // wartoœæ koñcowa ("1")
|
||||
double fStepSize; // nie u¿ywane
|
||||
char cDataType; // typ zmiennej parametru: f-float, d-double, i-int
|
||||
union
|
||||
{ // wskaŸnik na parametr pokazywany przez animacjê
|
||||
float *fData;
|
||||
double *dData;
|
||||
int *iData;
|
||||
};
|
||||
|
||||
public:
|
||||
__fastcall TGauge();
|
||||
__fastcall ~TGauge();
|
||||
void __fastcall Clear();
|
||||
void __fastcall Init(TSubModel *NewSubModel, TGaugeType eNewTyp, double fNewScale = 1,
|
||||
double fNewOffset = 0, double fNewFriction = 0, double fNewValue = 0);
|
||||
bool __fastcall Load(TQueryParserComp *Parser, TModel3d *md1, TModel3d *md2 = NULL,
|
||||
double mul = 1.0);
|
||||
void __fastcall PermIncValue(double fNewDesired);
|
||||
void __fastcall IncValue(double fNewDesired);
|
||||
void __fastcall DecValue(double fNewDesired);
|
||||
void __fastcall UpdateValue(double fNewDesired);
|
||||
void __fastcall PutValue(double fNewDesired);
|
||||
float GetValue() { return fValue; };
|
||||
void __fastcall Update();
|
||||
void __fastcall Render();
|
||||
void __fastcall AssignFloat(float *fValue);
|
||||
void __fastcall AssignDouble(double *dValue);
|
||||
void __fastcall AssignInt(int *iValue);
|
||||
void __fastcall UpdateValue();
|
||||
TSubModel *SubModel; // McZapkie-310302: zeby mozna bylo sprawdzac czy zainicjowany poprawnie
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user