@Override public void replaceNaNs(int semantics, double value) { addAttribute(semantics); if (isEmpty()) return; int ncomps = VertexDescription.getComponentCount(semantics); for (int i = 0; i < ncomps; i++) { Envelope1D interval = queryInterval(semantics, i); if (interval.isEmpty()) { interval.vmin = value; interval.vmax = value; setInterval(semantics, i, interval); } } }
void setAttributeAsDblImpl_(int end_point, int semantics, int ordinate, double value) { assert (end_point == 0 || end_point == 1); if (semantics == VertexDescription.Semantics.POSITION) { if (end_point != 0) { if (ordinate != 0) m_envelope.ymax = value; else m_envelope.xmax = value; } else { if (ordinate != 0) m_envelope.ymin = value; else m_envelope.xmin = value; } return; } int ncomps = VertexDescription.getComponentCount(semantics); if (ordinate >= ncomps) throw new IllegalArgumentException(); addAttribute(semantics); _ensureAttributes(); int attribute_index = m_description.getAttributeIndex(semantics); m_attributes[getEndPointOffset(m_description, end_point) + m_description.getPointAttributeOffset_(attribute_index) - 2 + ordinate] = value; }
void setAttributeAsDblImpl_(int end_point, int semantics, int ordinate, double value) { assert (end_point == 0 || end_point == 1); if (semantics == VertexDescription.Semantics.POSITION) { if (end_point != 0) { if (ordinate != 0) m_envelope.ymax = value; else m_envelope.xmax = value; } else { if (ordinate != 0) m_envelope.ymin = value; else m_envelope.xmin = value; } return; } int ncomps = VertexDescription.getComponentCount(semantics); if (ordinate >= ncomps) throw new IllegalArgumentException(); addAttribute(semantics); _ensureAttributes(); int attribute_index = m_description.getAttributeIndex(semantics); m_attributes[getEndPointOffset(m_description, end_point) + m_description.getPointAttributeOffset_(attribute_index) - 2 + ordinate] = value; }
@Override public void replaceNaNs(int semantics, double value) { addAttribute(semantics); if (isEmpty()) return; int ncomps = VertexDescription.getComponentCount(semantics); for (int i = 0; i < ncomps; i++) { Envelope1D interval = queryInterval(semantics, i); if (interval.isEmpty()) { interval.vmin = value; interval.vmax = value; setInterval(semantics, i, interval); } } }
return; addAttribute(semantics);
return; addAttribute(semantics);
bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID); bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID);
bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID); bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID);
bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID); bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID);
bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID); bbox.addAttribute(Semantics.Z); bbox.addAttribute(Semantics.M); bbox.addAttribute(Semantics.ID);
interval.vmin = z; interval.vmax = z; envelope.addAttribute(Semantics.Z); envelope.setInterval(Semantics.Z, 0, interval); interval.vmin = m; interval.vmax = m; envelope.addAttribute(Semantics.M); envelope.setInterval(Semantics.M, 0, interval); interval.vmin = id; interval.vmax = id; envelope.addAttribute(Semantics.ID); envelope.setInterval(Semantics.ID, 0, interval);
interval.vmin = z; interval.vmax = z; envelope.addAttribute(Semantics.Z); envelope.setInterval(Semantics.Z, 0, interval); interval.vmin = m; interval.vmax = m; envelope.addAttribute(Semantics.M); envelope.setInterval(Semantics.M, 0, interval); interval.vmin = id; interval.vmax = id; envelope.addAttribute(Semantics.ID); envelope.setInterval(Semantics.ID, 0, interval);