Go to the documentation of this file.
4 #include <RobotAPI/interface/ArViz/Component.h>
38 return "ContextMenuChosen";
51 result.block<3, 3>(0, 0) = ori.toRotationMatrix();
52 result.block<3, 1>(0, 3) = Eigen::Vector3f(pose.x, pose.y, pose.z);
53 result.block<1, 4>(3, 0) = Eigen::Vector4f(0.0f, 0.0f, 0.0f, 1.0f);
69 case data::InteractionFeedbackType::SELECT:
72 case data::InteractionFeedbackType::DESELECT:
75 case data::InteractionFeedbackType::CONTEXT_MENU_CHOSEN:
78 case data::InteractionFeedbackType::TRANSFORM:
82 throw std::runtime_error(
"Unexpected InteractionFeedbackType");
88 return data_.type & data::InteractionFeedbackType::TRANSFORM_BEGIN_FLAG;
93 return data_.type & data::InteractionFeedbackType::TRANSFORM_DURING_FLAG;
98 return data_.type & data::InteractionFeedbackType::TRANSFORM_END_FLAG;
108 return data_.element;
113 return data_.revision;
118 return data_.chosenContextMenuEntry;
128 Eigen::Vector3f result(
data_.scale.e0,
data_.scale.e1,
data_.scale.e2);
171 template <
typename ElementT>
195 element.orientation(rotationMatrix);
202 element.orientation(quaternion);
203 initialPose.block<3, 3>(0, 0) = quaternion.toRotationMatrix();
211 element.data_->interaction.enableFlags |= viz::data::InteractionEnableFlags::TRANSFORM_HIDE;
@ ContextMenuChosen
A context menu entry was chosen.
InteractionFeedback const * end_
Eigen::Matrix4f toEigen(data::GlobalPose const &pose)
InteractionDescription interaction()
std::string const & element() const
Eigen::Matrix4f transformation() const
InteractionFeedback const * begin_
std::string const & layer() const
void Identity(MatrixXX< N, N, T > *a)
@ Select
An element was selected.
bool isTransformBegin() const
@ Transform
The element was transformed (translated or rotated).
Eigen::Vector3f scale() const
InteractionFeedbackType type() const
bool isTransformEnd() const
MatrixXX< 3, 3, float > Matrix3f
MatrixXX< 4, 4, float > Matrix4f
@ Deselect
An element was deselected.
const char * toString(InteractionFeedbackType type)
data::InteractionFeedback data_
bool isTransformDuring() const
InteractionFeedback const * begin() const
InteractionFeedback const * end() const
This file is part of ArmarX.
int chosenContextMenuEntry() const