Enviro application
|
Inherits wxFrame.
Public Member Functions | |
EnviroFrame (wxFrame *frame, const wxString &title, const wxPoint &pos, const wxSize &size, long style=wxDEFAULT_FRAME_STYLE, bool bVerticalToolbar=false, bool bEnableEarth=true) | |
~EnviroFrame () | |
void | CreateUI () |
virtual void | CreateMenus () |
virtual void | CreateToolbar () |
virtual void | RefreshToolbar () |
virtual void | SetMode (MouseMode mode) |
void | ToggleNavigate () |
void | ChangeFlightSpeed (float factor) |
void | SetTerrainDetail (int iMetric) |
int | GetTerrainDetail () |
void | ChangePagingRange (float prange) |
void | SetFullScreen (bool bFull) |
void | CreateInstance (const DPoint2 &pos, vtTagArray *tags) |
ProfileDlg * | ShowProfileDlg () |
void | OpenFenceDialog () |
void | ShowPopupMenu (const IPoint2 &pos) |
void | SetTimeEngine (vtTimeEngine *pEngine) |
void | Snapshot (bool bNumbered) |
void | CameraChanged () |
void | OnDrop (const wxString &str) |
void | LoadLayer (vtString &fname) |
bool | LoadTerrainLayer (vtString &fname) |
virtual void | SetTerrainToGUI (vtTerrain *pTerrain) |
virtual void | EarthPosUpdated (const DPoint3 &pos) |
virtual void | UpdateStatus () |
virtual bool | OnMouseEvent (vtMouseEvent &event) |
virtual void | Setup3DScene () |
virtual bool | IsAcceptable (vtTerrain *pTerr) |
virtual void | OnCreateTerrain (vtTerrain *pTerr) |
virtual void | FrameArgument (int i, const char *str) |
virtual void | PostConstruction () |
virtual void | AddTool (int id, const wxBitmap &bmp, const wxString &tooltip, bool tog) |
virtual void | SetScenario (int num) |
void | UpdateLODInfo () |
FeatureTableDlg3d * | ShowTable (vtAbstractLayer *alay) |
void | OnSetDelete (vtFeatureSet *set) |
void | DeleteAllSelected () |
DriveDlg * | GetDriveDlg () |
void | OnExit (wxCommandEvent &event) |
void | OnClose (wxCloseEvent &event) |
void | OnIdle (wxIdleEvent &event) |
void | OnChar (wxKeyEvent &event) |
Public Attributes | |
class vtGLCanvas * | m_canvas |
wxToolBar * | m_pToolbar |
wxMenuBar * | m_pMenuBar |
class MyStatusBar * | m_pStatusBar |
wxMenu * | m_pFileMenu |
wxMenu * | m_pToolsMenu |
wxMenu * | m_pViewMenu |
wxMenu * | m_pNavMenu |
wxMenu * | m_pEarthMenu |
wxMenu * | m_pTerrainMenu |
wxMenu * | m_pSceneMenu |
SceneGraphDlg * | m_pSceneGraphDlg |
PlantDlg * | m_pPlantDlg |
LinearStructureDlg3d * | m_pFenceDlg |
UtilDlg * | m_pUtilDlg |
CameraDlg * | m_pCameraDlg |
LocationDlg * | m_pLocationDlg |
BuildingDlg3d * | m_pBuildingDlg |
TagDlg * | m_pTagDlg |
LayerDlg * | m_pLayerDlg |
InstanceDlg * | m_pInstanceDlg |
DistanceDlg3d * | m_pDistanceDlg |
EphemDlg * | m_pEphemDlg |
TimeDlg * | m_pTimeDlg |
ScenarioSelectDialog * | m_pScenarioSelectDialog |
LODDlg * | m_pLODDlg |
ProfileDlg * | m_pProfileDlg |
VehicleDlg * | m_pVehicleDlg |
DriveDlg * | m_pDriveDlg |
VIADlg * | m_pVIADlg |
MouseMode | m_ToggledMode |
std::vector< FeatureTableDlg3d * > | m_FeatureDlgs |
Protected Member Functions | |
void | DeleteCanvas () |
void | OnFileLayers (wxCommandEvent &event) |
void | OnLayerCreate (wxCommandEvent &event) |
void | OnLayerLoad (wxCommandEvent &event) |
void | OnSaveTerrain (wxCommandEvent &event) |
void | OnSaveTerrainAs (wxCommandEvent &event) |
void | OnUpdateLayerCreate (wxUpdateUIEvent &event) |
void | OnUpdateLayerLoad (wxUpdateUIEvent &event) |
void | OnUpdateSaveTerrain (wxUpdateUIEvent &event) |
void | OnViewMaintain (wxCommandEvent &event) |
void | OnViewWireframe (wxCommandEvent &event) |
void | OnViewFullscreen (wxCommandEvent &event) |
void | OnViewTopDown (wxCommandEvent &event) |
void | OnViewStats (wxCommandEvent &event) |
void | OnViewElevLegend (wxCommandEvent &event) |
void | OnViewCompass (wxCommandEvent &event) |
void | OnViewMapOverView (wxCommandEvent &event) |
void | OnViewVertLine (wxCommandEvent &event) |
void | OnViewDrive (wxCommandEvent &event) |
void | OnViewSettings (wxCommandEvent &event) |
void | OnViewLocations (wxCommandEvent &event) |
void | OnViewReset (wxCommandEvent &event) |
void | OnViewSnapshot (wxCommandEvent &event) |
void | OnViewSnapAgain (wxCommandEvent &event) |
void | OnViewSnapHigh (wxCommandEvent &event) |
void | OnViewStatusBar (wxCommandEvent &event) |
void | OnViewScenarios (wxCommandEvent &event) |
void | OnViewProfile (wxCommandEvent &event) |
void | OnViewToolCulture (wxCommandEvent &event) |
void | OnViewToolSnapshot (wxCommandEvent &event) |
void | OnViewToolTime (wxCommandEvent &event) |
void | OnUpdateViewMaintain (wxUpdateUIEvent &event) |
void | OnUpdateViewWireframe (wxUpdateUIEvent &event) |
void | OnUpdateViewFullscreen (wxUpdateUIEvent &event) |
void | OnUpdateViewTopDown (wxUpdateUIEvent &event) |
void | OnUpdateViewFramerate (wxUpdateUIEvent &event) |
void | OnUpdateViewElevLegend (wxUpdateUIEvent &event) |
void | OnUpdateViewCompass (wxUpdateUIEvent &event) |
void | OnUpdateViewMapOverView (wxUpdateUIEvent &event) |
void | OnUpdateViewVertLine (wxUpdateUIEvent &event) |
void | OnUpdateViewDrive (wxUpdateUIEvent &event) |
void | OnUpdateViewLocations (wxUpdateUIEvent &event) |
void | OnUpdateViewStatusBar (wxUpdateUIEvent &event) |
void | OnUpdateViewProfile (wxUpdateUIEvent &event) |
void | OnUpdateViewToolCulture (wxUpdateUIEvent &event) |
void | OnUpdateViewToolSnapshot (wxUpdateUIEvent &event) |
void | OnUpdateViewToolTime (wxUpdateUIEvent &event) |
void | OnViewSlower (wxCommandEvent &event) |
void | OnViewFaster (wxCommandEvent &event) |
void | OnNavNormal (wxCommandEvent &event) |
void | OnNavVelo (wxCommandEvent &event) |
void | OnNavGrabPivot (wxCommandEvent &event) |
void | OnNavPano (wxCommandEvent &event) |
void | OnUpdateViewSlower (wxUpdateUIEvent &event) |
void | OnUpdateViewFaster (wxUpdateUIEvent &event) |
void | OnUpdateNavNormal (wxUpdateUIEvent &event) |
void | OnUpdateNavVelo (wxUpdateUIEvent &event) |
void | OnUpdateNavGrabPivot (wxUpdateUIEvent &event) |
void | OnUpdateNavPano (wxUpdateUIEvent &event) |
void | OnToolsSelect (wxCommandEvent &event) |
void | OnUpdateToolsSelect (wxUpdateUIEvent &event) |
void | OnToolsSelectBox (wxCommandEvent &event) |
void | OnUpdateToolsSelectBox (wxUpdateUIEvent &event) |
void | OnToolsSelectMove (wxCommandEvent &event) |
void | OnUpdateToolsSelectMove (wxUpdateUIEvent &event) |
void | OnToolsFences (wxCommandEvent &event) |
void | OnUpdateToolsFences (wxUpdateUIEvent &event) |
void | OnToolsBuildings (wxCommandEvent &event) |
void | OnUpdateToolsBuildings (wxUpdateUIEvent &event) |
void | OnToolsPower (wxCommandEvent &event) |
void | OnUpdateToolsPower (wxUpdateUIEvent &event) |
void | OnToolsPlants (wxCommandEvent &event) |
void | OnUpdateToolsPlants (wxUpdateUIEvent &event) |
void | OnToolsPoints (wxCommandEvent &event) |
void | OnUpdateToolsPoints (wxUpdateUIEvent &event) |
void | OnToolsInstances (wxCommandEvent &event) |
void | OnUpdateToolsInstances (wxUpdateUIEvent &event) |
void | OnToolsVehicles (wxCommandEvent &event) |
void | OnUpdateToolsVehicles (wxUpdateUIEvent &event) |
void | OnToolsMove (wxCommandEvent &event) |
void | OnUpdateToolsMove (wxUpdateUIEvent &event) |
void | OnToolsNavigate (wxCommandEvent &event) |
void | OnUpdateToolsNavigate (wxUpdateUIEvent &event) |
void | OnToolsMeasure (wxCommandEvent &event) |
void | OnUpdateToolsMeasure (wxUpdateUIEvent &event) |
void | OnToolsConstrain (wxCommandEvent &event) |
void | OnUpdateToolsConstrain (wxUpdateUIEvent &event) |
void | OnVIACalculate (wxCommandEvent &event) |
void | OnUpdateVIACalculate (wxUpdateUIEvent &event) |
void | OnVIAPlot (wxCommandEvent &event) |
void | OnUpdateVIAPlot (wxUpdateUIEvent &event) |
void | OnVIAClear (wxCommandEvent &event) |
void | OnUpdateVIAClear (wxUpdateUIEvent &event) |
void | OnSceneGraph (wxCommandEvent &event) |
void | OnSceneTerrain (wxCommandEvent &event) |
void | OnUpdateSceneTerrain (wxUpdateUIEvent &event) |
void | OnSceneSpace (wxCommandEvent &event) |
void | OnUpdateSceneSpace (wxUpdateUIEvent &event) |
void | OnSceneSave (wxCommandEvent &event) |
void | OnSceneEphemeris (wxCommandEvent &event) |
void | OnUpdateSceneEphemeris (wxUpdateUIEvent &event) |
void | OnTimeDialog (wxCommandEvent &event) |
void | OnTimeStop (wxCommandEvent &event) |
void | OnTimeFaster (wxCommandEvent &event) |
void | OnSurface (wxCommandEvent &event) |
void | OnCullEvery (wxCommandEvent &event) |
void | OnCullOnce (wxCommandEvent &event) |
void | OnSky (wxCommandEvent &event) |
void | OnOcean (wxCommandEvent &event) |
void | OnPlants (wxCommandEvent &event) |
void | OnStructures (wxCommandEvent &event) |
void | OnRoads (wxCommandEvent &event) |
void | OnFog (wxCommandEvent &event) |
void | OnIncrease (wxCommandEvent &event) |
void | OnDecrease (wxCommandEvent &event) |
void | OnLOD (wxCommandEvent &event) |
void | OnToggleFoundations (wxCommandEvent &event) |
void | OnTerrainReshade (wxCommandEvent &event) |
void | OnTerrainChangeTexture (wxCommandEvent &event) |
void | OnTerrainDistribVehicles (wxCommandEvent &event) |
void | OnTerrainWriteElevation (wxCommandEvent &event) |
void | OnTerrainAddContour (wxCommandEvent &event) |
void | OnUpdateSurface (wxUpdateUIEvent &event) |
void | OnUpdateCullEvery (wxUpdateUIEvent &event) |
void | OnUpdateSky (wxUpdateUIEvent &event) |
void | OnUpdateOcean (wxUpdateUIEvent &event) |
void | OnUpdatePlants (wxUpdateUIEvent &event) |
void | OnUpdateStructures (wxUpdateUIEvent &event) |
void | OnUpdateRoads (wxUpdateUIEvent &event) |
void | OnUpdateFog (wxUpdateUIEvent &event) |
void | OnUpdateLOD (wxUpdateUIEvent &event) |
void | OnUpdateSaveVeg (wxUpdateUIEvent &event) |
void | OnUpdateSaveStruct (wxUpdateUIEvent &event) |
void | OnUpdateFoundations (wxUpdateUIEvent &event) |
void | OnUpdateIsTerrainView (wxUpdateUIEvent &event) |
void | OnUpdateIsDynTerrain (wxUpdateUIEvent &event) |
void | OnEarthShowShading (wxCommandEvent &event) |
void | OnEarthShowAxes (wxCommandEvent &event) |
void | OnEarthTilt (wxCommandEvent &event) |
void | OnEarthFlatten (wxCommandEvent &event) |
void | OnEarthUnfold (wxCommandEvent &event) |
void | OnEarthClouds (wxCommandEvent &event) |
void | OnEarthClouds2 (wxCommandEvent &event) |
void | OnUpdateEarthShowShading (wxUpdateUIEvent &event) |
void | OnUpdateEarthShowAxes (wxUpdateUIEvent &event) |
void | OnUpdateEarthTilt (wxUpdateUIEvent &event) |
void | OnUpdateEarthFlatten (wxUpdateUIEvent &event) |
void | OnUpdateEarthUnfold (wxUpdateUIEvent &event) |
void | OnUpdateInOrbit (wxUpdateUIEvent &event) |
void | OnUpdateInOrbitOrTerrain (wxUpdateUIEvent &event) |
void | OnUpdateEarthClouds (wxUpdateUIEvent &event) |
virtual void | OnHelpAbout (wxCommandEvent &event) |
virtual void | OnHelpDocLocal (wxCommandEvent &event) |
virtual void | OnHelpDocOnline (wxCommandEvent &event) |
void | OnPopupProperties (wxCommandEvent &event) |
void | OnPopupCopyStyle (wxCommandEvent &event) |
void | OnPopupPasteStyle (wxCommandEvent &event) |
void | OnPopupFlip (wxCommandEvent &event) |
void | OnPopupSetEaves (wxCommandEvent &event) |
void | OnPopupReload (wxCommandEvent &event) |
void | OnPopupShadow (wxCommandEvent &event) |
void | OnPopupAdjust (wxCommandEvent &event) |
void | OnPopupStart (wxCommandEvent &event) |
void | OnPopupDelete (wxCommandEvent &event) |
void | OnPopupURL (wxCommandEvent &event) |
void | OnPopupVIA (wxCommandEvent &event) |
void | OnUpdatePopupVIA (wxUpdateUIEvent &event) |
void | OnPopupVIATarget (wxCommandEvent &event) |
void | OnUpdatePopupVIATarget (wxUpdateUIEvent &event) |
void | DoTestCode () |
void | LoadClouds (const char *fname) |
void | CarveTerrainToFitNode (osg::Node *node) |
void | ParseCommandLine (const char *cmdstart, char **argv, char *args, int *numargs, int *numchars) |
Protected Attributes | |
wxAuiManager | m_mgr |
bool | m_bAlwaysMove |
bool | m_bCulleveryframe |
bool | m_bFullscreen |
bool | m_bTopDown |
bool | m_bEnableEarth |
bool | m_bEarthLines |
bool | m_bVerticalToolbar |
wxString | m_strSnapshotFilename |
int | m_iSnapshotNumber |
bool | m_bCloseOnIdle |
The main wxWidgets window for the application, subclass of wxFrame. Handles all the menu items and toolbars, creates and manages all the dialog.
EnviroFrame::EnviroFrame | ( | wxFrame * | frame, |
const wxString & | title, | ||
const wxPoint & | pos, | ||
const wxSize & | size, | ||
long | style = wxDEFAULT_FRAME_STYLE , |
||
bool | bVerticalToolbar = false , |
||
bool | bEnableEarth = true |
||
) |
EnviroFrame::~EnviroFrame | ( | ) |
|
virtual |
void EnviroFrame::CameraChanged | ( | ) |
|
protected |
void EnviroFrame::ChangeFlightSpeed | ( | float | factor | ) |
void EnviroFrame::ChangePagingRange | ( | float | prange | ) |
void EnviroFrame::CreateInstance | ( | const DPoint2 & | pos, |
vtTagArray * | tags | ||
) |
|
virtual |
|
virtual |
void EnviroFrame::CreateUI | ( | ) |
void EnviroFrame::DeleteAllSelected | ( | ) |
|
protected |
|
protected |
|
virtual |
|
inlinevirtual |
|
inline |
int EnviroFrame::GetTerrainDetail | ( | ) |
|
inlinevirtual |
|
protected |
void EnviroFrame::LoadLayer | ( | vtString & | fname | ) |
bool EnviroFrame::LoadTerrainLayer | ( | vtString & | fname | ) |
void EnviroFrame::OnChar | ( | wxKeyEvent & | event | ) |
void EnviroFrame::OnClose | ( | wxCloseEvent & | event | ) |
|
inlinevirtual |
|
protected |
|
protected |
|
protected |
void EnviroFrame::OnDrop | ( | const wxString & | str | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void EnviroFrame::OnExit | ( | wxCommandEvent & | event | ) |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
void EnviroFrame::OnIdle | ( | wxIdleEvent & | event | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlinevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void EnviroFrame::OnSetDelete | ( | vtFeatureSet * | set | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void EnviroFrame::OpenFenceDialog | ( | ) |
|
protected |
|
inlinevirtual |
|
virtual |
void EnviroFrame::SetFullScreen | ( | bool | bFull | ) |
|
virtual |
|
inlinevirtual |
void EnviroFrame::SetTerrainDetail | ( | int | iMetric | ) |
|
virtual |
void EnviroFrame::SetTimeEngine | ( | vtTimeEngine * | pEngine | ) |
|
inlinevirtual |
void EnviroFrame::ShowPopupMenu | ( | const IPoint2 & | pos | ) |
ProfileDlg * EnviroFrame::ShowProfileDlg | ( | ) |
FeatureTableDlg3d * EnviroFrame::ShowTable | ( | vtAbstractLayer * | alay | ) |
void EnviroFrame::Snapshot | ( | bool | bNumbered | ) |
void EnviroFrame::ToggleNavigate | ( | ) |
void EnviroFrame::UpdateLODInfo | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
class vtGLCanvas* EnviroFrame::m_canvas |
std::vector<FeatureTableDlg3d*> EnviroFrame::m_FeatureDlgs |
|
protected |
|
protected |
BuildingDlg3d* EnviroFrame::m_pBuildingDlg |
CameraDlg* EnviroFrame::m_pCameraDlg |
DistanceDlg3d* EnviroFrame::m_pDistanceDlg |
DriveDlg* EnviroFrame::m_pDriveDlg |
wxMenu* EnviroFrame::m_pEarthMenu |
EphemDlg* EnviroFrame::m_pEphemDlg |
LinearStructureDlg3d* EnviroFrame::m_pFenceDlg |
wxMenu* EnviroFrame::m_pFileMenu |
InstanceDlg* EnviroFrame::m_pInstanceDlg |
LayerDlg* EnviroFrame::m_pLayerDlg |
LocationDlg* EnviroFrame::m_pLocationDlg |
LODDlg* EnviroFrame::m_pLODDlg |
wxMenuBar* EnviroFrame::m_pMenuBar |
wxMenu* EnviroFrame::m_pNavMenu |
PlantDlg* EnviroFrame::m_pPlantDlg |
ProfileDlg* EnviroFrame::m_pProfileDlg |
ScenarioSelectDialog* EnviroFrame::m_pScenarioSelectDialog |
SceneGraphDlg* EnviroFrame::m_pSceneGraphDlg |
wxMenu* EnviroFrame::m_pSceneMenu |
class MyStatusBar* EnviroFrame::m_pStatusBar |
TagDlg* EnviroFrame::m_pTagDlg |
wxMenu* EnviroFrame::m_pTerrainMenu |
TimeDlg* EnviroFrame::m_pTimeDlg |
wxToolBar* EnviroFrame::m_pToolbar |
wxMenu* EnviroFrame::m_pToolsMenu |
UtilDlg* EnviroFrame::m_pUtilDlg |
VehicleDlg* EnviroFrame::m_pVehicleDlg |
VIADlg* EnviroFrame::m_pVIADlg |
wxMenu* EnviroFrame::m_pViewMenu |
|
protected |
MouseMode EnviroFrame::m_ToggledMode |