Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area Class Reference
Inheritance diagram for Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area:
Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo

Public Member Functions

override string GetFooterText ()
 Sets the text at the bottom of the GAP window More...
 
override void Initialize (GAPCelestialBody newGapRef)
 
override bool IsActive ()
 Checks if the current gizmo is being interacted with, it wil lreturn false if there is no gizmo selected or not area is being interacted with. More...
 
override void OnGAPClick (double newLatitude, double newLongitude)
 Sets the new position of the Gizmo in the CelestialBody when clicked More...
 
override void OnGAPDrag (double dragStartLatitude, double dragStartLongitude, double dragLatitude, double dragLongitude)
 If now edge of the circles is selected, drags the camera otherwise it increases the radius of the circle. More...
 
override void OnGAPDragEnd ()
 When a drag is finished, if a circle was being tweaked, saves the final value and displays it in the SAP More...
 
override void OnGAPOver (double hoverLatitude, double hoverLongitude)
 Tests if the mouse is over any of the circles or handles and acts appropiately More...
 
override void OnGizmoHandleSelected (GAPCelestialBodyGizmoHandle selectedHandle)
 An event when the handles of the gizmo are being selected. More...
 
override void OnLoadPlanet (CelestialBody newCelestialBody)
 When a new CB is loaded adjusts the projectors values so they fit it the new CB size. More...
 
delegate void OnRadiusChange (float newRadius)
 
override void OnUpdate ()
 Updates the gizmo. More...
 
- Public Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo
virtual Transform GetFocusTarget ()
 
bool IsDragReady ()
 Checks if there is a gizmo handle selected. More...
 
void OnButtonPressed_FocusTarget ()
 The event executed when the Focus Target button is pressed. More...
 
virtual void OnGizmoHandleDrag (double dragStartLatitude, double dragStartLongitude, double dragLatitude, double dragLongitude)
 Called when a handle of the gizmo is getting dragged. More...
 
virtual void OnGizmoHandleDragEnd ()
 Called when the drag gesture over one of the handles has ended. More...
 
virtual void OnGizmoHandleOver (double hoverLatitude, double hoverLongitude)
 Called when the mouse is over a gizmo object. More...
 
delegate void OnPointTranslate (double latitude, double longitude)
 
override double SetGizmoPosition (double newLatitude, double newLongitude, double newAltitude)
 Sets the GAP gizmo on the celestial body surface from the latitude and longitude values. Altitude is calculated automatically. More...
 
bool TrySelectHandle (Collider handleCollider)
 A method to check the status of the gizmo handles. It will compare a collider to see if its a handle, and if it is it will select it if its intended. It uses a collider since the test method is a raycast to the surface of the planet. More...
 
- Public Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo
virtual void OnDestroy ()
 Called before destroying the gizmo. More...
 

Public Attributes

Color colorArea_Drag
 
Color colorArea_Idle
 
Color colorEdge_Highlight
 
Color colorEdge_Idle
 
Transform containerProjectors
 
OnRadiusChange OnGAPGizmoRadiusChange
 
Projector projectorArea
 
- Public Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo
List< GAPCelestialBodyGizmoHandlegizmoHandles
 
OnPointTranslate OnGAPGizmoTranslate
 
Sprite spriteFocusCelestialBody
 
Sprite spriteFocusTarget
 
- Public Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo
Transform gizmoContainer
 

Properties

float MaxRadius [get, set]
 The maximum radius the circle can grow to More...
 
float Radius [get, set]
 The radius of the circle More...
 
- Properties inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo
double Altitude [get]
 Returns the altitude of the terrain under the gizmo position. More...
 
double Latitude [get]
 Returns the latitude of the gizmo in the celestial body. More...
 
double Longitude [get]
 Returns the longitude of the gizmo in the celestial body. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo
void SetInSurfaceFromPoint (Vector3d point)
 Sets a transform on the surface of the celestial body More...
 
void SetInSurfaceFromPointAtSeaLevel (Vector3d point, double seaLevel)
 Sets a transform on the surface of the celestial body More...
 
- Protected Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo
GAPCelestialBodyGizmoHandle selectedHandle
 
- Protected Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo
double altitude
 
CelestialBody celestialBody
 
GAPCelestialBody gapRef
 
double latitude
 
double longitude
 

Member Function Documentation

override string Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.GetFooterText ( )
inlinevirtual

Sets the text at the bottom of the GAP window

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.Initialize ( GAPCelestialBody  newGapRef)
inlinevirtual
override bool Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.IsActive ( )
inlinevirtual

Checks if the current gizmo is being interacted with, it wil lreturn false if there is no gizmo selected or not area is being interacted with.

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGAPClick ( double  newLatitude,
double  newLongitude 
)
inlinevirtual

Sets the new position of the Gizmo in the CelestialBody when clicked

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGAPDrag ( double  dragStartLatitude,
double  dragStartLongitude,
double  dragLatitude,
double  dragLongitude 
)
inlinevirtual

If now edge of the circles is selected, drags the camera otherwise it increases the radius of the circle.

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGAPDragEnd ( )
inlinevirtual

When a drag is finished, if a circle was being tweaked, saves the final value and displays it in the SAP

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGAPOver ( double  hoverLatitude,
double  hoverLongitude 
)
inlinevirtual

Tests if the mouse is over any of the circles or handles and acts appropiately

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGizmoHandleSelected ( GAPCelestialBodyGizmoHandle  selectedHandle)
inlinevirtual

An event when the handles of the gizmo are being selected.

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnLoadPlanet ( CelestialBody  newCelestialBody)
inlinevirtual

When a new CB is loaded adjusts the projectors values so they fit it the new CB size.

Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.

delegate void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnRadiusChange ( float  newRadius)
override void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnUpdate ( )
inlinevirtual

Member Data Documentation

Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorArea_Drag
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorArea_Idle
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorEdge_Highlight
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorEdge_Idle
Transform Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.containerProjectors
OnRadiusChange Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGAPGizmoRadiusChange
Projector Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.projectorArea

Property Documentation

float Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.MaxRadius
getset

The maximum radius the circle can grow to

float Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.Radius
getset

The radius of the circle


The documentation for this class was generated from the following file: