Package org.vast.sensorML.sampling
Class ViewingFrustum
- All Implemented Interfaces:
Serializable,AbstractFeature,AbstractGML,IFeature,IResource
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doublestatic final QNamestatic final QNamestatic final QNamestatic final StringFields inherited from class org.vast.sensorML.sampling.ParametricSamplingFeature
pose, PROP_POSE, SML_NS_PREFIX, SML_NS_URI, TYPE_URI_PREFIXFields inherited from class org.vast.ogc.om.SamplingFeature
FTYPE, hostedProcedure, PROP_HOSTED_PROCEDURE, PROP_SAMPLED_FEATURE, PROP_SHAPE, PROP_TYPE, QNAME, sampledFeature, SAMS_NS_PREFIX, SAMS_NS_URI, SF_NS_PREFIX, SF_NS_URI, typeFields inherited from class org.vast.ogc.gml.ExtensibleFeatureImpl
propertiesFields inherited from class net.opengis.gml.v32.impl.AbstractFeatureImpl
boundedBy, locationFields inherited from class net.opengis.gml.v32.impl.AbstractGMLImpl
description, descriptionReference, id, identifier, metaDataPropertyList, nameList, UUID_CODEFields inherited from interface org.vast.ogc.gml.IFeature
DEFAULT_QNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(com.google.common.collect.ImmutableMap.Builder<QName, Object> builder) doubledoublegetFov()doublevoidsetAspectRatio(double val) Sets the aspect ratio of the frustumvoidsetFov(double fov) Sets the FOV of the frustumvoidsetFov(double hfov, double vfov) Sets separate horizontal and vertical FOV for the frustumvoidsetLength(double val) Sets the length of the frustumMethods inherited from class org.vast.sensorML.sampling.ParametricSamplingFeature
getPose, setPoseMethods inherited from class org.vast.ogc.om.SamplingFeature
getAsSpecializedType, getHostedProcedureUID, getQName, getSampledFeature, getSfType, getShape, getType, hasCustomGeomProperty, setHostedProcedureUID, setSampledFeature, setSampledFeature, setSfType, setShapeMethods inherited from class org.vast.ogc.gml.ExtensibleFeatureImpl
getPropertiesMethods inherited from class net.opengis.gml.v32.impl.AbstractFeatureImpl
equals, getBoundedBy, getGeometry, getGeometryProperty, hashCode, isSetBoundedBy, isSetGeometry, setBoundedByAsEnvelope, setGeometryMethods inherited from class net.opengis.gml.v32.impl.AbstractGMLImpl
addName, getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataPropertyList, getName, getNameList, getNumNames, getUniqueIdentifier, isSetDescription, isSetDescriptionReference, isSetIdentifier, setDescription, setDescriptionReference, setId, setIdentifier, setName, setUniqueIdentifierMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.opengis.gml.v32.AbstractGML
addName, getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataPropertyList, getName, getNameList, getNumNames, getUniqueIdentifier, isSetDescription, isSetDescriptionReference, isSetIdentifier, setDescription, setDescriptionReference, setId, setIdentifier, setName, setUniqueIdentifierMethods inherited from interface org.vast.ogc.gml.IFeature
getId, getUniqueIdentifier, getValidTime, hasCustomTimePropertyMethods inherited from interface org.vast.util.IResource
getDescription, getName
-
Field Details
-
TYPE
- See Also:
-
PROP_FOV
-
PROP_ASPECT_RATIO
-
PROP_LENGTH
-
fov
protected double fov -
aspectRatio
protected double aspectRatio -
length
protected double length
-
-
Constructor Details
-
ViewingFrustum
public ViewingFrustum()
-
-
Method Details
-
setFov
public void setFov(double fov) Sets the FOV of the frustum- Parameters:
fov- in degrees
-
setFov
public void setFov(double hfov, double vfov) Sets separate horizontal and vertical FOV for the frustum- Parameters:
hfov- in degreesvfov- in degrees
-
getFov
public double getFov()- Returns:
- The (horizontal) FOV in degrees
-
setAspectRatio
public void setAspectRatio(double val) Sets the aspect ratio of the frustum- Parameters:
val- aspect ratio (unitless)
-
getAspectRatio
public double getAspectRatio()- Returns:
- The aspect ratio of the frustum
-
setLength
public void setLength(double val) Sets the length of the frustum- Parameters:
val- length in meters
-
getLength
public double getLength()- Returns:
- The length of the frustum
-
appendProperties
protected void appendProperties(com.google.common.collect.ImmutableMap.Builder<QName, Object> builder) - Overrides:
appendPropertiesin classParametricSamplingFeature<Point>
-