Enviro application
|
Public Attributes | |
DPoint3 | m_EarthPos |
TerrainPicker * | m_pTerrainPicker |
GlobePicker * | m_pGlobePicker |
vtMovGeode * | m_pCursorMGeom |
vtTerrainFlyer * | m_pTFlyer |
VFlyer * | m_pVFlyer |
vtOrthoFlyer * | m_pOrthoFlyer |
QuakeFlyer * | m_pQuakeFlyer |
vtTerrainFlyer * | m_pCurrentFlyer |
GrabFlyer * | m_pGFlyer |
FlatFlyer * | m_pFlatFlyer |
vtPanoFlyer * | m_pPanoFlyer |
vtHeightConstrain * | m_pHeightEngine |
VehicleManager | m_VehicleManager |
VehicleSet | m_Vehicles |
AppState | m_state |
MouseMode | m_mode |
NavType | m_nav |
bool | m_bOnTerrain |
vtString | m_strMessage1 |
vtString | m_strMessage2 |
bool | m_bDragging |
bool | m_bDragUpDown |
bool | m_bRotating |
bool | m_bSelectedStruct |
bool | m_bSelectedPlant |
bool | m_bSelectedUtil |
bool | m_bSelectedVehicle |
vtFence3d * | m_pDraggingFence |
int | m_iDraggingFencePoint |
DPoint3 | m_EarthPosDown |
DPoint3 | m_EarthPosLast |
vtLine3d * | m_pCurUtilLine |
vtPole3d * | m_pSelUtilPole |
IPoint2 | m_MouseDown |
IPoint2 | m_MouseLast |
float | m_StartRotation |
bool | m_bConstrainAngles |
bool | m_bShowVerticalLine |
vtGroup * | m_pDemoGroup |
vtGeode * | m_pDemoTrails |
Protected Member Functions | |
void | LoadTerrainDescriptions (const vtString &path) |
void | SetupScene1 () |
void | SetupScene2 () |
virtual void | SetupScene3 () |
void | DoCursorOnEarth () |
void | DoCursorOnTerrain () |
void | MakeGlobe () |
void | SetupGlobe () |
void | LookUpTerrainLocations () |
void | SetupTerrain (vtTerrain *pTerr) |
void | SetupArcMaterials () |
void | SetupArcMesh () |
void | FreeArc () |
void | FreeArcMesh () |
void | SetTerrainMeasure (const DPoint2 &g1, const DPoint2 &g2) |
void | SetTerrainMeasure (const DLine2 &path) |
void | CreateElevationLegend () |
void | CreateCompass () |
void | CreateMapOverview () |
void | StartFlyIn () |
void | FlyInStage1 () |
void | FlyInStage2 () |
bool | IsFlyingInFromSpace () |
void | SetWindowBox (const IPoint2 &ul, const IPoint2 &lr) |
void | MakeVerticalLine () |
void | UpdateVerticalLine () |
The central, core class of the Enviro applcation. It maintains a collection of terrains (by extending vtTerrainScene) and adds all the non-GUI functionality, including handling mouse events in the 3D view, navigating, creating and editing objects.
It is extended by the GUI code as the class EnviroGUI, of which there is one global instance (singleton), called "g_App".
Enviro::Enviro | ( | ) |
|
virtual |
void Enviro::ActivateAStructureLayer | ( | ) |
void Enviro::ActivateAVegetationLayer | ( | ) |
void Enviro::AddElasticPoint | ( | const DPoint2 & | p | ) |
int Enviro::AddGlobeAbstractLayer | ( | const char * | fname | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::CancelElastic | ( | ) |
void Enviro::CopyBuildingStyle | ( | ) |
|
protected |
|
protected |
CarEngine * Enviro::CreateGroundVehicle | ( | const VehicleOptions & | opt | ) |
void Enviro::CreateInstance | ( | ) |
void Enviro::CreateInstanceAt | ( | const DPoint2 & | pos, |
vtTagArray * | tags | ||
) |
|
protected |
void Enviro::CreateSomeTestVehicles | ( | vtTerrain * | pTerrain | ) |
void Enviro::DescribeCLOD | ( | vtString & | str | ) |
There are two message strings set by reference.
The first string should contain the part of the message that will be translated (like "Cursor: ").
The second string can contain the part of the message that should not be translated (like "1152.5, 12351.4")
The two strings will be concatenated later.
void Enviro::DoControl | ( | ) |
void Enviro::DoControlOrbit | ( | ) |
void Enviro::DoControlTerrain | ( | ) |
|
protected |
|
protected |
void Enviro::DumpCameraInfo | ( | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::EnableFlyerEngine | ( | bool | bEnable | ) |
void Enviro::FinishBuilding | ( | ) |
void Enviro::FinishLinear | ( | ) |
void Enviro::FinishPowerline | ( | ) |
void Enviro::FlipBuildingFooprints | ( | ) |
|
protected |
|
protected |
void Enviro::FlyToSpace | ( | ) |
void Enviro::FormatCoordString | ( | vtString & | str, |
const DPoint3 & | coord, | ||
LinearUnits | units, | ||
bool | seconds = false |
||
) |
|
protected |
|
protected |
|
inline |
bool Enviro::GetEarthShading | ( | ) |
|
inline |
bool Enviro::GetEarthTilt | ( | ) |
|
inline |
bool Enviro::GetFlightAccel | ( | ) |
float Enviro::GetFlightSpeed | ( | ) |
|
inline |
|
inlinevirtual |
Reimplemented in EnviroGUI.
vtAbstractLayer * Enviro::GetLabelLayer | ( | ) | const |
bool Enviro::GetMaintain | ( | ) |
|
inline |
|
inline |
float Enviro::GetNavDamping | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
bool Enviro::GetShowCompass | ( | ) |
bool Enviro::GetShowElevationLegend | ( | ) |
bool Enviro::GetShowMapOverview | ( | ) |
bool Enviro::GetShowVerticalLine | ( | ) |
bool Enviro::GetSpaceAxes | ( | ) |
|
inline |
float Enviro::GetSpeed | ( | ) |
which | 0 for the "fps" field, 1 for the "cursor" field (location of the cursor), 2 for the "cursor val" (value under the cursor). |
str1 | The first part of the string (translated). |
str2 | The seconds part of the string (untranslated). |
|
pure virtual |
Implemented in EnviroGUI.
bool Enviro::HaveBuildingStyle | ( | ) |
bool Enviro::ImportModelFromKML | ( | const char * | kmlfile | ) |
|
inlineprotected |
bool Enviro::IsMakingElastic | ( | ) |
void Enviro::LoadAllTerrainDescriptions | ( | ) |
void Enviro::LoadGlobalContent | ( | ) |
void Enviro::LoadSpeciesList | ( | ) |
|
protected |
|
protected |
void Enviro::MakeDemoGlobe | ( | ) |
|
protected |
void Enviro::MakeOverlayGlobe | ( | vtImage * | image, |
bool | progress_callbackint = NULL |
||
) |
|
protected |
int Enviro::NumSelectedAbstractFeatures | ( | ) | const |
bool Enviro::OnMouse | ( | vtMouseEvent & | event | ) |
bool Enviro::OnMouseCompass | ( | vtMouseEvent & | event | ) |
Mouse handler should return false if it absorbed the event, true if the event should continue to propagate.
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::OnMouseLeftDownOrbit | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseLeftDownTerrain | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseLeftDownTerrainMove | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseLeftDownTerrainSelect | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseLeftUp | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseLeftUpBox | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseMove | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseMoveTerrain | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseRightDown | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseRightUp | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseSelectCursorPick | ( | vtMouseEvent & | event | ) |
void Enviro::OnMouseSelectRayPick | ( | vtMouseEvent & | event | ) |
void Enviro::PasteBuildingStyle | ( | ) |
bool Enviro::PlantATree | ( | const DPoint2 & | epos | ) |
Plant a tree at the given location (in earth coordinates)
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::RemoveGlobeAbstractLayer | ( | GlobeLayer * | glay | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
bool Enviro::RequestTerrain | ( | const char * | name | ) |
void Enviro::RequestTerrain | ( | vtTerrain * | pTerr | ) |
void Enviro::ResetCamera | ( | ) |
void Enviro::ResetDistanceTool | ( | ) |
void Enviro::SelectInitialViewpoint | ( | vtTerrain * | pTerrain | ) |
void Enviro::SetBuildingEaves | ( | float | fLength | ) |
void Enviro::SetCurrentNavigator | ( | vtTerrainFlyer * | pE | ) |
void Enviro::SetDisplayedArc | ( | const DLine2 & | path | ) |
void Enviro::SetDistanceTool | ( | const DLine2 & | line | ) |
void Enviro::SetDistanceToolMode | ( | bool | bPath | ) |
void Enviro::SetEarthLines | ( | double | lon, |
double | lat | ||
) |
void Enviro::SetEarthShading | ( | bool | bShade | ) |
void Enviro::SetEarthShape | ( | bool | Flat | ) |
void Enviro::SetEarthTilt | ( | bool | bTilt | ) |
void Enviro::SetEarthUnfold | ( | bool | Flat | ) |
void Enviro::SetFenceOptions | ( | const vtLinearParams & | param, |
bool | bProfileChanged = false |
||
) |
void Enviro::SetFlightAccel | ( | bool | bAccel | ) |
|
virtual |
Reimplemented in EnviroGUI.
void Enviro::SetHUDMessageText | ( | const char * | message | ) |
void Enviro::SetMaintain | ( | bool | bOn | ) |
Display a message in the UI. The surrounding flavor of Enviro might show this in the status bar of the frame window (for wxEnviro) or as a HUD text (for a pure OpenGL version of Enviro).
str1 | The first part of the message, which should be translated. |
str2 | The second part of the message, which should not be translated. The two parts will be concatenated. |
fTime | How long the message should appear, in seconds. |
void Enviro::SetMode | ( | MouseMode | mode | ) |
|
virtual |
void Enviro::SetNavType | ( | NavType | nav | ) |
void Enviro::SetPlantOptions | ( | const PlantingOptions & | opt | ) |
void Enviro::SetPowerOptions | ( | const vtString & | sStructType | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::SetSpaceAxes | ( | bool | bShow | ) |
void Enviro::SetSpeed | ( | float | x | ) |
|
protected |
|
inlinevirtual |
Reimplemented in EnviroGUI.
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::SetTopDown | ( | bool | bTopDown | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in EnviroGUI.
|
protected |
void Enviro::SetVehicleOptions | ( | const VehicleOptions & | opt | ) |
void Enviro::SetWind | ( | int | iDirection, |
float | fSpeed | ||
) |
void Enviro::ShowCompass | ( | bool | bShow | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::ShowEarthLines | ( | bool | bShow | ) |
void Enviro::ShowElevationLegend | ( | bool | bShow | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::ShowMapOverview | ( | bool | bShow | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
void Enviro::ShowVerticalLine | ( | bool | bShow | ) |
void Enviro::Shutdown | ( | ) |
void Enviro::StartControlEngine | ( | ) |
|
protected |
void Enviro::StartPowerline | ( | ) |
void Enviro::Startup | ( | ) |
|
virtual |
void Enviro::StoreTerrainParameters | ( | ) |
void Enviro::SwitchToTerrain | ( | vtTerrain * | pTerrain | ) |
void Enviro::TextureHasChanged | ( | ) |
void Enviro::ToggleDemo | ( | ) |
void Enviro::UpdateCompass | ( | ) |
void Enviro::UpdateDistanceTool | ( | ) |
void Enviro::UpdateEarthArc | ( | ) |
|
inlinevirtual |
Reimplemented in EnviroGUI.
|
inlinevirtual |
Reimplemented in EnviroGUI.
|
protected |
|
protected |
bool Enviro::m_bConstrainAngles |
|
protected |
|
protected |
|
protected |
bool Enviro::m_bDragging |
bool Enviro::m_bDragUpDown |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bool Enviro::m_bOnTerrain |
|
protected |
bool Enviro::m_bRotating |
bool Enviro::m_bSelectedPlant |
bool Enviro::m_bSelectedStruct |
bool Enviro::m_bSelectedUtil |
bool Enviro::m_bSelectedVehicle |
bool Enviro::m_bShowVerticalLine |
|
protected |
|
protected |
|
protected |
DPoint3 Enviro::m_EarthPos |
DPoint3 Enviro::m_EarthPosDown |
DPoint3 Enviro::m_EarthPosLast |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
int Enviro::m_iDraggingFencePoint |
|
protected |
|
protected |
|
protected |
MouseMode Enviro::m_mode |
IPoint2 Enviro::m_MouseDown |
IPoint2 Enviro::m_MouseLast |
NavType Enviro::m_nav |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
vtTerrainFlyer* Enviro::m_pCurrentFlyer |
vtMovGeode* Enviro::m_pCursorMGeom |
vtLine3d* Enviro::m_pCurUtilLine |
vtGroup* Enviro::m_pDemoGroup |
vtGeode* Enviro::m_pDemoTrails |
vtFence3d* Enviro::m_pDraggingFence |
|
protected |
FlatFlyer* Enviro::m_pFlatFlyer |
GrabFlyer* Enviro::m_pGFlyer |
|
protected |
GlobePicker* Enviro::m_pGlobePicker |
|
protected |
vtHeightConstrain* Enviro::m_pHeightEngine |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
vtOrthoFlyer* Enviro::m_pOrthoFlyer |
|
protected |
vtPanoFlyer* Enviro::m_pPanoFlyer |
QuakeFlyer* Enviro::m_pQuakeFlyer |
|
protected |
vtPole3d* Enviro::m_pSelUtilPole |
|
protected |
|
protected |
|
protected |
TerrainPicker* Enviro::m_pTerrainPicker |
vtTerrainFlyer* Enviro::m_pTFlyer |
|
protected |
|
protected |
|
protected |
VFlyer* Enviro::m_pVFlyer |
|
protected |
|
protected |
|
protected |
|
protected |
float Enviro::m_StartRotation |
AppState Enviro::m_state |
vtString Enviro::m_strMessage1 |
vtString Enviro::m_strMessage2 |
|
protected |
|
protected |
VehicleManager Enviro::m_VehicleManager |
|
protected |
VehicleSet Enviro::m_Vehicles |