mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
85 lines
1.7 KiB
C++
85 lines
1.7 KiB
C++
#ifndef CFIOBJECT_H
|
|
#define CFIOBJECT_H
|
|
|
|
#include "vectordouble.h"
|
|
#include <QString>
|
|
#include <QDomElement>
|
|
|
|
struct SetCameraPos
|
|
{
|
|
bool set;
|
|
bool fast;
|
|
bool specialPanel;
|
|
QString cameraMode;
|
|
QString state;
|
|
QString panelName;
|
|
float prevCamOffsetMARposY;
|
|
float camOffsetMARposY;
|
|
float prevCharControlerHeight;
|
|
float charControlerHeight;
|
|
float FOV;
|
|
float moveSpeed;
|
|
float projectionSize;
|
|
float offset;
|
|
float prevPlayerRot;
|
|
|
|
Vector2dDouble axesClamp;
|
|
|
|
Vector3dDouble prevPlayerPos;
|
|
Vector3dDouble playerPos;
|
|
Vector3dDouble playerRot;
|
|
Vector3dDouble prevCamRot;
|
|
Vector3dDouble camRot;
|
|
Vector3dDouble goCenter;
|
|
Vector3dDouble playerMARpos;
|
|
Vector3dDouble playerMARrot;
|
|
Vector3dDouble camMARrot;
|
|
Vector3dDouble playerPosRelativeToThePanel;
|
|
};
|
|
|
|
class CfiObject
|
|
{
|
|
public:
|
|
CfiObject();
|
|
|
|
int getId() const;
|
|
void setId(int value);
|
|
|
|
QString getCfiName() const;
|
|
void setCfiName(const QString &value);
|
|
|
|
QString getCfi() const;
|
|
void setCfi(const QString &value);
|
|
|
|
QString getZoneName() const;
|
|
void setZoneName(const QString &value);
|
|
|
|
QString getGoName() const;
|
|
void setGoName(const QString &value);
|
|
|
|
SetCameraPos getSetCameraPos() const;
|
|
void setSetCameraPos(const SetCameraPos &value);
|
|
|
|
bool getIsChanged() const;
|
|
void setIsChanged(bool value);
|
|
|
|
QDomElement getDomElement() const;
|
|
void setDomElement(const QDomElement &value);
|
|
|
|
void resetIsChangedInDomElement();
|
|
|
|
private:
|
|
int id;
|
|
bool isChanged;
|
|
QString cfiName;
|
|
QString cfi;
|
|
QString zoneName;
|
|
QString goName;
|
|
|
|
SetCameraPos setCameraPos;
|
|
|
|
QDomElement domElement;
|
|
};
|
|
|
|
#endif // CFIOBJECT_H
|