当前位置: 首页>>代码示例>>Java>>正文


Java ItemVisitor.visitItem方法代码示例

本文整理汇总了Java中com.vividsolutions.jts.index.ItemVisitor.visitItem方法的典型用法代码示例。如果您正苦于以下问题:Java ItemVisitor.visitItem方法的具体用法?Java ItemVisitor.visitItem怎么用?Java ItemVisitor.visitItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vividsolutions.jts.index.ItemVisitor的用法示例。


在下文中一共展示了ItemVisitor.visitItem方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: query

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
private void query(Object searchBounds, AbstractNode node, ItemVisitor visitor) {
    List childBoundables = node.getChildBoundables();
    for (Object childBoundable1 : childBoundables) {
        Boundable childBoundable = (Boundable) childBoundable1;
        if (!this.getIntersectsOp().intersects(childBoundable.getBounds(), searchBounds)) {
            continue;
        }
        if (childBoundable instanceof AbstractNode) {
            this.query(searchBounds, (AbstractNode) childBoundable, visitor);
        } else if (childBoundable instanceof ItemBoundable) {
            visitor.visitItem(((ItemBoundable) childBoundable).getItem());
        } else {
            Assert.shouldNeverReachHere();
        }
    }
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:17,代码来源:AbstractSTRtree.java

示例2: query

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
private void query(Object searchBounds, AbstractNode node, ItemVisitor visitor) {
    List childBoundables = node.getChildBoundables();
    for (int i = 0; i < childBoundables.size(); i++) {
        Boundable childBoundable = (Boundable) childBoundables.get(i);
        if (!getIntersectsOp().intersects(childBoundable.getBounds(), searchBounds)) {
            continue;
        }
        if (childBoundable instanceof AbstractNode) {
            query(searchBounds, (AbstractNode) childBoundable, visitor);
        } else if (childBoundable instanceof ItemBoundable) {
            visitor.visitItem(((ItemBoundable) childBoundable).getItem());
        } else {
            Assert.shouldNeverReachHere();
        }
    }
}
 
开发者ID:Semantive,项目名称:jts,代码行数:17,代码来源:AbstractSTRtree.java

示例3: query

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
private void query(Object searchBounds, AbstractNode node, ItemVisitor visitor) {
  List childBoundables = node.getChildBoundables();
  for (int i = 0; i < childBoundables.size(); i++) {
    Boundable childBoundable = (Boundable) childBoundables.get(i);
    if (! getIntersectsOp().intersects(childBoundable.getBounds(), searchBounds)) {
      continue;
    }
    if (childBoundable instanceof AbstractNode) {
      query(searchBounds, (AbstractNode) childBoundable, visitor);
    }
    else if (childBoundable instanceof ItemBoundable) {
      visitor.visitItem(((ItemBoundable)childBoundable).getItem());
    }
    else {
      Assert.shouldNeverReachHere();
    }
  }
}
 
开发者ID:GitHubDroid,项目名称:geodroid_master_update,代码行数:19,代码来源:AbstractSTRtree.java

示例4: query

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
@Override
public void query(double queryMin, double queryMax, ItemVisitor visitor) {
    if (!this.intersects(queryMin, queryMax)) {
        return;
    }

    visitor.visitItem(this.item);
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:9,代码来源:IntervalRTreeLeafNode.java

示例5: visitItems

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
private void visitItems(Envelope searchEnv, ItemVisitor visitor)
{
  // would be nice to filter items based on search envelope, but can't until they contain an envelope
  for (Iterator i = items.iterator(); i.hasNext(); ) {
    visitor.visitItem(i.next());
  }
}
 
开发者ID:GitHubDroid,项目名称:geodroid_master_update,代码行数:8,代码来源:NodeBase.java

示例6: visitItems

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
private void visitItems(Envelope searchEnv, ItemVisitor visitor) {
    // would be nice to filter items based on search envelope, but can't until they contain an envelope
    for (Object item : items) {
        visitor.visitItem(item);
    }
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:7,代码来源:NodeBase.java

示例7: query

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
public void query(double queryMin, double queryMax, ItemVisitor visitor) {
    if (!intersects(queryMin, queryMax))
        return;

    visitor.visitItem(item);
}
 
开发者ID:Semantive,项目名称:jts,代码行数:7,代码来源:IntervalRTreeLeafNode.java

示例8: visitItems

import com.vividsolutions.jts.index.ItemVisitor; //导入方法依赖的package包/类
private void visitItems(Envelope searchEnv, ItemVisitor visitor) {
    // would be nice to filter items based on search envelope, but can't until they contain an envelope
    for (Iterator i = items.iterator(); i.hasNext(); ) {
        visitor.visitItem(i.next());
    }
}
 
开发者ID:Semantive,项目名称:jts,代码行数:7,代码来源:NodeBase.java


注:本文中的com.vividsolutions.jts.index.ItemVisitor.visitItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。