⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cg_setparam_simple.java

📁 java 3d game jme 工程开发源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "fixed4x2" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "fixed4x2", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "fixed4x3" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "fixed4x3", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "fixed4x4" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "fixed4x4", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_surface_type(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler1D" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler1D", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_sampler1D(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler2D" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler2D", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_sampler2D(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler3D" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler3D", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_sampler3D(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "samplerRECT" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "samplerRECT", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_samplerRECT(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "samplerCUBE" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "samplerCUBE", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_samplerCUBE(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "samplerDEPTH" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "samplerDEPTH", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new cg_samplerDEPTH(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "string" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "string", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "enum" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "enum", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
		}
	}
	public void setXsiType() {
 		org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
		el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "cg_setparam_simple");
	}

	public static int getrefMinCount() {
		return 1;
	}

	public static int getrefMaxCount() {
		return 1;
	}

	public int getrefCount() {
		return getDomChildCount(Attribute, null, "ref");
	}

	public boolean hasref() {
		return hasDomChild(Attribute, null, "ref");
	}

	public cg_identifier newref() {
		return new cg_identifier();
	}

	public cg_identifier getrefAt(int index) throws Exception {
		return new cg_identifier(getDomNodeValue(getDomChildAt(Attribute, null, "ref", index)));
	}

	public org.w3c.dom.Node getStartingrefCursor() throws Exception {
		return getDomFirstChild(Attribute, null, "ref" );
	}

	public org.w3c.dom.Node getAdvancedrefCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Attribute, null, "ref", curNode );
	}

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

	public cg_identifier getref() throws Exception 
 {
		return getrefAt(0);
	}

	public void removerefAt(int index) {
		removeDomChildAt(Attribute, null, "ref", index);
	}

	public void removeref() {
		removerefAt(0);
	}

	public org.w3c.dom.Node addref(cg_identifier value) {
		if( value.isNull() )
			return null;

		return  appendDomChild(Attribute, null, "ref", value.toString());
	}

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

	public void insertrefAt(cg_identifier value, int index) {
		insertDomChildAt(Attribute, null, "ref", index, value.toString());
	}

	public void insertrefAt(String value, int index) throws Exception {
		insertrefAt(new cg_identifier(value), index);
	}

	public void replacerefAt(cg_identifier value, int index) {
		replaceDomChildAt(Attribute, null, "ref", index, value.toString());
	}

	public void replacerefAt(String value, int index) throws Exception {
		replacerefAt(new cg_identifier(value), index);
	}

	public static int getannotateMinCount() {
		return 0;
	}

	public static int getannotateMaxCount() {
		return Integer.MAX_VALUE;
	}

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

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

	public fx_annotate_common newannotate() {
		return new fx_annotate_common(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "annotate"));
	}

	public fx_annotate_common getannotateAt(int index) throws Exception {
		return new fx_annotate_common(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate", index));
	}

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

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

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

	public fx_annotate_common getannotate() throws Exception 
 {
		return getannotateAt(0);
	}

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

	public void removeannotate() {
		while (hasannotate())
			removeannotateAt(0);
	}

	public org.w3c.dom.Node addannotate(fx_annotate_common value) {
		return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "annotate", value);
	}

	public void insertannotateAt(fx_annotate_common value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "annotate", index, value);
	}

	public void replaceannotateAt(fx_annotate_common value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "annotate", index, value);
	}

	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 cg_bool newbool() {
		return new cg_bool();
	}

	public cg_bool getboolAt(int index) throws Exception {
		return new cg_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 cg_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 cg_bool(getDomNodeValue(curNode));
	}

	public cg_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(cg_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 cg_bool(value));
	}

	public void insertboolAt(cg_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 cg_bool(value), index);
	}

	public void replaceboolAt(cg_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 cg_bool(value), index);
	}

	public static int getbool1MinCount() {
		return 1;
	}

	public static int getbool1MaxCount() {
		return 1;
	}

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

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

	public cg_bool1 newbool1() {
		return new cg_bool1();
	}

	public cg_bool1 getbool1At(int index) throws Exception {

⌨️ 快捷键说明

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