Class Draw

    • Field Detail

      • ptList

        private javajs.util.P3[] ptList
      • offset

        private javajs.util.V3 offset
      • nPoints

        private int nPoints
      • diameter

        private int diameter
      • width

        private float width
      • newScale

        private float newScale
      • length

        private float length
      • isCurve

        private boolean isCurve
      • isArc

        private boolean isArc
      • isArrow

        private boolean isArrow
      • isLine

        private boolean isLine
      • isVector

        private boolean isVector
      • isCircle

        private boolean isCircle
      • isPerpendicular

        private boolean isPerpendicular
      • isCylinder

        private boolean isCylinder
      • isVertices

        private boolean isVertices
      • isPlane

        private boolean isPlane
      • isReversed

        private boolean isReversed
      • isRotated45

        private boolean isRotated45
      • isCrossed

        private boolean isCrossed
      • isValid

        private boolean isValid
      • noHead

        private boolean noHead
      • isBarb

        private boolean isBarb
      • indicatedModelIndex

        private int indicatedModelIndex
      • modelInfo

        private int[] modelInfo
      • makePoints

        private boolean makePoints
      • plane

        private javajs.util.P4 plane
      • bsAllModels

        private BS bsAllModels
      • polygon

        private javajs.util.Lst<java.lang.Object> polygon
      • vData

        private javajs.util.Lst<java.lang.Object[]> vData
      • intersectID

        private java.lang.String intersectID
      • boundBox

        private javajs.util.P3[] boundBox
      • lineData

        private javajs.util.Lst<javajs.util.P3[]> lineData
      • vAB

        private final javajs.util.V3 vAB
      • MAX_OBJECT_CLICK_DISTANCE_SQUARED

        private static final int MAX_OBJECT_CLICK_DISTANCE_SQUARED
        See Also:
        Constant Field Values
      • ptXY

        private final javajs.util.P3i ptXY
    • Constructor Detail

      • Draw

        public Draw()
    • Method Detail

      • setPropertySuper

        private void setPropertySuper​(java.lang.String propertyName,
                                      java.lang.Object value,
                                      BS bs)
      • setProperty

        public void setProperty​(java.lang.String propertyName,
                                java.lang.Object value,
                                BS bs)
        Specified by:
        setProperty in class Shape
      • addPoints

        private void addPoints​(int type,
                               java.lang.Object value)
      • deleteModels

        private void deleteModels​(int modelIndex)
      • deleteMeshElement

        private void deleteMeshElement​(int i)
      • initDraw

        private void initDraw()
      • getPropertyData

        public boolean getPropertyData​(java.lang.String property,
                                       java.lang.Object[] data)
        Overrides:
        getPropertyData in class Shape
        Returns:
        true if serviced
      • getProperty

        public java.lang.Object getProperty​(java.lang.String property,
                                            int index)
        Overrides:
        getProperty in class Shape
        Returns:
        true if serviced
      • getSpinCenter

        private javajs.util.T3 getSpinCenter​(java.lang.String axisID,
                                             int vertexIndex,
                                             int modelIndex)
      • getSpinAxis

        private javajs.util.V3 getSpinAxis​(java.lang.String axisID,
                                           int modelIndex)
      • setDrawing

        private boolean setDrawing​(int[] connections)
      • addPoint

        private void addPoint​(javajs.util.T3 newPt,
                              int iModel)
      • setPoints

        private boolean setPoints​(int iModel,
                                  int n)
      • setPolygon

        private void setPolygon​(int nPoly)
      • scale

        private void scale​(Mesh mesh,
                           float newScale)
      • setAxes

        private static final void setAxes​(DrawMesh m)
      • checkObjectClicked

        public java.util.Map<java.lang.String,​java.lang.Object> checkObjectClicked​(int x,
                                                                                         int y,
                                                                                         int action,
                                                                                         BS bsVisible,
                                                                                         boolean drawPicking)
        Overrides:
        checkObjectClicked in class Shape
        drawPicking - TODO
        Returns:
        Hashtable containing information about pt clicked
      • checkObjectHovered

        public boolean checkObjectHovered​(int x,
                                          int y,
                                          BS bsVisible)
        Overrides:
        checkObjectHovered in class Shape
        Returns:
        T/F
      • checkObjectDragged

        public boolean checkObjectDragged​(int prevX,
                                          int prevY,
                                          int x,
                                          int y,
                                          int dragAction,
                                          BS bsVisible)
        Overrides:
        checkObjectDragged in class Shape
        Returns:
        T/F
      • move2D

        private void move2D​(DrawMesh mesh,
                            int[] vertexes,
                            int iVertex,
                            int x,
                            int y,
                            boolean moveAll)
      • findPickedObject

        private boolean findPickedObject​(int x,
                                         int y,
                                         boolean isPicking,
                                         BS bsVisible)
        Parameters:
        x -
        y -
        isPicking - IGNORED
        bsVisible -
        Returns:
        true if found
      • getCommand

        private java.lang.String getCommand​(Mesh mesh)
      • getCommand2

        private java.lang.String getCommand2​(Mesh mesh,
                                             int iModel)
      • isPolygonDisplayable

        public static boolean isPolygonDisplayable​(Mesh mesh,
                                                   int i)
      • getVertexList

        private static java.lang.String getVertexList​(DrawMesh mesh,
                                                      int iModel,
                                                      int nVertices)
      • getShapeDetail

        public java.lang.Object getShapeDetail()
        Overrides:
        getShapeDetail in class Shape
      • getShapeState

        public java.lang.String getShapeState()
        Specified by:
        getShapeState in class Shape
      • randomPoint

        public static javajs.util.P3 randomPoint()