Tanoda
GILES.pb_SelectionHandle Class Reference
Inheritance diagram for GILES.pb_SelectionHandle:
GILES.pb_MonoBehaviourSingleton< pb_SelectionHandle >

Public Member Functions

bool InUse ()
 
void SetTRS (Vector3 position, Quaternion rotation, Vector3 scale)
 
delegate void OnHandleMoveEvent (pb_Transform transform)
 
delegate void OnHandleBeginEvent (pb_Transform transform)
 
delegate void OnHandleFinishEvent ()
 
pb_Transform GetTransform ()
 
void SetTool (Tool tool)
 
Tool GetTool ()
 
void SetIsHidden (bool isHidden)
 
bool GetIsHidden ()
 

Public Attributes

bool ModelViewerOnly = false
 
Mesh ConeMesh
 
Mesh CubeMesh
 
float HandleSize = 90f
 
Callback onHandleTypeChanged = null
 

Static Public Attributes

static float positionSnapValue = 0.0001f
 
static float scaleSnapValue = .1f
 
static float rotationSnapValue = 1f
 

Protected Member Functions

override void Awake ()
 
- Protected Member Functions inherited from GILES.pb_MonoBehaviourSingleton< pb_SelectionHandle >
virtual void Initialize ()
 
virtual void Awake ()
 

Properties

bool draggingHandle [get]
 
bool isHidden [get]
 
- Properties inherited from GILES.pb_MonoBehaviourSingleton< pb_SelectionHandle >
virtual bool dontDestroyOnLoad [get]
 Override to maintain an instance of this object across level loads. More...
 
static T instance [get]
 
static T nullableInstance [get]
 

Events

OnHandleMoveEvent OnHandleMove
 
OnHandleBeginEvent OnHandleBegin
 
OnHandleFinishEvent OnHandleFinish
 

Detailed Description

A selection handle for translation, rotation, and scale.

Todo:
Document and clean up

Definition at line 12 of file pb_SelectionHandle.cs.

Member Function Documentation

◆ Awake()

override void GILES.pb_SelectionHandle.Awake ( )
protectedvirtual

If overriding, be sure to call base.Awake().

Reimplemented from GILES.pb_MonoBehaviourSingleton< pb_SelectionHandle >.

Definition at line 110 of file pb_SelectionHandle.cs.

◆ GetIsHidden()

bool GILES.pb_SelectionHandle.GetIsHidden ( )

Definition at line 629 of file pb_SelectionHandle.cs.

◆ GetTool()

Tool GILES.pb_SelectionHandle.GetTool ( )

Definition at line 615 of file pb_SelectionHandle.cs.

◆ GetTransform()

pb_Transform GILES.pb_SelectionHandle.GetTransform ( )

Definition at line 420 of file pb_SelectionHandle.cs.

◆ InUse()

bool GILES.pb_SelectionHandle.InUse ( )

Definition at line 103 of file pb_SelectionHandle.cs.

◆ OnHandleBeginEvent()

delegate void GILES.pb_SelectionHandle.OnHandleBeginEvent ( pb_Transform  transform)

◆ OnHandleFinishEvent()

delegate void GILES.pb_SelectionHandle.OnHandleFinishEvent ( )

◆ OnHandleMoveEvent()

delegate void GILES.pb_SelectionHandle.OnHandleMoveEvent ( pb_Transform  transform)

◆ SetIsHidden()

void GILES.pb_SelectionHandle.SetIsHidden ( bool  isHidden)

Definition at line 620 of file pb_SelectionHandle.cs.

◆ SetTool()

void GILES.pb_SelectionHandle.SetTool ( Tool  tool)

Definition at line 603 of file pb_SelectionHandle.cs.

◆ SetTRS()

void GILES.pb_SelectionHandle.SetTRS ( Vector3  position,
Quaternion  rotation,
Vector3  scale 
)

Definition at line 124 of file pb_SelectionHandle.cs.

Member Data Documentation

◆ ConeMesh

Mesh GILES.pb_SelectionHandle.ConeMesh

Definition at line 32 of file pb_SelectionHandle.cs.

◆ CubeMesh

Mesh GILES.pb_SelectionHandle.CubeMesh

Definition at line 33 of file pb_SelectionHandle.cs.

◆ HandleSize

float GILES.pb_SelectionHandle.HandleSize = 90f

Definition at line 91 of file pb_SelectionHandle.cs.

◆ ModelViewerOnly

bool GILES.pb_SelectionHandle.ModelViewerOnly = false

Definition at line 16 of file pb_SelectionHandle.cs.

◆ onHandleTypeChanged

Callback GILES.pb_SelectionHandle.onHandleTypeChanged = null

Definition at line 93 of file pb_SelectionHandle.cs.

◆ positionSnapValue

float GILES.pb_SelectionHandle.positionSnapValue = 0.0001f
static

Definition at line 17 of file pb_SelectionHandle.cs.

◆ rotationSnapValue

float GILES.pb_SelectionHandle.rotationSnapValue = 1f
static

Definition at line 19 of file pb_SelectionHandle.cs.

◆ scaleSnapValue

float GILES.pb_SelectionHandle.scaleSnapValue = .1f
static

Definition at line 18 of file pb_SelectionHandle.cs.

Property Documentation

◆ draggingHandle

bool GILES.pb_SelectionHandle.draggingHandle
get

Definition at line 96 of file pb_SelectionHandle.cs.

◆ isHidden

bool GILES.pb_SelectionHandle.isHidden
get

Definition at line 101 of file pb_SelectionHandle.cs.

Event Documentation

◆ OnHandleBegin

OnHandleBeginEvent GILES.pb_SelectionHandle.OnHandleBegin

Definition at line 143 of file pb_SelectionHandle.cs.

◆ OnHandleFinish

OnHandleFinishEvent GILES.pb_SelectionHandle.OnHandleFinish

Definition at line 147 of file pb_SelectionHandle.cs.

◆ OnHandleMove

OnHandleMoveEvent GILES.pb_SelectionHandle.OnHandleMove

Definition at line 139 of file pb_SelectionHandle.cs.


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