BotNavSim  v0.4.3
Mobile Robot Simulation
UI_CameraControls Class Reference

IToolbar class for controlling the camera. More...

Inheritance diagram for UI_CameraControls:
Collaboration diagram for UI_CameraControls:

Public Member Functions

 UI_CameraControls ()
 

Properties

bool contextual [get]
 
bool hidden [get, set]
 
string windowTitle [get]
 
Rect windowRect [get, set]
 
GUI.WindowFunction windowFunction [get]
 
- Properties inherited from IToolbar
bool contextual [get]
 Gets a value indicating whether this IToolbar is contextual. More...
 
bool hidden [get, set]
 Gets or sets a value indicating whether this IToolbar is hidden. More...
 
- Properties inherited from IWindowFunction
string windowTitle [get]
 Gets the window title. More...
 
Rect windowRect [get, set]
 Gets or sets the window rect (window size and position). More...
 
GUI.WindowFunction windowFunction [get]
 Gets the window function definition for GUILayout.Window() More...
 

Private Member Functions

void CameraControlsWindow (int windowID)
 Provide controls for calling CamController functions More...
 

Detailed Description

IToolbar class for controlling the camera.

Definition at line 7 of file UI_CameraControls.cs.

Constructor & Destructor Documentation

UI_CameraControls.UI_CameraControls ( )

Definition at line 9 of file UI_CameraControls.cs.

9  {
10  hidden = true;
11  }

Member Function Documentation

void UI_CameraControls.CameraControlsWindow ( int  windowID)
private

Provide controls for calling CamController functions

Definition at line 42 of file UI_CameraControls.cs.

42  {
43  float lw = 200f;
44 
45  // camera perspective controls
46  GUILayout.BeginHorizontal(GUILayout.Width(UI_Toolbar.I.innerWidth));
47  GUILayout.Label("Camera Perspective: ", GUILayout.Width(lw));
48  if (GUILayout.Button(CamController.viewMode.ToString())) {
50  }
51  GUILayout.EndHorizontal();
52 
53  // camera render mode controls
54  GUILayout.BeginHorizontal(GUILayout.Width(UI_Toolbar.I.innerWidth));
55  GUILayout.Label("Render Mode: ", GUILayout.Width(lw));
56  if (GUILayout.Button(CamController.renderMode.ToString())) {
58  }
59  GUILayout.EndHorizontal();
60 
61  // camera areas of interest
62  GUILayout.BeginHorizontal(GUILayout.Width(UI_Toolbar.I.innerWidth));
63  GUILayout.Label("Observing: ", GUILayout.Width(lw));
64  if (GUILayout.Button(CamController.area.name)) {
66  }
67  GUILayout.EndHorizontal();
68  }
static void CycleAreaOfInterest()
Set area to next area of interest (circular index of areas list)
static IObservable area
Gets the current observable area of interest.
float innerWidth
Definition: UI_Toolbar.cs:33
static UI_Toolbar I
Singleton pattern.
Definition: UI_Toolbar.cs:16
string name
Gets the name of the observable object
Definition: IObservable.cs:12
static ViewMode viewMode
Gets the current ViewMode.
static void CycleRenderMode()
Set renderMode to next RenderMode (circular index of render modes).
UI Toolbar provides controls for choosing which UI windows to display
Definition: UI_Toolbar.cs:11
Controls the camera orientation and render modes according to ViewMode in viewModeList user input...
static void CycleViewMode()
Set viewMode to the next ViewMode in viewModeList (circular index of viewModeList).
static RenderMode renderMode
Gets or sets the RenderMode in use. RenderMode determines which render layers are drawn...

Here is the call graph for this function:

Property Documentation

bool UI_CameraControls.contextual
get

Definition at line 13 of file UI_CameraControls.cs.

bool UI_CameraControls.hidden
getset

Definition at line 19 of file UI_CameraControls.cs.

GUI.WindowFunction UI_CameraControls.windowFunction
get

Definition at line 33 of file UI_CameraControls.cs.

Rect UI_CameraControls.windowRect
getset

Definition at line 29 of file UI_CameraControls.cs.

string UI_CameraControls.windowTitle
get

Definition at line 23 of file UI_CameraControls.cs.


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