- reorganized Kml generation
- Kml generation on demand - cleaned up GUI - removed color selector - remove track rate slider - adjusted altitude slider git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@175 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+14
-5
@@ -11,18 +11,20 @@ public:
|
||||
Kml(const char *pDocRoot);
|
||||
~Kml(void);
|
||||
|
||||
void createNetworkLinkFile(String const &filename, String const &hostIp);
|
||||
void setAltitudeMode(String const &modeString);
|
||||
void setPathColor(String const &colorString);
|
||||
void setCameraAltitude(float alt_meters);
|
||||
void setCameraTilt(float tilt_deg);
|
||||
void setCameraAutoHeading(bool enable);
|
||||
void setCameraAutoRoll(bool enable);
|
||||
|
||||
void setCameraFlyToView(bool enable);
|
||||
|
||||
private:
|
||||
CriticalSection m_lock;
|
||||
ScopedPointer<XmlElement> kml;
|
||||
ScopedPointer<XmlElement> m_pKml;
|
||||
XmlElement *m_pPlanePlaceMark;
|
||||
XmlElement *m_pPathPlaceMark;
|
||||
XmlElement *m_pTrackPlaceMark;
|
||||
XmlElement *m_pCameraPlaceMark;
|
||||
char m_path[1024];
|
||||
const char *m_docRoot;
|
||||
@@ -32,15 +34,22 @@ private:
|
||||
float m_cameraTilt;
|
||||
bool m_cameraAutoHeading;
|
||||
bool m_cameraAutoRoll;
|
||||
bool m_cameraFlyToView;
|
||||
FlightData m_flightData;
|
||||
void create();
|
||||
void destroy();
|
||||
const char* getPath();
|
||||
void updateFlightData(FlightData const &flightData);
|
||||
void update(FlightData const &flightData);
|
||||
void exportKml(const char *pPath);
|
||||
void exportKmz(const char *pPath);
|
||||
void updatePlane(FlightData const &flightData);
|
||||
void updatePath(FlightData const &flightData);
|
||||
void updatePlane();
|
||||
void updateTrack();
|
||||
void onUpdate(const char *pPath, ViewFormat const &viewFormat);
|
||||
|
||||
XmlElement* createNetworkLinkControl();
|
||||
XmlElement* createPlane();
|
||||
XmlElement* createTrack();
|
||||
};
|
||||
|
||||
#endif // !KML_HPP
|
||||
|
||||
Reference in New Issue
Block a user