Class X3DMaterialType
- java.lang.Object
-
- net.opengis.gml.v_3_1_1.AbstractGMLType
-
- net.opengis.gml.v_3_1_1.AbstractFeatureType
-
- net.opengis.citygml.appearance.v_2_0.AbstractSurfaceDataType
-
- net.opengis.citygml.appearance.v_2_0.X3DMaterialType
-
- All Implemented Interfaces:
Cloneable,org.jvnet.jaxb.lang.CopyTo,org.jvnet.jaxb.lang.Equals,org.jvnet.jaxb.lang.HashCode,org.jvnet.jaxb.lang.MergeFrom,org.jvnet.jaxb.lang.ToString
public class X3DMaterialType extends AbstractSurfaceDataType implements Cloneable, org.jvnet.jaxb.lang.CopyTo, org.jvnet.jaxb.lang.Equals, org.jvnet.jaxb.lang.HashCode, org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
Class for defining constant surface properties. It is based on X3D's material definition. In addition, "isSmooth" provides a hint for value interpolation. The link to surface geometry is established via the "target"-property. Only gml:MultiSurface or decendants of gml:AbstractSurfaceType are valid targets.Java class for X3DMaterialType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="X3DMaterialType"> <complexContent> <extension base="{http://www.opengis.net/citygml/appearance/2.0}AbstractSurfaceDataType"> <sequence> <element name="ambientIntensity" type="{http://www.opengis.net/citygml/2.0}doubleBetween0and1" minOccurs="0"/> <element name="diffuseColor" type="{http://www.opengis.net/citygml/appearance/2.0}Color" minOccurs="0"/> <element name="emissiveColor" type="{http://www.opengis.net/citygml/appearance/2.0}Color" minOccurs="0"/> <element name="specularColor" type="{http://www.opengis.net/citygml/appearance/2.0}Color" minOccurs="0"/> <element name="shininess" type="{http://www.opengis.net/citygml/2.0}doubleBetween0and1" minOccurs="0"/> <element name="transparency" type="{http://www.opengis.net/citygml/2.0}doubleBetween0and1" minOccurs="0"/> <element name="isSmooth" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="target" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.opengis.net/citygml/appearance/2.0}_GenericApplicationPropertyOfX3DMaterial" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected DoubleambientIntensityprotected List<Double>diffuseColorprotected List<Double>emissiveColorprotected List<Object>genericApplicationPropertyOfX3DMaterialprotected BooleanisSmoothprotected Doubleshininessprotected List<Double>specularColorprotected List<String>targetprotected Doubletransparency-
Fields inherited from class net.opengis.citygml.appearance.v_2_0.AbstractSurfaceDataType
genericApplicationPropertyOfSurfaceData, isFront
-
Fields inherited from class net.opengis.gml.v_3_1_1.AbstractFeatureType
boundedBy, location
-
Fields inherited from class net.opengis.gml.v_3_1_1.AbstractGMLType
description, id, metaDataProperty, name
-
-
Constructor Summary
Constructors Constructor Description X3DMaterialType()Default no-arg constructorX3DMaterialType(Boolean isFront, List<Object> genericApplicationPropertyOfSurfaceData, Double ambientIntensity, List<Double> diffuseColor, List<Double> emissiveColor, List<Double> specularColor, Double shininess, Double transparency, Boolean isSmooth, List<String> target, List<Object> genericApplicationPropertyOfX3DMaterial)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderappend(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy)StringBuilderappendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy)Objectclone()ObjectcopyTo(Object target)ObjectcopyTo(org.jvnet.jaxb.locator.ObjectLocator locator, Object target, org.jvnet.jaxb.lang.CopyStrategy strategy)ObjectcreateNewInstance()booleanequals(Object object)booleanequals(org.jvnet.jaxb.locator.ObjectLocator thisLocator, org.jvnet.jaxb.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb.lang.EqualsStrategy strategy)DoublegetAmbientIntensity()Gets the value of the ambientIntensity property.List<Double>getDiffuseColor()Gets the value of the diffuseColor property.List<Double>getEmissiveColor()Gets the value of the emissiveColor property.List<Object>getGenericApplicationPropertyOfX3DMaterial()Gets the value of the genericApplicationPropertyOfX3DMaterial property.DoublegetShininess()Gets the value of the shininess property.List<Double>getSpecularColor()Gets the value of the specularColor property.List<String>getTarget()Gets the value of the target property.DoublegetTransparency()Gets the value of the transparency property.inthashCode()inthashCode(org.jvnet.jaxb.locator.ObjectLocator locator, org.jvnet.jaxb.lang.HashCodeStrategy strategy)BooleanisIsSmooth()Gets the value of the isSmooth property.booleanisSetAmbientIntensity()booleanisSetDiffuseColor()booleanisSetEmissiveColor()booleanisSetGenericApplicationPropertyOfX3DMaterial()booleanisSetIsSmooth()booleanisSetShininess()booleanisSetSpecularColor()booleanisSetTarget()booleanisSetTransparency()voidmergeFrom(Object left, Object right)voidmergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy)voidsetAmbientIntensity(Double value)Sets the value of the ambientIntensity property.voidsetDiffuseColor(List<Double> value)voidsetEmissiveColor(List<Double> value)voidsetGenericApplicationPropertyOfX3DMaterial(List<Object> value)voidsetIsSmooth(Boolean value)Sets the value of the isSmooth property.voidsetShininess(Double value)Sets the value of the shininess property.voidsetSpecularColor(List<Double> value)voidsetTarget(List<String> value)voidsetTransparency(Double value)Sets the value of the transparency property.StringtoString()voidunsetDiffuseColor()voidunsetEmissiveColor()voidunsetGenericApplicationPropertyOfX3DMaterial()voidunsetSpecularColor()voidunsetTarget()X3DMaterialTypewithAmbientIntensity(Double value)X3DMaterialTypewithDiffuseColor(Double... values)X3DMaterialTypewithDiffuseColor(Collection<Double> values)X3DMaterialTypewithDiffuseColor(List<Double> value)X3DMaterialTypewithEmissiveColor(Double... values)X3DMaterialTypewithEmissiveColor(Collection<Double> values)X3DMaterialTypewithEmissiveColor(List<Double> value)X3DMaterialTypewithGenericApplicationPropertyOfSurfaceData(Object... values)X3DMaterialTypewithGenericApplicationPropertyOfSurfaceData(Collection<Object> values)X3DMaterialTypewithGenericApplicationPropertyOfSurfaceData(List<Object> value)X3DMaterialTypewithGenericApplicationPropertyOfX3DMaterial(Object... values)X3DMaterialTypewithGenericApplicationPropertyOfX3DMaterial(Collection<Object> values)X3DMaterialTypewithGenericApplicationPropertyOfX3DMaterial(List<Object> value)X3DMaterialTypewithIsFront(Boolean value)X3DMaterialTypewithIsSmooth(Boolean value)X3DMaterialTypewithShininess(Double value)X3DMaterialTypewithSpecularColor(Double... values)X3DMaterialTypewithSpecularColor(Collection<Double> values)X3DMaterialTypewithSpecularColor(List<Double> value)X3DMaterialTypewithTarget(String... values)X3DMaterialTypewithTarget(Collection<String> values)X3DMaterialTypewithTarget(List<String> value)X3DMaterialTypewithTransparency(Double value)-
Methods inherited from class net.opengis.citygml.appearance.v_2_0.AbstractSurfaceDataType
getGenericApplicationPropertyOfSurfaceData, isIsFront, isSetGenericApplicationPropertyOfSurfaceData, isSetIsFront, setGenericApplicationPropertyOfSurfaceData, setIsFront, unsetGenericApplicationPropertyOfSurfaceData
-
Methods inherited from class net.opengis.gml.v_3_1_1.AbstractFeatureType
getBoundedBy, getLocation, isSetBoundedBy, isSetLocation, setBoundedBy, setLocation, withBoundedBy, withDescription, withId, withLocation, withMetaDataProperty, withMetaDataProperty, withMetaDataProperty, withName, withName, withName
-
Methods inherited from class net.opengis.gml.v_3_1_1.AbstractGMLType
getDescription, getId, getMetaDataProperty, getName, isSetDescription, isSetId, isSetMetaDataProperty, isSetName, setDescription, setId, setMetaDataProperty, setName, unsetMetaDataProperty, unsetName
-
-
-
-
Constructor Detail
-
X3DMaterialType
public X3DMaterialType()
Default no-arg constructor
-
X3DMaterialType
public X3DMaterialType(Boolean isFront, List<Object> genericApplicationPropertyOfSurfaceData, Double ambientIntensity, List<Double> diffuseColor, List<Double> emissiveColor, List<Double> specularColor, Double shininess, Double transparency, Boolean isSmooth, List<String> target, List<Object> genericApplicationPropertyOfX3DMaterial)
Fully-initialising value constructor
-
-
Method Detail
-
getAmbientIntensity
public Double getAmbientIntensity()
Gets the value of the ambientIntensity property.- Returns:
- possible object is
Double
-
setAmbientIntensity
public void setAmbientIntensity(Double value)
Sets the value of the ambientIntensity property.- Parameters:
value- allowed object isDouble
-
isSetAmbientIntensity
public boolean isSetAmbientIntensity()
-
getDiffuseColor
public List<Double> getDiffuseColor()
Gets the value of the diffuseColor property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the diffuseColor property.For example, to add a new item, do as follows:
getDiffuseColor().add(newItem);Objects of the following type(s) are allowed in the list
Double
-
isSetDiffuseColor
public boolean isSetDiffuseColor()
-
unsetDiffuseColor
public void unsetDiffuseColor()
-
getEmissiveColor
public List<Double> getEmissiveColor()
Gets the value of the emissiveColor property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the emissiveColor property.For example, to add a new item, do as follows:
getEmissiveColor().add(newItem);Objects of the following type(s) are allowed in the list
Double
-
isSetEmissiveColor
public boolean isSetEmissiveColor()
-
unsetEmissiveColor
public void unsetEmissiveColor()
-
getSpecularColor
public List<Double> getSpecularColor()
Gets the value of the specularColor property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the specularColor property.For example, to add a new item, do as follows:
getSpecularColor().add(newItem);Objects of the following type(s) are allowed in the list
Double
-
isSetSpecularColor
public boolean isSetSpecularColor()
-
unsetSpecularColor
public void unsetSpecularColor()
-
getShininess
public Double getShininess()
Gets the value of the shininess property.- Returns:
- possible object is
Double
-
setShininess
public void setShininess(Double value)
Sets the value of the shininess property.- Parameters:
value- allowed object isDouble
-
isSetShininess
public boolean isSetShininess()
-
getTransparency
public Double getTransparency()
Gets the value of the transparency property.- Returns:
- possible object is
Double
-
setTransparency
public void setTransparency(Double value)
Sets the value of the transparency property.- Parameters:
value- allowed object isDouble
-
isSetTransparency
public boolean isSetTransparency()
-
isIsSmooth
public Boolean isIsSmooth()
Gets the value of the isSmooth property.- Returns:
- possible object is
Boolean
-
setIsSmooth
public void setIsSmooth(Boolean value)
Sets the value of the isSmooth property.- Parameters:
value- allowed object isBoolean
-
isSetIsSmooth
public boolean isSetIsSmooth()
-
getTarget
public List<String> getTarget()
Gets the value of the target property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the target property.For example, to add a new item, do as follows:
getTarget().add(newItem);Objects of the following type(s) are allowed in the list
String
-
isSetTarget
public boolean isSetTarget()
-
unsetTarget
public void unsetTarget()
-
getGenericApplicationPropertyOfX3DMaterial
public List<Object> getGenericApplicationPropertyOfX3DMaterial()
Gets the value of the genericApplicationPropertyOfX3DMaterial property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the genericApplicationPropertyOfX3DMaterial property.For example, to add a new item, do as follows:
getGenericApplicationPropertyOfX3DMaterial().add(newItem);Objects of the following type(s) are allowed in the list
Object
-
isSetGenericApplicationPropertyOfX3DMaterial
public boolean isSetGenericApplicationPropertyOfX3DMaterial()
-
unsetGenericApplicationPropertyOfX3DMaterial
public void unsetGenericApplicationPropertyOfX3DMaterial()
-
toString
public String toString()
- Overrides:
toStringin classAbstractSurfaceDataType
-
append
public StringBuilder append(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy)
- Specified by:
appendin interfaceorg.jvnet.jaxb.lang.ToString- Overrides:
appendin classAbstractSurfaceDataType
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy)
- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb.lang.ToString- Overrides:
appendFieldsin classAbstractSurfaceDataType
-
equals
public boolean equals(org.jvnet.jaxb.locator.ObjectLocator thisLocator, org.jvnet.jaxb.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb.lang.EqualsStrategy strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb.lang.Equals- Overrides:
equalsin classAbstractSurfaceDataType
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classAbstractSurfaceDataType
-
hashCode
public int hashCode(org.jvnet.jaxb.locator.ObjectLocator locator, org.jvnet.jaxb.lang.HashCodeStrategy strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb.lang.HashCode- Overrides:
hashCodein classAbstractSurfaceDataType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractSurfaceDataType
-
clone
public Object clone()
- Overrides:
clonein classAbstractSurfaceDataType
-
copyTo
public Object copyTo(Object target)
- Specified by:
copyToin interfaceorg.jvnet.jaxb.lang.CopyTo- Overrides:
copyToin classAbstractSurfaceDataType
-
copyTo
public Object copyTo(org.jvnet.jaxb.locator.ObjectLocator locator, Object target, org.jvnet.jaxb.lang.CopyStrategy strategy)
- Specified by:
copyToin interfaceorg.jvnet.jaxb.lang.CopyTo- Overrides:
copyToin classAbstractSurfaceDataType
-
createNewInstance
public Object createNewInstance()
- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb.lang.CopyTo- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb.lang.MergeFrom
-
mergeFrom
public void mergeFrom(Object left, Object right)
- Specified by:
mergeFromin interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
mergeFromin classAbstractSurfaceDataType
-
mergeFrom
public void mergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy)- Specified by:
mergeFromin interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
mergeFromin classAbstractSurfaceDataType
-
setGenericApplicationPropertyOfX3DMaterial
public void setGenericApplicationPropertyOfX3DMaterial(List<Object> value)
-
withAmbientIntensity
public X3DMaterialType withAmbientIntensity(Double value)
-
withDiffuseColor
public X3DMaterialType withDiffuseColor(Double... values)
-
withDiffuseColor
public X3DMaterialType withDiffuseColor(Collection<Double> values)
-
withEmissiveColor
public X3DMaterialType withEmissiveColor(Double... values)
-
withEmissiveColor
public X3DMaterialType withEmissiveColor(Collection<Double> values)
-
withSpecularColor
public X3DMaterialType withSpecularColor(Double... values)
-
withSpecularColor
public X3DMaterialType withSpecularColor(Collection<Double> values)
-
withShininess
public X3DMaterialType withShininess(Double value)
-
withTransparency
public X3DMaterialType withTransparency(Double value)
-
withIsSmooth
public X3DMaterialType withIsSmooth(Boolean value)
-
withTarget
public X3DMaterialType withTarget(String... values)
-
withTarget
public X3DMaterialType withTarget(Collection<String> values)
-
withGenericApplicationPropertyOfX3DMaterial
public X3DMaterialType withGenericApplicationPropertyOfX3DMaterial(Object... values)
-
withGenericApplicationPropertyOfX3DMaterial
public X3DMaterialType withGenericApplicationPropertyOfX3DMaterial(Collection<Object> values)
-
withDiffuseColor
public X3DMaterialType withDiffuseColor(List<Double> value)
-
withEmissiveColor
public X3DMaterialType withEmissiveColor(List<Double> value)
-
withSpecularColor
public X3DMaterialType withSpecularColor(List<Double> value)
-
withTarget
public X3DMaterialType withTarget(List<String> value)
-
withGenericApplicationPropertyOfX3DMaterial
public X3DMaterialType withGenericApplicationPropertyOfX3DMaterial(List<Object> value)
-
withIsFront
public X3DMaterialType withIsFront(Boolean value)
- Overrides:
withIsFrontin classAbstractSurfaceDataType
-
withGenericApplicationPropertyOfSurfaceData
public X3DMaterialType withGenericApplicationPropertyOfSurfaceData(Object... values)
- Overrides:
withGenericApplicationPropertyOfSurfaceDatain classAbstractSurfaceDataType
-
withGenericApplicationPropertyOfSurfaceData
public X3DMaterialType withGenericApplicationPropertyOfSurfaceData(Collection<Object> values)
- Overrides:
withGenericApplicationPropertyOfSurfaceDatain classAbstractSurfaceDataType
-
withGenericApplicationPropertyOfSurfaceData
public X3DMaterialType withGenericApplicationPropertyOfSurfaceData(List<Object> value)
- Overrides:
withGenericApplicationPropertyOfSurfaceDatain classAbstractSurfaceDataType
-
-