Interface Model

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Shape calculateModelCenter​(int localX, int localY, int plane, int extraHeight, int orientation)  
      boolean contains​(java.awt.Point point, int localX, int localY, int plane, int extraHeight, int orientation)  
      void draw​(java.awt.Graphics2D g2d, int localX, int localY, int plane, int extraHeight, int orientation)  
      java.awt.Point getCentralPoint​(int localX, int localY, int plane, int extraHeight, int orientation)
      Calculates a central point using visible model points.
      java.awt.Shape getConvexHull​(int localX, int localY, int plane, int extraHeight, int orientation)  
      ModelCenter getModelCenter​(int orientation)  
      int getModelHeight()  
      int getModelId()
      Unique hash of the model using the color and triangles.
      java.awt.Point getRandomPoint​(int localX, int localY, int plane, int extraHeight, int orientation)  
      java.awt.Point getRealCentralPoint​(int localX, int localY, int plane, int extraHeight, int orientation)
      Calculates a central point using visible and non-visible (off-screen or behind UI) model points.
      boolean isSingleTile()  
      Model update​(APIContext ctx)  
    • Method Detail

      • getConvexHull

        java.awt.Shape getConvexHull​(int localX,
                                     int localY,
                                     int plane,
                                     int extraHeight,
                                     int orientation)
      • calculateModelCenter

        java.awt.Shape calculateModelCenter​(int localX,
                                            int localY,
                                            int plane,
                                            int extraHeight,
                                            int orientation)
      • getCentralPoint

        java.awt.Point getCentralPoint​(int localX,
                                       int localY,
                                       int plane,
                                       int extraHeight,
                                       int orientation)
        Calculates a central point using visible model points.
        Parameters:
        localX -
        localY -
        plane -
        extraHeight -
        orientation -
        Returns:
        Point
      • getRealCentralPoint

        java.awt.Point getRealCentralPoint​(int localX,
                                           int localY,
                                           int plane,
                                           int extraHeight,
                                           int orientation)
        Calculates a central point using visible and non-visible (off-screen or behind UI) model points.
        Parameters:
        localX -
        localY -
        plane -
        extraHeight -
        orientation -
        Returns:
        Point
      • getRandomPoint

        java.awt.Point getRandomPoint​(int localX,
                                      int localY,
                                      int plane,
                                      int extraHeight,
                                      int orientation)
      • contains

        boolean contains​(java.awt.Point point,
                         int localX,
                         int localY,
                         int plane,
                         int extraHeight,
                         int orientation)
      • getModelId

        int getModelId()
        Unique hash of the model using the color and triangles.
        Returns:
        unique model id
      • getModelHeight

        int getModelHeight()
      • isSingleTile

        boolean isSingleTile()
      • getModelCenter

        ModelCenter getModelCenter​(int orientation)
      • draw

        void draw​(java.awt.Graphics2D g2d,
                  int localX,
                  int localY,
                  int plane,
                  int extraHeight,
                  int orientation)