本文整理汇总了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();
}
}
}
示例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();
}
}
}
示例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();
}
}
}
示例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);
}
示例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());
}
}
示例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);
}
}
示例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);
}
示例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());
}
}