Go to the documentation of this file.
6 #include <RobotAPI/interface/ArViz/Component.h>
39 return "ContextMenuChosen";
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);
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;
@ ContextMenuChosen
A context menu entry was chosen.
InteractionFeedback const * end_
Eigen::Matrix4f toEigen(data::GlobalPose const &pose)
InteractionDescription interaction()
MatrixXX< 4, 4, float > Matrix4f
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
@ Deselect
An element was deselected.
const char * toString(InteractionFeedbackType type)
data::InteractionFeedback data_
MatrixXX< 3, 3, float > Matrix3f
bool isTransformDuring() const
InteractionFeedback const * begin() const
InteractionFeedback const * end() const
This file is part of ArmarX.
int chosenContextMenuEntry() const