#include <PickHandler.h>
Protected Attributes | |
bool | interactorInUse |
MOUSE_STATUS | mouseStatus |
MOUSE_BUTTON | mouseButton |
sofa::simulation::NodeSPtr | mouseNode |
MouseContainer::SPtr | mouseContainer |
sofa::core::sptr< MouseCollisionModel > | mouseCollision |
MousePosition | mousePosition |
ComponentMouseInteraction * | interaction |
std::vector< ComponentMouseInteraction * > | instanceComponents |
BodyPicked | lastPicked |
bool | useCollisions |
type::fixed_array< Operation *, NONE > | operations |
type::vector< CallBackPicker * > | callbacks |
CallBackRender * | renderCallback |
PickingMethod | pickingMethod |
double | m_defaultLength |
Default length of the ray. Set by constructor. More... | |
Static Public Member Functions | |
static BodyPicked | findCollisionUsingBruteForce (const type::Vec3 &origin, const type::Vec3 &direction, double maxLength, core::objectmodel::BaseNode *root) |
Protected Member Functions | |
virtual BodyPicked | findCollision () |
BodyPicked | findCollisionUsingPipeline () |
BodyPicked | findCollisionUsingBruteForce () |
BodyPicked | findCollisionUsingColourCoding () |
bool | needToCastRay () |
void | setCompatibleInteractor () |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Default length of the ray. Set by constructor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
sofa::gui::common::PickHandler::PickHandler | ( | double | defaultLength = 1000000 | ) |
|
virtual |
void sofa::gui::common::PickHandler::activateRay | ( | int | width, |
int | height, | ||
core::objectmodel::BaseNode * | root | ||
) |
|
inline |
|
virtual |
Reimplemented in sofa::gui::qt::GLPickHandler.
Operation * sofa::gui::common::PickHandler::changeOperation | ( | MOUSE_BUTTON | button, |
const std::string & | op | ||
) |
Operation * sofa::gui::common::PickHandler::changeOperation | ( | sofa::component::setting::MouseButtonSetting * | setting | ) |
|
inline |
void sofa::gui::common::PickHandler::deactivateRay | ( | ) |
|
virtual |
Reimplemented in sofa::gui::qt::GLPickHandler.
|
protectedvirtual |
|
protected |
|
static |
|
protected |
|
virtual |
Reimplemented in sofa::gui::qt::GLPickHandler.
|
protected |
|
inline |
ComponentMouseInteraction * sofa::gui::common::PickHandler::getInteraction | ( | ) |
|
inline |
|
inline |
void sofa::gui::common::PickHandler::handleMouseEvent | ( | MOUSE_STATUS | status, |
MOUSE_BUTTON | button | ||
) |
void sofa::gui::common::PickHandler::init | ( | core::objectmodel::BaseNode * | root | ) |
|
protected |
void sofa::gui::common::PickHandler::reset | ( | void | ) |
|
inline |
|
protected |
|
inline |
void sofa::gui::common::PickHandler::unload | ( | void | ) |
|
inline |
void sofa::gui::common::PickHandler::updateRay | ( | const sofa::type::Vec3 & | position, |
const sofa::type::Vec3 & | orientation | ||
) |
|
inline |