
Wed, 11/16/2016 - 09:12
Forums:
i downloaded the latest 7.1.0 beta version source ocde , and i found this version repaired a lot of problems,dan boolean operation in release mode is very fast, and i found new fecture like AIS_Manipulator, and i have displayed it. it looks like gizmo in other software eg blend,solidworks.but how i can use it tu change another ais_shape object's position,rotation?
Wed, 12/14/2016 - 10:46
Hi!
After attaching the manipulator to an object, u should:
1. add the below codes in your mouse leftbotton down event
if (aManipulator->HasActiveMode())
{
aManipulator->StartTransform (myXmax, myYmax, myView);
}
2.add the below codes in your mouse move event
if (aManipulator->HasActiveMode())
{
aManipulator->Transform (myXmax, myYmax, myView);
myView->Redraw();
}
Thus u can change the object's position, size and rotation through operating the manipulator by mouse!
Wed, 12/14/2016 - 10:55
Dear Vincent Zhang
Thanks for your reply, i will try .
another question, are u a Chinese guy?
Wed, 12/14/2016 - 15:04
Yes! HaHa!
I'm so happy that I can help!
Thu, 12/15/2016 - 07:48
me 2,haha,
Thu, 12/15/2016 - 08:22
Dear Forum supervisor
Sorry about that!
Thu, 12/15/2016 - 07:48
okay, what is your q ,we can exchange informations
Thu, 12/15/2016 - 08:24
my Q:1458495650
Thu, 12/15/2016 - 07:42
Dear All,
Please, use English only on these Forums - see the Forum Rules at https://www.opencascade.com/content/forums-rules.
Thank you.
Forum supervisor
Thu, 12/15/2016 - 07:47
ok~ my bad~
Sat, 11/02/2019 - 05:25
Is there sample code to use the AIS_Manipulator ?
I try the following code, and AIS_Manipulator can attach to the object and display in the view, but it did not interactive with the mouse.
Mon, 11/04/2019 - 09:51
Hi Max
I think you must call AIS_Manipulator::StartTransform on mouse click.
regards
Jordi
Wed, 11/06/2019 - 08:43
Hi Jordi
I use AIS_ViewController with AIS_Manipulator, so no need to call AIS_Manipulator::StartTransform.
In my code, EventManger is derived from AIS_ViewController.
Here is the partly working code :
But in the source code of DRAW, no need for all these stuff, I can't figure it out how.