Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Annotations.Rendering Namespace > AnnObjectRenderer Class : GetRenderPoints Method |
public virtual LeadPointD[] GetRenderPoints( AnnContainerMapper mapper, AnnObject annObject )
'Declaration
Public Overridable Function GetRenderPoints( _ ByVal mapper As AnnContainerMapper, _ ByVal annObject As AnnObject _ ) As LeadPointD()
'Usage
Dim instance As AnnObjectRenderer Dim mapper As AnnContainerMapper Dim annObject As AnnObject Dim value() As LeadPointD value = instance.GetRenderPoints(mapper, annObject)
public virtual LeadPointD[] GetRenderPoints( AnnContainerMapper mapper, AnnObject annObject )
- (LTLeadPointCollection *)getRenderPointsMapper:(LTAnnContainerMapper *)mapper object:(LTAnnObject *)annObject
public LeadPointD[] getRenderPoints(AnnContainerMapper mapper, AnnObject annObject)
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.