Commit e63f1dfd authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis: TranslationManipulatorNode: provide bounding Box

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5564 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 24865079
......@@ -1667,6 +1667,20 @@ void TranslationManipulatorNode::updateSize (GLState& _state)
manipulator_height_ = set_manipulator_height_ * auto_size_length_;
}
//----------------------------------------------------------------------------
void TranslationManipulatorNode::boundingBox( Vec3f & _bbMin, Vec3f & _bbMax )
{
if (!draw_manipulator_)
return;
float r = 2 * manipulator_height_;
_bbMin.minimize(Vec3f(-r,-r,-r));
_bbMax.maximize(Vec3f(r,r,r));
}
//=============================================================================
} // namespace SceneGraph
} // namespace ACG
......
......@@ -147,6 +147,9 @@ public:
/// get mouse events
virtual void mouseEvent(GLState& _state, QMouseEvent* _event);
/// bounding box of node
void boundingBox(Vec3f& _bbMin, Vec3f& _bbMax);
private:
enum StateUpdates {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment