#include <dragplanes.h>
Public Member Functions | |
DragPlanes (const SelectionChangeCallback &onchanged) | |
bool | isSelected () const |
void | setSelected (bool selected) |
void | selectPlanes (const AABB &aabb, Selector &selector, SelectionTest &test, const PlaneCallback &selectedPlaneCallback, const Matrix4 &rotation=g_matrix4_identity) |
void | selectReversedPlanes (const AABB &aabb, Selector &selector, const SelectedPlanes &selectedPlanes, const Matrix4 &rotation=g_matrix4_identity) |
AABB | evaluateResize (const Vector3 &translation) const |
AABB | evaluateResize (const Vector3 &translation, const Matrix4 &rotation) const |
Matrix4 | evaluateTransform (const Vector3 &translation) const |
Data Fields | |
ObservedSelectable | m_selectable_right |
ObservedSelectable | m_selectable_left |
ObservedSelectable | m_selectable_front |
ObservedSelectable | m_selectable_back |
ObservedSelectable | m_selectable_top |
ObservedSelectable | m_selectable_bottom |
AABB | m_bounds |
Definition at line 44 of file dragplanes.h.
DragPlanes::DragPlanes | ( | const SelectionChangeCallback & | onchanged | ) | [inline] |
Definition at line 55 of file dragplanes.h.
AABB DragPlanes::evaluateResize | ( | const Vector3 & | translation, | |
const Matrix4 & | rotation | |||
) | const [inline] |
Definition at line 178 of file dragplanes.h.
References evaluateResize(), m_bounds, translation_from_local(), and translation_to_local().
AABB DragPlanes::evaluateResize | ( | const Vector3 & | translation | ) | const [inline] |
Definition at line 147 of file dragplanes.h.
References m_bounds, m_selectable_back, m_selectable_bottom, m_selectable_front, m_selectable_left, m_selectable_right, m_selectable_top, and vector3_mid().
Referenced by evaluateResize(), and evaluateTransform().
Matrix4 DragPlanes::evaluateTransform | ( | const Vector3 & | translation | ) | const [inline] |
Definition at line 184 of file dragplanes.h.
References evaluateResize(), m_bounds, and scale.
bool DragPlanes::isSelected | ( | ) | const [inline] |
Definition at line 60 of file dragplanes.h.
References m_selectable_back, m_selectable_bottom, m_selectable_front, m_selectable_left, m_selectable_right, and m_selectable_top.
void DragPlanes::selectPlanes | ( | const AABB & | aabb, | |
Selector & | selector, | |||
SelectionTest & | test, | |||
const PlaneCallback & | selectedPlaneCallback, | |||
const Matrix4 & | rotation = g_matrix4_identity | |||
) | [inline] |
Definition at line 75 of file dragplanes.h.
References SelectionTest::getFar(), SelectionTest::getNear(), i, m_bounds, m_selectable_back, m_selectable_bottom, m_selectable_front, m_selectable_left, m_selectable_right, m_selectable_top, and Selector_add().
void DragPlanes::selectReversedPlanes | ( | const AABB & | aabb, | |
Selector & | selector, | |||
const SelectedPlanes & | selectedPlanes, | |||
const Matrix4 & | rotation = g_matrix4_identity | |||
) | [inline] |
Definition at line 122 of file dragplanes.h.
References SelectedPlanes::contains(), m_selectable_back, m_selectable_bottom, m_selectable_front, m_selectable_left, m_selectable_right, m_selectable_top, plane3_flipped(), and Selector_add().
void DragPlanes::setSelected | ( | bool | selected | ) | [inline] |
Definition at line 66 of file dragplanes.h.
References m_selectable_back, m_selectable_bottom, m_selectable_front, m_selectable_left, m_selectable_right, and m_selectable_top.
AABB DragPlanes::m_bounds |
Definition at line 53 of file dragplanes.h.
Referenced by evaluateResize(), evaluateTransform(), and selectPlanes().
ObservedSelectable DragPlanes::m_selectable_back |
Definition at line 50 of file dragplanes.h.
Referenced by evaluateResize(), isSelected(), selectPlanes(), selectReversedPlanes(), and setSelected().
ObservedSelectable DragPlanes::m_selectable_bottom |
Definition at line 52 of file dragplanes.h.
Referenced by evaluateResize(), isSelected(), selectPlanes(), selectReversedPlanes(), and setSelected().
ObservedSelectable DragPlanes::m_selectable_front |
Definition at line 49 of file dragplanes.h.
Referenced by evaluateResize(), isSelected(), selectPlanes(), selectReversedPlanes(), and setSelected().
ObservedSelectable DragPlanes::m_selectable_left |
Definition at line 48 of file dragplanes.h.
Referenced by evaluateResize(), isSelected(), selectPlanes(), selectReversedPlanes(), and setSelected().
ObservedSelectable DragPlanes::m_selectable_right |
Definition at line 47 of file dragplanes.h.
Referenced by evaluateResize(), isSelected(), selectPlanes(), selectReversedPlanes(), and setSelected().
ObservedSelectable DragPlanes::m_selectable_top |
Definition at line 51 of file dragplanes.h.
Referenced by evaluateResize(), isSelected(), selectPlanes(), selectReversedPlanes(), and setSelected().