glsl_newparam.java

来自「java 3d game jme 工程开发源代码」· Java 代码 · 共 1,940 行 · 第 1/5 页

JAVA
1,940
字号
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "semantic" );
	}

	public org.w3c.dom.Node getAdvancedsemanticCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "semantic", curNode );
	}

	public SchemaNCName getsemanticValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new SchemaNCName(getDomNodeValue(curNode));
	}

	public SchemaNCName getsemantic() throws Exception 
 {
		return getsemanticAt(0);
	}

	public void removesemanticAt(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "semantic", index);
	}

	public void removesemantic() {
		removesemanticAt(0);
	}

	public org.w3c.dom.Node addsemantic(SchemaNCName value) {
		if( value.isNull() )
			return null;

		return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "semantic", value.toString());
	}

	public org.w3c.dom.Node addsemantic(String value) throws Exception {
		return addsemantic(new SchemaNCName(value));
	}

	public void insertsemanticAt(SchemaNCName value, int index) {
		insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "semantic", index, value.toString());
	}

	public void insertsemanticAt(String value, int index) throws Exception {
		insertsemanticAt(new SchemaNCName(value), index);
	}

	public void replacesemanticAt(SchemaNCName value, int index) {
		replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "semantic", index, value.toString());
	}

	public void replacesemanticAt(String value, int index) throws Exception {
		replacesemanticAt(new SchemaNCName(value), index);
	}

	public static int getmodifierMinCount() {
		return 0;
	}

	public static int getmodifierMaxCount() {
		return 1;
	}

	public int getmodifierCount() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier");
	}

	public boolean hasmodifier() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier");
	}

	public fx_modifier_enum_common newmodifier() {
		return new fx_modifier_enum_common();
	}

	public fx_modifier_enum_common getmodifierAt(int index) throws Exception {
		return new fx_modifier_enum_common(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier", index)));
	}

	public org.w3c.dom.Node getStartingmodifierCursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier" );
	}

	public org.w3c.dom.Node getAdvancedmodifierCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier", curNode );
	}

	public fx_modifier_enum_common getmodifierValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new fx_modifier_enum_common(getDomNodeValue(curNode));
	}

	public fx_modifier_enum_common getmodifier() throws Exception 
 {
		return getmodifierAt(0);
	}

	public void removemodifierAt(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier", index);
	}

	public void removemodifier() {
		removemodifierAt(0);
	}

	public org.w3c.dom.Node addmodifier(fx_modifier_enum_common value) {
		if( value.isNull() )
			return null;

		return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier", value.toString());
	}

	public org.w3c.dom.Node addmodifier(String value) throws Exception {
		return addmodifier(new fx_modifier_enum_common(value));
	}

	public void insertmodifierAt(fx_modifier_enum_common value, int index) {
		insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier", index, value.toString());
	}

	public void insertmodifierAt(String value, int index) throws Exception {
		insertmodifierAt(new fx_modifier_enum_common(value), index);
	}

	public void replacemodifierAt(fx_modifier_enum_common value, int index) {
		replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modifier", index, value.toString());
	}

	public void replacemodifierAt(String value, int index) throws Exception {
		replacemodifierAt(new fx_modifier_enum_common(value), index);
	}

	public static int getboolMinCount() {
		return 1;
	}

	public static int getboolMaxCount() {
		return 1;
	}

	public int getboolCount() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool");
	}

	public boolean hasbool() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool");
	}

	public glsl_bool newbool() {
		return new glsl_bool();
	}

	public glsl_bool getboolAt(int index) throws Exception {
		return new glsl_bool(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool", index)));
	}

	public org.w3c.dom.Node getStartingboolCursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool" );
	}

	public org.w3c.dom.Node getAdvancedboolCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "bool", curNode );
	}

	public glsl_bool getboolValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new glsl_bool(getDomNodeValue(curNode));
	}

	public glsl_bool getbool() throws Exception 
 {
		return getboolAt(0);
	}

	public void removeboolAt(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool", index);
	}

	public void removebool() {
		removeboolAt(0);
	}

	public org.w3c.dom.Node addbool(glsl_bool value) {
		if( value.isNull() )
			return null;

		return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool", value.toString());
	}

	public org.w3c.dom.Node addbool(String value) throws Exception {
		return addbool(new glsl_bool(value));
	}

	public void insertboolAt(glsl_bool value, int index) {
		insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool", index, value.toString());
	}

	public void insertboolAt(String value, int index) throws Exception {
		insertboolAt(new glsl_bool(value), index);
	}

	public void replaceboolAt(glsl_bool value, int index) {
		replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool", index, value.toString());
	}

	public void replaceboolAt(String value, int index) throws Exception {
		replaceboolAt(new glsl_bool(value), index);
	}

	public static int getbool2MinCount() {
		return 1;
	}

	public static int getbool2MaxCount() {
		return 1;
	}

	public int getbool2Count() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2");
	}

	public boolean hasbool2() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2");
	}

	public glsl_bool2 newbool2() {
		return new glsl_bool2();
	}

	public glsl_bool2 getbool2At(int index) throws Exception {
		return new glsl_bool2(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2", index)));
	}

	public org.w3c.dom.Node getStartingbool2Cursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2" );
	}

	public org.w3c.dom.Node getAdvancedbool2Cursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2", curNode );
	}

	public glsl_bool2 getbool2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new glsl_bool2(getDomNodeValue(curNode));
	}

	public glsl_bool2 getbool2() throws Exception 
 {
		return getbool2At(0);
	}

	public void removebool2At(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2", index);
	}

	public void removebool2() {
		removebool2At(0);
	}

	public org.w3c.dom.Node addbool2(glsl_bool2 value) {
		if( value.isNull() )
			return null;

		return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2", value.toString());
	}

	public org.w3c.dom.Node addbool2(String value) throws Exception {
		return addbool2(new glsl_bool2(value));
	}

	public void insertbool2At(glsl_bool2 value, int index) {
		insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2", index, value.toString());
	}

	public void insertbool2At(String value, int index) throws Exception {
		insertbool2At(new glsl_bool2(value), index);
	}

	public void replacebool2At(glsl_bool2 value, int index) {
		replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool2", index, value.toString());
	}

	public void replacebool2At(String value, int index) throws Exception {
		replacebool2At(new glsl_bool2(value), index);
	}

	public static int getbool3MinCount() {
		return 1;
	}

	public static int getbool3MaxCount() {
		return 1;
	}

	public int getbool3Count() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3");
	}

	public boolean hasbool3() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3");
	}

	public glsl_bool3 newbool3() {
		return new glsl_bool3();
	}

	public glsl_bool3 getbool3At(int index) throws Exception {
		return new glsl_bool3(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3", index)));
	}

	public org.w3c.dom.Node getStartingbool3Cursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3" );
	}

	public org.w3c.dom.Node getAdvancedbool3Cursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3", curNode );
	}

	public glsl_bool3 getbool3ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new glsl_bool3(getDomNodeValue(curNode));
	}

	public glsl_bool3 getbool3() throws Exception 
 {
		return getbool3At(0);
	}

	public void removebool3At(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3", index);
	}

	public void removebool3() {
		removebool3At(0);
	}

	public org.w3c.dom.Node addbool3(glsl_bool3 value) {
		if( value.isNull() )
			return null;

		return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3", value.toString());
	}

	public org.w3c.dom.Node addbool3(String value) throws Exception {
		return addbool3(new glsl_bool3(value));
	}

	public void insertbool3At(glsl_bool3 value, int index) {
		insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3", index, value.toString());
	}

	public void insertbool3At(String value, int index) throws Exception {
		insertbool3At(new glsl_bool3(value), index);
	}

	public void replacebool3At(glsl_bool3 value, int index) {
		replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool3", index, value.toString());
	}

	public void replacebool3At(String value, int index) throws Exception {
		replacebool3At(new glsl_bool3(value), index);
	}

	public static int getbool4MinCount() {
		return 1;
	}

	public static int getbool4MaxCount() {
		return 1;
	}

	public int getbool4Count() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4");
	}

	public boolean hasbool4() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4");
	}

	public glsl_bool4 newbool4() {
		return new glsl_bool4();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?