-(void) renderMapper:(LTAnnContainerMapper*) mapper
The mapper object to use for converting coordinates. This value must not be null.
The object to render. This value must not be null.
This method is called by the framework to render an object. The IAnnObjectRenderer class is a base class and does not have any information on how to render an annObject. Thus the Render method is an abstract method. Derived classes such as the rectangle renderer class or the polyline renderer class implements the Render method to do the actual rendering of the object.
For example, the rectangle renderer class will implements this method as follows:
These points are in container coordinates, therefore, mapper.PointsFromContainerCoordinates is called to convert these points to physical coordinates.
The AnnRenderingEngine.Context property contains the destination context to render to. The renderer creates a closed path on this context for the rectangle shape. Note that the rectangle object can be rotated and hence the points returned in step 2 above are the 4 edges of the rectangle in its current transformation (top left, top right, right bottom and left bottom). This is why the renderer draws a path instead of a rectangle.
Note that if a state rendering engine is used (such as SVG or XAML rendering engine), then the engine will first call AddObject when the object is added before any Render calls. The engine will call RemoveObject when the object is removed.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries