org.citygml4j.impl.gml.geometry.primitives
Class LineStringImpl

java.lang.Object
  extended by org.citygml4j.impl.gml.base.AbstractGMLImpl
      extended by org.citygml4j.impl.gml.geometry.AbstractGeometryImpl
          extended by org.citygml4j.impl.gml.geometry.primitives.AbstractGeometricPrimitiveImpl
              extended by org.citygml4j.impl.gml.geometry.primitives.AbstractCurveImpl
                  extended by org.citygml4j.impl.gml.geometry.primitives.LineStringImpl
All Implemented Interfaces:
Associable, ModelObject, Child, Copyable, AbstractGML, StandardObjectProperties, AbstractGeometry, AbstractCurve, AbstractGeometricPrimitive, LineString, SRSInformationGroup, SRSReferenceGroup, GML

public class LineStringImpl
extends AbstractCurveImpl
implements LineString


Constructor Summary
LineStringImpl()
           
 
Method Summary
<T> T
accept(GeometryFunctor<T> visitor)
           
 void accept(GeometryVisitor visitor)
           
<T> T
accept(GMLFunctor<T> visitor)
           
 void accept(GMLVisitor visitor)
           
 void addControlPoint(PosOrPointPropertyOrPointRepOrCoord controlPoint)
           
 void addCoord(Coord coord)
           
 void addPointProperty(PointProperty pointProperty)
           
 void addPointRep(PointRep pointRep)
           
 void addPos(DirectPosition pos)
           
 BoundingBox calcBoundingBox()
           
 java.lang.Object copy(CopyBuilder copyBuilder)
           
 java.lang.Object copyTo(java.lang.Object target, CopyBuilder copyBuilder)
           
 Coordinates getCoordinates()
           
 GMLClass getGMLClass()
           
 DirectPositionList getPosList()
           
 java.util.List<PosOrPointPropertyOrPointRepOrCoord> getPosOrPointPropertyOrPointRepOrCoord()
           
 boolean isSetCoordinates()
           
 boolean isSetPosList()
           
 boolean isSetPosOrPointPropertyOrPointRepOrCoord()
           
 void setCoordinates(Coordinates coordinates)
           
 void setPosList(DirectPositionList posList)
           
 void setPosOrPointPropertyOrPointRepOrCoord(java.util.List<PosOrPointPropertyOrPointRepOrCoord> controlPoints)
           
 java.util.List<java.lang.Double> toList3d()
           
 java.util.List<java.lang.Double> toList3d(boolean reverseOrder)
           
 boolean unsetCoord(Coord coord)
           
 void unsetCoordinates()
           
 boolean unsetPointProperty(PointProperty pointProperty)
           
 boolean unsetPointRep(PointRep pointRep)
           
 boolean unsetPos(DirectPosition pos)
           
 void unsetPosList()
           
 void unsetPosOrPointPropertyOrPointRepOrCoord()
           
 boolean unsetPosOrPointPropertyOrPointRepOrCoord(PosOrPointPropertyOrPointRepOrCoord controlPoint)
           
 
Methods inherited from class org.citygml4j.impl.gml.geometry.AbstractGeometryImpl
addAxisLabel, addUomLabel, getAxisLabels, getGid, getSrsDimension, getSrsName, getUomLabels, isSetAxisLabels, isSetGid, isSetSrsDimension, isSetSrsName, isSetUomLabels, setAxisLabels, setGid, setSrsDimension, setSrsName, setUomLabels, unsetAxisLabels, unsetAxisLabels, unsetGid, unsetSrsDimension, unsetSrsName, unsetUomLabels, unsetUomLabels
 
Methods inherited from class org.citygml4j.impl.gml.base.AbstractGMLImpl
addMetaDataProperty, addName, getDescription, getId, getMetaDataProperty, getModelType, getName, getParent, isSetDescription, isSetId, isSetMetaDataProperty, isSetName, isSetParent, setDescription, setId, setMetaDataProperty, setName, setParent, unsetDescription, unsetId, unsetMetaDataProperty, unsetMetaDataProperty, unsetName, unsetName, unsetParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.citygml4j.model.gml.geometry.AbstractGeometry
getGid, isSetGid, setGid, unsetGid
 
Methods inherited from interface org.citygml4j.model.gml.base.AbstractGML
getId, isSetId, setId, unsetId
 
Methods inherited from interface org.citygml4j.model.gml.base.StandardObjectProperties
addMetaDataProperty, addName, getDescription, getMetaDataProperty, getName, isSetDescription, isSetMetaDataProperty, isSetName, setDescription, setMetaDataProperty, setName, unsetDescription, unsetMetaDataProperty, unsetMetaDataProperty, unsetName, unsetName
 
Methods inherited from interface org.citygml4j.model.common.child.Child
getParent, isSetParent, setParent, unsetParent
 
Methods inherited from interface org.citygml4j.model.gml.geometry.SRSReferenceGroup
getSrsDimension, getSrsName, isSetSrsDimension, isSetSrsName, setSrsDimension, setSrsName, unsetSrsDimension, unsetSrsName
 
Methods inherited from interface org.citygml4j.model.gml.geometry.SRSInformationGroup
addAxisLabel, addUomLabel, getAxisLabels, getUomLabels, isSetAxisLabels, isSetUomLabels, setAxisLabels, setUomLabels, unsetAxisLabels, unsetAxisLabels, unsetUomLabels, unsetUomLabels
 

Constructor Detail

LineStringImpl

public LineStringImpl()
Method Detail

calcBoundingBox

public BoundingBox calcBoundingBox()
Specified by:
calcBoundingBox in interface AbstractGeometry

getGMLClass

public GMLClass getGMLClass()
Specified by:
getGMLClass in interface GML
Overrides:
getGMLClass in class AbstractGMLImpl

addCoord

public void addCoord(Coord coord)
Specified by:
addCoord in interface LineString

addPointProperty

public void addPointProperty(PointProperty pointProperty)
Specified by:
addPointProperty in interface LineString

addPointRep

public void addPointRep(PointRep pointRep)
Specified by:
addPointRep in interface LineString

addPos

public void addPos(DirectPosition pos)
Specified by:
addPos in interface LineString

addControlPoint

public void addControlPoint(PosOrPointPropertyOrPointRepOrCoord controlPoint)
Specified by:
addControlPoint in interface LineString

getCoordinates

public Coordinates getCoordinates()
Specified by:
getCoordinates in interface LineString

getPosList

public DirectPositionList getPosList()
Specified by:
getPosList in interface LineString

getPosOrPointPropertyOrPointRepOrCoord

public java.util.List<PosOrPointPropertyOrPointRepOrCoord> getPosOrPointPropertyOrPointRepOrCoord()
Specified by:
getPosOrPointPropertyOrPointRepOrCoord in interface LineString

isSetCoordinates

public boolean isSetCoordinates()
Specified by:
isSetCoordinates in interface LineString

isSetPosList

public boolean isSetPosList()
Specified by:
isSetPosList in interface LineString

isSetPosOrPointPropertyOrPointRepOrCoord

public boolean isSetPosOrPointPropertyOrPointRepOrCoord()
Specified by:
isSetPosOrPointPropertyOrPointRepOrCoord in interface LineString

setCoordinates

public void setCoordinates(Coordinates coordinates)
Specified by:
setCoordinates in interface LineString

setPosList

public void setPosList(DirectPositionList posList)
Specified by:
setPosList in interface LineString

setPosOrPointPropertyOrPointRepOrCoord

public void setPosOrPointPropertyOrPointRepOrCoord(java.util.List<PosOrPointPropertyOrPointRepOrCoord> controlPoints)
Specified by:
setPosOrPointPropertyOrPointRepOrCoord in interface LineString

toList3d

public java.util.List<java.lang.Double> toList3d()
Specified by:
toList3d in interface LineString

toList3d

public java.util.List<java.lang.Double> toList3d(boolean reverseOrder)
Specified by:
toList3d in interface LineString

unsetCoordinates

public void unsetCoordinates()
Specified by:
unsetCoordinates in interface LineString

unsetPosList

public void unsetPosList()
Specified by:
unsetPosList in interface LineString

unsetPosOrPointPropertyOrPointRepOrCoord

public void unsetPosOrPointPropertyOrPointRepOrCoord()
Specified by:
unsetPosOrPointPropertyOrPointRepOrCoord in interface LineString

unsetPosOrPointPropertyOrPointRepOrCoord

public boolean unsetPosOrPointPropertyOrPointRepOrCoord(PosOrPointPropertyOrPointRepOrCoord controlPoint)
Specified by:
unsetPosOrPointPropertyOrPointRepOrCoord in interface LineString

unsetCoord

public boolean unsetCoord(Coord coord)
Specified by:
unsetCoord in interface LineString

unsetPointProperty

public boolean unsetPointProperty(PointProperty pointProperty)
Specified by:
unsetPointProperty in interface LineString

unsetPointRep

public boolean unsetPointRep(PointRep pointRep)
Specified by:
unsetPointRep in interface LineString

unsetPos

public boolean unsetPos(DirectPosition pos)
Specified by:
unsetPos in interface LineString

copyTo

public java.lang.Object copyTo(java.lang.Object target,
                               CopyBuilder copyBuilder)
Specified by:
copyTo in interface Copyable
Overrides:
copyTo in class AbstractGeometryImpl

copy

public java.lang.Object copy(CopyBuilder copyBuilder)
Specified by:
copy in interface Copyable

accept

public void accept(GeometryVisitor visitor)
Specified by:
accept in interface AbstractGeometry

accept

public <T> T accept(GeometryFunctor<T> visitor)
Specified by:
accept in interface AbstractGeometry

accept

public void accept(GMLVisitor visitor)
Specified by:
accept in interface AbstractGML

accept

public <T> T accept(GMLFunctor<T> visitor)
Specified by:
accept in interface AbstractGML