6#include <RobotAPI/interface/ArViz/Component.h>
39 return "ContextMenuChosen";
47 inline Eigen::Matrix4f
52 Eigen::Matrix4f result;
53 result.block<3, 3>(0, 0) = ori.toRotationMatrix();
54 result.block<3, 1>(0, 3) = Eigen::Vector3f(pose.x, pose.y, pose.z);
55 result.block<1, 4>(3, 0) = Eigen::Vector4f(0.0f, 0.0f, 0.0f, 1.0f);
69 case data::InteractionFeedbackType::NONE:
72 case data::InteractionFeedbackType::SELECT:
75 case data::InteractionFeedbackType::DESELECT:
78 case data::InteractionFeedbackType::CONTEXT_MENU_CHOSEN:
81 case data::InteractionFeedbackType::TRANSFORM:
85 throw std::runtime_error(
"Unexpected InteractionFeedbackType");
92 return data_.type & data::InteractionFeedbackType::TRANSFORM_BEGIN_FLAG;
98 return data_.type & data::InteractionFeedbackType::TRANSFORM_DURING_FLAG;
104 return data_.type & data::InteractionFeedbackType::TRANSFORM_END_FLAG;
116 return data_.element;
122 return data_.revision;
128 return data_.chosenContextMenuEntry;
140 Eigen::Vector3f result(
data_.scale.e0,
data_.scale.e1,
data_.scale.e2);
187 template <
typename ElementT>
213 element.orientation(rotationMatrix);
221 element.orientation(quaternion);
222 initialPose.block<3, 3>(0, 0) = quaternion.toRotationMatrix();
231 element.data_->interaction.enableFlags |=
232 viz::data::InteractionEnableFlags::TRANSFORM_HIDE;
Quaternion< float, 0 > Quaternionf
This file is part of ArmarX.
InteractionDescription interaction()
@ Transform
The element was transformed (translated or rotated).
@ ContextMenuChosen
A context menu entry was chosen.
@ Deselect
An element was deselected.
@ Select
An element was selected.
Eigen::Matrix4f toEigen(data::GlobalPose const &pose)
const char * toString(InteractionFeedbackType type)
InteractionFeedback const * begin_
InteractionFeedback const * begin() const
InteractionFeedback const * end() const
InteractionFeedback const * end_
InteractionFeedbackType type() const
Eigen::Matrix4f transformation() const
int chosenContextMenuEntry() const
std::string const & layer() const
bool isTransformDuring() const
std::string const & element() const
bool isTransformBegin() const
Eigen::Vector3f scale() const
bool isTransformEnd() const
data::InteractionFeedback data_