←Select platform

GetRenderPoints Method

Summary

Gets the points that must be rendered for this object.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public virtual LeadPointD[] GetRenderPoints( 
   AnnContainerMapper mapper, 
   AnnObject annObject 
) 
Public Overridable Function GetRenderPoints( _ 
   ByVal mapper As Leadtools.Annotations.Core.AnnContainerMapper, _ 
   ByVal annObject As Leadtools.Annotations.Core.AnnObject _ 
) As Leadtools.LeadPointD() 
public virtual [Leadtools.LeadPointD[]](../l/leadpointd.md) GetRenderPoints(  
   Leadtools.Annotations.Core.AnnContainerMapper mapper, 
   Leadtools.Annotations.Core.AnnObject annObject 
) 
- (LTLeadPointCollection *)getRenderPointsMapper:(LTAnnContainerMapper *)mapper object:(LTAnnObject *)annObject 
public LeadPointD[] getRenderPoints(AnnContainerMapper mapper, AnnObject annObject) 
             
 function Leadtools.Annotations.Rendering.AnnObjectRenderer.GetRenderPoints(  
   mapper , 
   annObject  
) 
public:  
   virtual array<LeadPointD^>^ GetRenderPoints( 
      AnnContainerMapper^ mapper, 
      AnnObject^ annObject 
   ) 

Parameters

mapper
The mapper object to use for converting coordinates.

annObject
The object to render.

Return Value

An array of points to render.

Remarks

This method is called by the renderer to get the points of the objects. The default implementation in this class returns the same points as AnnObject.Points. The renderer then draws a polyline or polygon of these points and strokes and fills it to draw the object.

This implementation is enough for simple objects such as a line or a rectangle and the type renderer will just use this default implementation and not override this behavior. If you have a more complex shape where the number of points to render is not the same as AnnObject.Points, then you can override this method to return your own set of points.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly