SOFA API  56988ca1
Open source framework for multi-physics simuation
sofa::gui::component::performer::BodyPicked Struct Reference

#include <MouseInteractor.h>

Represents a point on an object. More...

Detailed Description

Represents a point on an object.

This requires not only the 3D location, but also the MechanicalState it is attached to.

Public Attributes

sofa::core::CollisionModelbody
 
sofa::core::behavior::BaseMechanicalStatemstate
 
sofa::Index indexCollisionElement
 
type::Vec3 point
 
SReal dist
 
SReal rayLength
 

Public Member Functions

 BodyPicked ()
 
 operator bool ()
 

Attribute details

◆ body

sofa::core::CollisionModel* sofa::gui::component::performer::BodyPicked::body

◆ dist

SReal sofa::gui::component::performer::BodyPicked::dist

◆ indexCollisionElement

sofa::Index sofa::gui::component::performer::BodyPicked::indexCollisionElement

◆ mstate

sofa::core::behavior::BaseMechanicalState* sofa::gui::component::performer::BodyPicked::mstate

◆ point

type::Vec3 sofa::gui::component::performer::BodyPicked::point

◆ rayLength

SReal sofa::gui::component::performer::BodyPicked::rayLength

Constructor details

◆ BodyPicked()

sofa::gui::component::performer::BodyPicked::BodyPicked ( )
inline

Function details

◆ operator bool()

sofa::gui::component::performer::BodyPicked::operator bool ( )
inline