glsl_setparam_simple.java

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

JAVA
1,941
字号
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new glsl_float4x4(getDomNodeValue(curNode));
	}

	public glsl_float4x4 getfloat4x4() throws Exception 
 {
		return getfloat4x4At(0);
	}

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

	public void removefloat4x4() {
		removefloat4x4At(0);
	}

	public org.w3c.dom.Node addfloat4x4(glsl_float4x4 value) {
		if( value.isNull() )
			return null;

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

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

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

	public void insertfloat4x4At(String value, int index) throws Exception {
		insertfloat4x4At(new glsl_float4x4(value), index);
	}

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

	public void replacefloat4x4At(String value, int index) throws Exception {
		replacefloat4x4At(new glsl_float4x4(value), index);
	}

	public static int getint2MinCount() {
		return 1;
	}

	public static int getint2MaxCount() {
		return 1;
	}

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

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

	public glsl_int newint2() {
		return new glsl_int();
	}

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

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

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

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

	public glsl_int getint2() throws Exception 
 {
		return getint2At(0);
	}

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

	public void removeint2() {
		removeint2At(0);
	}

	public org.w3c.dom.Node addint2(glsl_int value) {
		if( value.isNull() )
			return null;

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

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

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

	public void insertint2At(String value, int index) throws Exception {
		insertint2At(new glsl_int(value), index);
	}

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

	public void replaceint2At(String value, int index) throws Exception {
		replaceint2At(new glsl_int(value), index);
	}

	public static int getint22MinCount() {
		return 1;
	}

	public static int getint22MaxCount() {
		return 1;
	}

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

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

	public glsl_int2 newint22() {
		return new glsl_int2();
	}

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

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

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

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

	public glsl_int2 getint22() throws Exception 
 {
		return getint22At(0);
	}

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

	public void removeint22() {
		removeint22At(0);
	}

	public org.w3c.dom.Node addint22(glsl_int2 value) {
		if( value.isNull() )
			return null;

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

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

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

	public void insertint22At(String value, int index) throws Exception {
		insertint22At(new glsl_int2(value), index);
	}

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

	public void replaceint22At(String value, int index) throws Exception {
		replaceint22At(new glsl_int2(value), index);
	}

	public static int getint3MinCount() {
		return 1;
	}

	public static int getint3MaxCount() {
		return 1;
	}

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

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

	public glsl_int3 newint3() {
		return new glsl_int3();
	}

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

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

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

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

	public glsl_int3 getint3() throws Exception 
 {
		return getint3At(0);
	}

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

	public void removeint3() {
		removeint3At(0);
	}

	public org.w3c.dom.Node addint3(glsl_int3 value) {
		if( value.isNull() )
			return null;

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

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

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

	public void insertint3At(String value, int index) throws Exception {
		insertint3At(new glsl_int3(value), index);
	}

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

	public void replaceint3At(String value, int index) throws Exception {
		replaceint3At(new glsl_int3(value), index);
	}

	public static int getint4MinCount() {
		return 1;
	}

	public static int getint4MaxCount() {
		return 1;
	}

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

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

	public glsl_int4 newint4() {
		return new glsl_int4();
	}

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

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

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

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

	public glsl_int4 getint4() throws Exception 
 {
		return getint4At(0);
	}

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

	public void removeint4() {
		removeint4At(0);
	}

	public org.w3c.dom.Node addint4(glsl_int4 value) {
		if( value.isNull() )
			return null;

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

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

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

	public void insertint4At(String value, int index) throws Exception {
		insertint4At(new glsl_int4(value), index);
	}

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

	public void replaceint4At(String value, int index) throws Exception {
		replaceint4At(new glsl_int4(value), index);
	}

	public static int getsurfaceMinCount() {
		return 1;
	}

	public static int getsurfaceMaxCount() {
		return 1;
	}

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

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

	public glsl_surface_type newsurface() {
		return new glsl_surface_type(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "surface"));
	}

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

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

⌨️ 快捷键说明

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