We used 3DTools (http://3dtools.codeplex.com) to draw a 3d line, it allows user rotate it by mouse. I have question, how to limit user can rotate it on Z axis only? or on X axis, Y axis only?
<tool:TrackballDecorator >
<tool:Interactive3DDecorator
ContainsInk="True">
<Viewport3D>
<Viewport3D.Camera>
<PerspectiveCamera x:Name="camera1" Position="4.89,-11,5" LookDirection="-4.89,11,-5"
FieldOfView="45" UpDirection="-4,9,-1"/>
</Viewport3D.Camera>
<ModelVisual3D x:Name="modelVisual3D">
<ModelVisual3D.Children>
<tool:ScreenSpaceLines3D x:Name="axisX" Color="Cyan"
Thickness="2.0"
Points="0, 0, 0, 5, 0, 0" />
<tool:ScreenSpaceLines3D Color="LightCyan"
Thickness="2.0"
Points="-5, 0, 0, 0, 0, 0" />
<tool:ScreenSpaceLines3D x:Name="axisY" Color="Green"
Thickness="2.0"
Points="0,0,0, 0,5,0"/>
<tool:ScreenSpaceLines3D Color="LightGreen"
Thickness="2.0"
Points="0,-5,0, 0,0,0"/>
<tool:ScreenSpaceLines3D x:Name="axisZ" Color="Red"
Thickness="2.0"
Points="0,0,0, 0,0,5"/>
<tool:ScreenSpaceLines3D Color="LightPink"
Thickness="2.0"
Points="0,0,-5, 0,0,0"/>
</ModelVisual3D.Children>
</ModelVisual3D>
</Viewport3D>
</tool:Interactive3DDecorator>
</tool:TrackballDecorator>