AGI STK Esri Display 11 Send comments on this topic.
DrawPause Method (IAgEsri3dRenderer)
See Also  Example





Description

Pauses drawing immediately.

Syntax

[Visual Basic .NET]
Public Sub DrawPause() 

[C#]
public void DrawPause();

[Managed C++]
public: void DrawPause();

[Java]
public  drawPause();

[Unmanaged C++]
public: HRESULT DrawPause();

Remarks

Temporarily suspend the rendering operations in the GIS thread. Use this method to improve the performance of several consecutive calls into the GIS thread. The number of calls to DrawPause and DrawResume must match.

Example

[C#] Copy Code
m_Renderer.DrawPause(); 
m_ListView.BeginUpdate(); 
for (int i = 0; i < rowObj.Row.Fields.FieldCount; ++i) 

    IField field = rowObj.Row.Fields.get_Field(i); 
    m_SelectedFeature = rowObj.Row as IFeature; 
    String[] fields = new String[2]; 
    fields[0] = field.Name; 
    if (field.Name.ToUpper().Equals("SHAPE")) 
    { 
        fields[1] = m_SelectedFeature.Shape.GeometryType.ToString(); 
         
    } 
    else 
    { 
        fields[1] = m_SelectedFeature.get_Value(m_SelectedFeature.Class.FindField(field.Name)).ToString(); 
        if (field.Name.ToUpper().Equals("OBJECTID")) 
        { 
            m_SelectedOID = int.Parse(fields[1]); 
        } 
    } 
    m_ListView.Items.Add(new ListViewItem(fields)); 
 

m_ListView.EndUpdate(); 
m_Renderer.DrawResume(); 

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1