/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.gml.xml.v311;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* A gridded surface is a parametric curve
* surface derived from a rectangular grid in the parameter
* space. The rows from this grid are control points for
* horizontal surface curves; the columns are control points
* for vertical surface curves. The working assumption is that
* for a pair of parametric co-ordinates (s, t) that the
* horizontal curves for each integer offset are calculated
* and evaluated at "s". The defines a sequence of control
* points:
*
* cn(s) : s 1 .....columns
*
* From this sequence a vertical curve is calculated for "s",
* and evaluated at "t". In most cases, the order of
* calculation (horizontal-vertical vs. vertical-horizontal)
* does not make a difference. Where it does, the horizontal-
* vertical order shall be the one used.
*
* Logically, any pair of curve interpolation types can lead
* to a subtype of GriddedSurface. The following clauses
* define some most commonly encountered surfaces that can
* be represented in this manner.
*
* <p>Java class for AbstractGriddedSurfaceType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AbstractGriddedSurfaceType">
* <complexContent>
* <extension base="{http://www.opengis.net/gml}AbstractParametricCurveSurfaceType">
* <sequence>
* <group ref="{http://www.opengis.net/gml}PointGrid"/>
* <element name="rows" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="columns" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractGriddedSurfaceType", propOrder = {
"row",
"rows",
"columns"
})
@XmlSeeAlso({
ConeType.class,
CylinderType.class,
SphereType.class
})
public class AbstractGriddedSurfaceType extends AbstractParametricCurveSurfaceType {
@XmlElement(required = true)
private List<AbstractGriddedSurfaceType.Row> row;
private Integer rows;
private Integer columns;
/**
* Gets the value of the row property.
*
* Objects of the following type(s) are allowed in the list
* {@link AbstractGriddedSurfaceType.Row }
*/
public List<AbstractGriddedSurfaceType.Row> getRow() {
if (row == null) {
row = new ArrayList<AbstractGriddedSurfaceType.Row>();
}
return this.row;
}
/**
* Gets the value of the rows property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getRows() {
return rows;
}
/**
* Sets the value of the rows property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setRows(final Integer value) {
this.rows = value;
}
/**
* Gets the value of the columns property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getColumns() {
return columns;
}
/**
* Sets the value of the columns property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setColumns(final Integer value) {
this.columns = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.opengis.net/gml}geometricPositionListGroup"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"posList",
"geometricPositionGroup"
})
public static class Row {
private DirectPositionListType posList;
@XmlElements({
@XmlElement(name = "pointProperty", type = PointPropertyType.class),
@XmlElement(name = "pos", type = DirectPositionType.class)
})
private List<Object> geometricPositionGroup;
/**
* Gets the value of the posList property.
*
* @return
* possible object is
* {@link DirectPositionListType }
*
*/
public DirectPositionListType getPosList() {
return posList;
}
/**
* Sets the value of the posList property.
*
* @param value
* allowed object is
* {@link DirectPositionListType }
*
*/
public void setPosList(final DirectPositionListType value) {
this.posList = value;
}
/**
* Gets the value of the geometricPositionGroup property.
*
* Objects of the following type(s) are allowed in the list
* {@link PointPropertyType }
* {@link DirectPositionType }
*
*/
public List<Object> getGeometricPositionGroup() {
if (geometricPositionGroup == null) {
geometricPositionGroup = new ArrayList<Object>();
}
return this.geometricPositionGroup;
}
}
}