IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Public Attributes | Properties | List of all members
ToolControl Class Reference
Inheritance diagram for ToolControl:
Inheritance graph
[legend]
Collaboration diagram for ToolControl:
Collaboration graph
[legend]

Public Member Functions

void updateAvailableTools (object obj=null)
 
void generateToolRing ()
 
void removeToolRing ()
 
void activateToolRing ()
 
void toggleToolRing ()
 
void toolRingCancel ()
 
void toolRingNext ()
 
void toolRingPrev ()
 
void setToolRingTargetRotation (float angle)
 
void updateToolRingIcons ()
 
void patientLoaded (object obj=null)
 
void patientClosed (object obj=null)
 
void closeActiveTool ()
 
void chooseTool (ToolWidget tool)
 
void overrideTool (string name)
 
void unoverrideTool (string name)
 

Public Attributes

Platform platform
 
Sprite ToolSelectSprite
 
Sprite ToolAcceptSprite
 
Sprite ArrowL
 
Sprite ArrowR
 
Sprite Cancel
 
Color iconColor = new Color( 0.7f, 0.85f, 1.0f )
 

Properties

static ToolControl instance [get, set]
 

Detailed Description

This class handles the tool options and how tools are selected/deselected. For every Tool, this class automatically generates an entry in the ToolRing, which is placed around the left controller to be chosen by the user. The class also handles the ToolRing movement and enabling/disabling.

Note
If the Rift Camera is enabled, the RiftToolRing will be used to display an array of available tools.

Definition at line 9 of file ToolControl.cs.

Member Function Documentation

void ToolControl.generateToolRing ( )
inline

Create a new Tool Ring and add an entry for each available Tool.

Definition at line 141 of file ToolControl.cs.

void ToolControl.overrideTool ( string  name)
inline

Forces the tool given by 'name' to be active.

Definition at line 380 of file ToolControl.cs.

void ToolControl.toolRingNext ( )
inline

Rotate the ring of tools to the next tool

Definition at line 258 of file ToolControl.cs.

void ToolControl.toolRingPrev ( )
inline

Rotate the ring of tools to the previous tool

Definition at line 270 of file ToolControl.cs.


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