ArcGlobe in WPF

573
1
11-09-2010 09:34 PM
rohandontireddy
New Contributor
Iam trying to build WPF windows application using ArcGlobe Below is the code for ZoomIn functionality using Active View,zooming is working properly.but my need is i need to capture the Globe Extent but always im getting same values as -89,-179,-79,-169 as MinX,MinY,MaxX,MaxY respectively.

is there any other way to do this ?

  //Zoomin Code using Active View
            double vfa = 0;
            m_Camera = m_ActiveView.Camera;
            vfa = m_Camera.ViewFieldAngle;
            m_Camera.ViewFieldAngle = vfa * 0.9; //vfa * 1.1 for Zoomout
            m_ActiveView.Redraw(true);
                    
           IActiveView actview = globeControl.Globe as IActiveView;
           actview.Refresh();

            MinX = actview.Extent.XMin;
            MinY = actview.Extent.YMin;
            MaxX = actview.Extent.XMax;
            MaxY = actview.Extent.YMax;
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
I am not sure you will get many answers in this forum which is dedicated to the web client SL/WPF API.

Your issue looks more as an ArcObject/3DAnalyst issue.
I suggest you post your question in the ArcObjects forum (http://forums.arcgis.com/forums/20-ArcObjects-All-Development-Languages) or in the 3DAnalyst forum (http://forums.arcgis.com/forums/97-3D-Analyst)
0 Kudos