<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Displaying Feature with Text or changing feature extent in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/displaying-feature-with-text-or-changing-feature/m-p/657790#M17688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to display some text with features and I have created a new C++ class that implements the IFeatureRenderer to do this.&amp;nbsp; In the Draw method, I access additional fields from the features found by the FeatureCursor and I explicitly call display-&amp;gt;DrawText to display up to 6 text strings where I want and with the necessary size and color.&amp;nbsp; Because I am using an inMemoryWorkspaceFactory, I cannot use the standard annotation features.&amp;nbsp; Other text approaches that I have taken, don't seem to work well, including dynamic display layers.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that when I call IScreen-&amp;gt;Invalidate() to force ArcEngine to redisplay specific areas, the spatialQuery that is used to find the features that need to be refreshed, don't always find the features associated with the text that I am drawing.&amp;nbsp; Therefore the screen is left blank where some of the text is normally drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have thought about extending the IFeatureClass with IFeatureClassExtensions but I don't think that will solve the problem since the spatial query is using the shape stored in the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could try to change the geometry stored in the feature class to be a simple rectangle that contains the bounding box of my text but the text is drawn at a constant size, so the geometry will grow or shrink based on the zoom level.&amp;nbsp; That would mean that on every zoom, I would need to recalculate each feature's bounding box which seems very inefficient.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 22:43:45 GMT</pubDate>
    <dc:creator>GarySchneir</dc:creator>
    <dc:date>2010-04-16T22:43:45Z</dc:date>
    <item>
      <title>Displaying Feature with Text or changing feature extent</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/displaying-feature-with-text-or-changing-feature/m-p/657790#M17688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to display some text with features and I have created a new C++ class that implements the IFeatureRenderer to do this.&amp;nbsp; In the Draw method, I access additional fields from the features found by the FeatureCursor and I explicitly call display-&amp;gt;DrawText to display up to 6 text strings where I want and with the necessary size and color.&amp;nbsp; Because I am using an inMemoryWorkspaceFactory, I cannot use the standard annotation features.&amp;nbsp; Other text approaches that I have taken, don't seem to work well, including dynamic display layers.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that when I call IScreen-&amp;gt;Invalidate() to force ArcEngine to redisplay specific areas, the spatialQuery that is used to find the features that need to be refreshed, don't always find the features associated with the text that I am drawing.&amp;nbsp; Therefore the screen is left blank where some of the text is normally drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have thought about extending the IFeatureClass with IFeatureClassExtensions but I don't think that will solve the problem since the spatial query is using the shape stored in the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could try to change the geometry stored in the feature class to be a simple rectangle that contains the bounding box of my text but the text is drawn at a constant size, so the geometry will grow or shrink based on the zoom level.&amp;nbsp; That would mean that on every zoom, I would need to recalculate each feature's bounding box which seems very inefficient.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 22:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/displaying-feature-with-text-or-changing-feature/m-p/657790#M17688</guid>
      <dc:creator>GarySchneir</dc:creator>
      <dc:date>2010-04-16T22:43:45Z</dc:date>
    </item>
  </channel>
</rss>

