Class MaterialType
- java.lang.Object
-
- net.opengis.gml.v_3_1_1.AbstractGMLType
-
- net.opengis.citygml.texturedsurface.v_2_0.AbstractAppearanceType
-
- net.opengis.citygml.texturedsurface.v_2_0.MaterialType
-
- 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 MaterialType extends AbstractAppearanceType 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
Deprecated since CityGML version 0.4.0. Use the concepts of the CityGML Appearance module instead. Adopted from X3D standard (http://www.web3d.org/x3d/)Java class for MaterialType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MaterialType"> <complexContent> <extension base="{http://www.opengis.net/citygml/texturedsurface/2.0}AbstractAppearanceType"> <sequence> <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="ambientIntensity" type="{http://www.opengis.net/citygml/2.0}doubleBetween0and1" minOccurs="0"/> <element name="specularColor" type="{http://www.opengis.net/citygml/texturedsurface/2.0}Color" minOccurs="0"/> <element name="diffuseColor" type="{http://www.opengis.net/citygml/texturedsurface/2.0}Color" minOccurs="0"/> <element name="emissiveColor" type="{http://www.opengis.net/citygml/texturedsurface/2.0}Color" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected DoubleambientIntensityprotected List<Double>diffuseColorprotected List<Double>emissiveColorprotected Doubleshininessprotected List<Double>specularColorprotected Doubletransparency-
Fields inherited from class net.opengis.gml.v_3_1_1.AbstractGMLType
description, id, metaDataProperty, name
-
-
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.DoublegetShininess()Gets the value of the shininess property.List<Double>getSpecularColor()Gets the value of the specularColor property.DoublegetTransparency()Gets the value of the transparency property.inthashCode()inthashCode(org.jvnet.jaxb.locator.ObjectLocator locator, org.jvnet.jaxb.lang.HashCodeStrategy strategy)booleanisSetAmbientIntensity()booleanisSetDiffuseColor()booleanisSetEmissiveColor()booleanisSetShininess()booleanisSetSpecularColor()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)voidsetShininess(Double value)Sets the value of the shininess property.voidsetSpecularColor(List<Double> value)voidsetTransparency(Double value)Sets the value of the transparency property.StringtoString()voidunsetDiffuseColor()voidunsetEmissiveColor()voidunsetSpecularColor()MaterialTypewithAmbientIntensity(Double value)MaterialTypewithDiffuseColor(Double... values)MaterialTypewithDiffuseColor(Collection<Double> values)MaterialTypewithDiffuseColor(List<Double> value)MaterialTypewithEmissiveColor(Double... values)MaterialTypewithEmissiveColor(Collection<Double> values)MaterialTypewithEmissiveColor(List<Double> value)MaterialTypewithShininess(Double value)MaterialTypewithSpecularColor(Double... values)MaterialTypewithSpecularColor(Collection<Double> values)MaterialTypewithSpecularColor(List<Double> value)MaterialTypewithTransparency(Double value)-
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, withDescription, withId, withMetaDataProperty, withMetaDataProperty, withMetaDataProperty, withName, withName, withName
-
-
-
-
Method Detail
-
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()
-
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()
-
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()
-
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()
-
toString
public String toString()
- Overrides:
toStringin classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractAppearanceType
-
clone
public Object clone()
- Overrides:
clonein classAbstractAppearanceType
-
copyTo
public Object copyTo(Object target)
- Specified by:
copyToin interfaceorg.jvnet.jaxb.lang.CopyTo- Overrides:
copyToin classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
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 classAbstractAppearanceType
-
withShininess
public MaterialType withShininess(Double value)
-
withTransparency
public MaterialType withTransparency(Double value)
-
withAmbientIntensity
public MaterialType withAmbientIntensity(Double value)
-
withSpecularColor
public MaterialType withSpecularColor(Double... values)
-
withSpecularColor
public MaterialType withSpecularColor(Collection<Double> values)
-
withDiffuseColor
public MaterialType withDiffuseColor(Double... values)
-
withDiffuseColor
public MaterialType withDiffuseColor(Collection<Double> values)
-
withEmissiveColor
public MaterialType withEmissiveColor(Double... values)
-
withEmissiveColor
public MaterialType withEmissiveColor(Collection<Double> values)
-
withSpecularColor
public MaterialType withSpecularColor(List<Double> value)
-
withDiffuseColor
public MaterialType withDiffuseColor(List<Double> value)
-
withEmissiveColor
public MaterialType withEmissiveColor(List<Double> value)
-
-