com.azalient.api.draw
Interface IRenderer


public interface IRenderer

Implement this interface and then register the implementer with IWindow to cause your object to be called for drawing during the main screen refresh

See Also:
IWindow.addRenderer(IRenderer renderer)

Method Summary
 void instrumentView(IDrawing drw)
          This method will be called when the Open GL context has been set and the matrix mode has been set to GL_PROJECTION.
 void viewModel(IDrawing drw)
          This method will be called when the Open GL context has been set and the matrix mode has been set to GL_MODELVIEW.
 

Method Detail

viewModel

void viewModel(IDrawing drw)
This method will be called when the Open GL context has been set and the matrix mode has been set to GL_MODELVIEW. That is, this method is used to draw objects in the model (or world) co-ordinates. This method is equivalent to viewModel(drw) in the ViewModel event used in plugins

See Also:
ModelEventViewModel.viewModel(IDrawing)

instrumentView

void instrumentView(IDrawing drw)
This method will be called when the Open GL context has been set and the matrix mode has been set to GL_PROJECTION. That is, this method is used to draw objects in the screen (or instrument) co-ordinates. The projection matrix is set so that the screen area has the co-ordinate space (0.0, 0.0) to (1.0, 1.0), thus the point (0.5, 0.5) will be in the centre of the screen. This mode of drawing is intended for drawing a map legend. This method is equivalent to viewLegend(drw) in the ViewLegend event used in plugins

See Also:
ModelEventViewLegend.viewLegend(IDrawing)