public virtual void renderPendingMeasurement(PendingMeasurement pendingMeasurement)
		{
			int count = pendingMeasurement.count;
			int[] countPlusIndices = pendingMeasurement.countPlusIndices;
			if (!pendingMeasurement.isActive || count < 2)
				return ;
            //short colixRubberband = viewer.ColixRubberband;
            //if (countPlusIndices[count] == - 1)
            //    renderPendingWithCursor(pendingMeasurement, colixRubberband);
            //else
            //    renderMeasurement(pendingMeasurement, colixRubberband);
		}
        public virtual void renderPendingWithCursor(PendingMeasurement pendingMeasurement, short colixRubberband)
		{
			int count = pendingMeasurement.count;
			if (count < 2)
				return ;
			if (count > 2)
				renderMeasurement(count - 1, pendingMeasurement, colixRubberband, false);
			Atom atomLast = frame.getAtomAt(pendingMeasurement.countPlusIndices[count - 1]);
			int lastZ = atomLast.ScreenZ - atomLast.ScreenD - 10;
            //drawSegment(atomLast.ScreenX, atomLast.ScreenY, lastZ, viewer.CursorX, viewer.CursorY, 0, colixRubberband);
		}
Beispiel #3
0
        //public Font3D font3d;

        public override void initShape()
		{
			pendingMeasurement = new PendingMeasurement(frame);
            //font3d = g3d.getFont3D(JmolConstants.MEASURE_DEFAULT_FONTSIZE);
		}