17 #if !defined(AFX_CIENTITY_H__DE81EF86_CAA9_471E_AE7A_9087CD4CB282__INCLUDED_)
18 #define AFX_CIENTITY_H__DE81EF86_CAA9_471E_AE7A_9087CD4CB282__INCLUDED_
22 #endif // _MSC_VER > 1000
98 char geomFileName[512];
99 char matSysFileName[512];
100 char pipFileName[512];
101 char rcsFileName[512];
102 char scFileName[512];
192 bool insert(
ciEntity entity,
int placeBeforeIdx);
203 bool remove(
int entityIdx);
226 bool archive(std::ofstream &outf);
237 int serialize(
char *filepath);
259 bool parseXML(
clXML& xmlDocument);
269 bool loadXMLNode(
std::string tag,
char *nodeString);
296 bool loadXMLNode(
std::string tag,
double *nodeBool);
306 void saveXML(
clXML* xmlDocument,
int index = -1,
bool saveGFE =
true);
315 int serializeCheck(
char *filepath);
327 if(!m_entityList)
return;
328 m_entityList[0].index =
index;
341 if(!m_entityList)
return(0);
342 return m_entityList[0].index;
373 char *getName(
int index=0);
385 void setName(
const char *
name,
int index=0);
386 double getVelocity(
int index=0);
387 void setVelocity(
double velocity,
int index=0);
397 char *getGeomFileName(
int index=0);
408 void setGeomFileName(
char *
name,
int index=0);
418 char *getMatSysFileName(
int index=0);
429 void setMatSysFileName(
char *
name,
int index=0);
439 char *getMatSysFileNameMCM(
int index = 0);
450 void setMatSysFileNameMCM(
char *
name,
int index = 0);
461 char *getSmokeGeomFileName(
int index=0);
473 void setSmokeGeomFileName(
char *
name,
int index=0);
484 char *getSmokeMatSysFileName(
int index=0);
497 void setSmokeMatSysFileName(
char *
name,
int index=0);
508 int getTextureType(
int idx=0);
520 void setTextureType(
int textureType,
int idx=0);
530 char *getTrackFileName(
int index=0);
541 void setTrackFileName(
char *
name,
int index=0);
573 double getThermalSpinUpPeriod(
int index=0);
585 void setThermalSpinUpPeriod(
double period,
int index = 0);
597 void setRenderEnable(
bool render,
int index = 0);
608 bool getRenderEnable(
int index = 0);
621 void setClampMode(
int clampMode,
int index = 0);
633 int getClampMode(
int index = 0);
645 void setUseTrackfile(
bool useTrackfile,
int idx = 0);
656 bool getUseTrackfile(
int idx = 0);
667 void setWorldPosition(
double x,
double y,
double z,
int i = 0);
678 void getWorldPosition(
double&
x,
double&
y,
double&
z,
int i = 0);
692 void setGeodeticPosition(
double latitude,
double longitude,
double altitude,
int idx = 0);
706 void getGeodeticPosition(
double &latitude,
double &longitude,
double &altitude,
int idx = 0);
720 void setNEDOrientation(
double heading,
double pitch,
double roll,
int idx = 0);
734 void getNEDOrientation(
double &heading,
double &pitch,
double &roll,
int idx = 0);
744 char *getRCSfilename(
int idx = 0);
754 void setRCSfilename(
char *filename,
int idx = 0);
764 char *getSCfilename(
int idx = 0);
774 void setSCfilename(
char *filename,
int idx = 0);
784 char *getMSICfilename(
int idx = 0);
794 void setMSICfilename(
char *filename,
int idx = 0);
804 char *getPIPfilename(
int idx = 0);
814 void setPIPfilename(
char *filename,
int idx = 0);
824 char *getSmokePIPfilename(
int idx = 0);
834 void setSmokePIPfilename(
char *filename,
int idx = 0);
836 void setClampHeightOffset(
double offset,
int idx = 0);
838 double getClampHeightOffset(
int idx = 0);
840 int getBrdf(
int idx = 0);
841 void setBrdf(
int brdf,
int idx = 0);
842 double getRoughness(
int idx = 0);
843 void setRoughness(
double roughness,
int idx = 0);
845 bool getMmlsReflect(
int idx = 0);
846 void setMmlsReflect(
bool mmlsReflect,
int idx = 0);
847 bool getThermalReflect(
int idx = 0);
848 void setThermalReflect(
bool thermalReflect,
int idx = 0);
849 double getThermalReflectTemp(
int idx = 0);
850 void setThermalReflectTemp(
double thermalReflectTemp,
int idx = 0);
852 void getThermalReflectExtent(
double &
x,
double &
y,
int idx = 0);
853 void setThermalReflectExtent(
double x,
double y,
int idx = 0);
854 void getThermalReflectOffset(
double &
x,
double &
y,
double &
z,
int idx = 0);
855 void setThermalReflectOffset(
double x,
double y,
double z,
int idx = 0);
857 void setImpostorEnable(
bool enable =
false,
int idx = 0);
858 bool getImpostorEnable(
int idx = 0)
const;
859 void setImpostorResolution(
double resolution = 512.0,
int idx = 0);
860 double getImpostorResolution(
int idx = 0)
const;
861 void setImpostorPixelCoverage(
double coverage = 40.0,
int idx = 0);
862 double getImpostorPixelCoverage(
int idx = 0)
const;
865 void setSLCloudType(
int type,
int index = 0);
868 int getSLCloudType(
int index = 0);
871 void setSLBaseAlt(
double alt_m,
int index = 0);
874 double getSLBaseAlt(
int index = 0);
877 void setSLThickness(
double thick_m,
int index = 0);
880 double getSLThickness(
int index = 0);
883 void setSLExtent(
double extent_m,
int index = 0);
886 double getSLExtent(
int index);
889 void setSLCoverage(
double coverage,
int index = 0);
892 double getSLCoverage(
int index = 0);
902 void setDIGuyCharacterType(
char *characterType,
int index = 0);
912 char* getDIGuyCharacterType(
int index = 0);
922 void setDIGuyBaseAppearance(
char *baseAppearance,
int index = 0);
932 char* getDIGuyBaseAppearance(
int index = 0);
942 void setDIGuyHeadAppearance(
char *headAppearance,
int index = 0);
952 char* getDIGuyHeadAppearance(
int index = 0);
962 void setDIGuyHandItem(
char *handItem,
int index = 0);
972 char* getDIGuyHandItem(
int index = 0);
982 void setDIGuyAppearance(
char *appearance,
int index = 0);
992 char* getDIGuyAppearance(
int index = 0);
995 void setTransponderEnable(
bool flag,
int index = 0);
997 bool getTransponderEnable(
int index = 0)
const;
999 void setTransponderFrequency(
double freq,
int index = 0);
1001 double getTransponderFrequency(
int index = 0)
const;
1004 int getNumSubObjects(
int index=0);
1005 bool loadXMLNode(
ciEntity ¤tEntity,
int idx,
int subObjIndex);
1006 bool validSubObjectIndex(
int idx,
int subObjectIndex);
1007 bool addSubObject(
int idx, structSubObjectData subObject);
1008 bool removeSubObject(
int idx,
int subObjectIndex);
1011 char *getSubObjectGeomFileName(
int index=0,
int subObjectIndex=0);
1012 void setSubObjectGeomFileName(
char *
name,
int index=0,
int subObjectIndex=0);
1013 char *getSubObjectPipFileName(
int idx,
int subObjectIndex);
1014 void setSubObjectPipFileName(
char *
name,
int idx,
int subObjectIndex);
1015 char *getSubObjectRcsFileName(
int idx,
int subObjectIndex);
1016 void setSubObjectRcsFileName(
char *
name,
int idx,
int subObjectIndex);
1017 char *getSubObjectScFileName(
int idx,
int subObjectIndex);
1018 void setSubObjectScFileName(
char *
name,
int idx,
int subObjectIndex);
1019 char *getSubObjectMatSysFileName(
int index=0,
int subObjectIndex=0);
1020 void setSubObjectMatSysFileName(
char *
name,
int index=0,
int subObjectIndex=0);
1021 void setSubObjectOffsetPosition(
double r,
double f,
double u,
int i = 0,
int subObjectIndex=0);
1022 void getSubObjectOffsetPosition(
double&
r,
double&
f,
double& u,
int i = 0,
int subObjectIndex=0);
1023 void setSubObjectOrientation(
double heading,
double pitch,
double roll,
int idx = 0,
int subObjectIndex=0);
1024 void getSubObjectOrientation(
double &heading,
double &pitch,
double &roll,
int idx = 0,
int subObjectIndex=0);
1025 void setSubObjectVelocity(
double v,
int i = 0,
int subObjectIndex=0);
1026 void getSubObjectVelocity(
double &
v,
int i = 0,
int subObjectIndex=0);
1027 bool getSubObjectImpostorEnable(
int idx,
int subObjectIndex=0);
1028 void setSubObjectImpostorEnable(
bool enable,
int idx,
int subObjectIndex=0);
1029 void setSubObjectImpostorTextureResolution(
double res,
int idx,
int subObjectIndex=0);
1030 void getSubObjectImpostorTextureResolution(
double &
res,
int idx,
int subObjectIndex=0);
1031 void setSubObjectImpostorPixelCoverage(
double cov,
int idx,
int subObjectIndex=0);
1032 void getSubObjectImpostorPixelCoverage(
double &cov,
int idx,
int subObjectIndex=0);
1053 Category stringToEnum(
char* categoryString);
1085 char entityName[128];
1086 char geomFileName[512];
1087 char matSysFileName[512];
1088 char matSysFileNameMCM[512];
1089 char smokeGeomFileName[512];
1090 char smokeMatSysFileName[512];
1097 char trackFileName[512];
1107 char rcsFileName[512];
1108 char scFileName[512];
1109 char pipFileName[512];
1110 char msicFileName[512];
1111 char smokePipFileName[512];
1132 char DIGuyCharacterType[512];
1133 char DIGuyBaseAppearance[512];
1134 char DIGuyHeadAppearance[512];
1135 char DIGuyHandItem[512];
1136 char DIGuyAppearance[512];
1152 #endif // !defined(AFX_CIENTITY_H__DE81EF86_CAA9_471E_AE7A_9087CD4CB282__INCLUDED_)