Package org.vast.sensorML.sampling
Class ViewingFrustum
- All Implemented Interfaces:
Serializable
,AbstractFeature
,AbstractGML
,IFeature
,IResource
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected double
static final QName
static final QName
static final QName
static final String
Fields inherited from class org.vast.sensorML.sampling.ParametricSamplingFeature
pose, PROP_POSE, SML_NS_PREFIX, SML_NS_URI, TYPE_URI_PREFIX
Fields 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, type
Fields inherited from class org.vast.ogc.gml.ExtensibleFeatureImpl
properties
Fields inherited from class net.opengis.gml.v32.impl.AbstractFeatureImpl
boundedBy, location
Fields inherited from class net.opengis.gml.v32.impl.AbstractGMLImpl
description, descriptionReference, id, identifier, metaDataPropertyList, nameList, UUID_CODE
Fields inherited from interface org.vast.ogc.gml.IFeature
DEFAULT_QNAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(com.google.common.collect.ImmutableMap.Builder<QName, Object> builder) double
double
getFov()
double
void
setAspectRatio
(double val) Sets the aspect ratio of the frustumvoid
setFov
(double fov) Sets the FOV of the frustumvoid
setFov
(double hfov, double vfov) Sets separate horizontal and vertical FOV for the frustumvoid
setLength
(double val) Sets the length of the frustumMethods inherited from class org.vast.sensorML.sampling.ParametricSamplingFeature
getPose, setPose
Methods inherited from class org.vast.ogc.om.SamplingFeature
getAsSpecializedType, getHostedProcedureUID, getQName, getSampledFeature, getSfType, getShape, getType, hasCustomGeomProperty, setHostedProcedureUID, setSampledFeature, setSampledFeature, setSfType, setShape
Methods inherited from class org.vast.ogc.gml.ExtensibleFeatureImpl
getProperties
Methods inherited from class net.opengis.gml.v32.impl.AbstractFeatureImpl
equals, getBoundedBy, getGeometry, getGeometryProperty, hashCode, isSetBoundedBy, isSetGeometry, setBoundedByAsEnvelope, setGeometry
Methods 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, setUniqueIdentifier
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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, setUniqueIdentifier
Methods inherited from interface org.vast.ogc.gml.IFeature
getId, getUniqueIdentifier, getValidTime, hasCustomTimeProperty
Methods 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:
appendProperties
in classParametricSamplingFeature<Point>
-