Hi I am using the code behind with manipulators in my program with the following code:
CubeVisual3D box = new CubeVisual3D();
box.Center = new Point3D(x, y, z);
CombinedManipulator boxManipulator = new CombinedManipulator();
boxManipulator.Position = box.Center;
boxManipulator.Pivot = box.Center;
boxManipulator.CanRotateX = false;//true;
boxManipulator.CanRotateY = false;// true;
boxManipulator.CanRotateZ = false;// true;
boxManipulator.CanTranslateX = false;// true;
boxManipulator.CanTranslateY = false;// true;
boxManipulator.CanTranslateZ = true;
I can get the manipulator to work in the x and y and all rotation directions, however the Z translate direction does not show up on the viewport. I don't know why the other directions work but Z does not work.
The second question is what event can invoke when using a transparent bounding volume to detect a mouse left button down on the manipulator? I have been using the VisualTreeHelper.HitTest method to ignore transparent geometry before now but I don't know what
method can be invoked once a manipulator is found by the VisualTreeHelper.HitTest method.
Thanks for the help,