glsl_newparam.java
来自「java 3d game jme 工程开发源代码」· Java 代码 · 共 1,940 行 · 第 1/5 页
JAVA
1,940 行
}
public glsl_bool4 getbool4At(int index) throws Exception {
return new glsl_bool4(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4", index)));
}
public org.w3c.dom.Node getStartingbool4Cursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4" );
}
public org.w3c.dom.Node getAdvancedbool4Cursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4", curNode );
}
public glsl_bool4 getbool4ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new glsl_bool4(getDomNodeValue(curNode));
}
public glsl_bool4 getbool4() throws Exception
{
return getbool4At(0);
}
public void removebool4At(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4", index);
}
public void removebool4() {
removebool4At(0);
}
public org.w3c.dom.Node addbool4(glsl_bool4 value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4", value.toString());
}
public org.w3c.dom.Node addbool4(String value) throws Exception {
return addbool4(new glsl_bool4(value));
}
public void insertbool4At(glsl_bool4 value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4", index, value.toString());
}
public void insertbool4At(String value, int index) throws Exception {
insertbool4At(new glsl_bool4(value), index);
}
public void replacebool4At(glsl_bool4 value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "bool4", index, value.toString());
}
public void replacebool4At(String value, int index) throws Exception {
replacebool4At(new glsl_bool4(value), index);
}
public static int getfloat2MinCount() {
return 1;
}
public static int getfloat2MaxCount() {
return 1;
}
public int getfloat2Count() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "float");
}
public boolean hasfloat2() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float");
}
public glsl_float newfloat2() {
return new glsl_float();
}
public glsl_float getfloat2At(int index) throws Exception {
return new glsl_float(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float", index)));
}
public org.w3c.dom.Node getStartingfloat2Cursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float" );
}
public org.w3c.dom.Node getAdvancedfloat2Cursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "float", curNode );
}
public glsl_float getfloat2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new glsl_float(getDomNodeValue(curNode));
}
public glsl_float getfloat2() throws Exception
{
return getfloat2At(0);
}
public void removefloat2At(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float", index);
}
public void removefloat2() {
removefloat2At(0);
}
public org.w3c.dom.Node addfloat2(glsl_float value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float", value.toString());
}
public org.w3c.dom.Node addfloat2(String value) throws Exception {
return addfloat2(new glsl_float(value));
}
public void insertfloat2At(glsl_float value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float", index, value.toString());
}
public void insertfloat2At(String value, int index) throws Exception {
insertfloat2At(new glsl_float(value), index);
}
public void replacefloat2At(glsl_float value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float", index, value.toString());
}
public void replacefloat2At(String value, int index) throws Exception {
replacefloat2At(new glsl_float(value), index);
}
public static int getfloat22MinCount() {
return 1;
}
public static int getfloat22MaxCount() {
return 1;
}
public int getfloat22Count() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2");
}
public boolean hasfloat22() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2");
}
public glsl_float2 newfloat22() {
return new glsl_float2();
}
public glsl_float2 getfloat22At(int index) throws Exception {
return new glsl_float2(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2", index)));
}
public org.w3c.dom.Node getStartingfloat22Cursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2" );
}
public org.w3c.dom.Node getAdvancedfloat22Cursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "float2", curNode );
}
public glsl_float2 getfloat22ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new glsl_float2(getDomNodeValue(curNode));
}
public glsl_float2 getfloat22() throws Exception
{
return getfloat22At(0);
}
public void removefloat22At(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2", index);
}
public void removefloat22() {
removefloat22At(0);
}
public org.w3c.dom.Node addfloat22(glsl_float2 value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2", value.toString());
}
public org.w3c.dom.Node addfloat22(String value) throws Exception {
return addfloat22(new glsl_float2(value));
}
public void insertfloat22At(glsl_float2 value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2", index, value.toString());
}
public void insertfloat22At(String value, int index) throws Exception {
insertfloat22At(new glsl_float2(value), index);
}
public void replacefloat22At(glsl_float2 value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2", index, value.toString());
}
public void replacefloat22At(String value, int index) throws Exception {
replacefloat22At(new glsl_float2(value), index);
}
public static int getfloat3MinCount() {
return 1;
}
public static int getfloat3MaxCount() {
return 1;
}
public int getfloat3Count() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3");
}
public boolean hasfloat3() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3");
}
public glsl_float3 newfloat3() {
return new glsl_float3();
}
public glsl_float3 getfloat3At(int index) throws Exception {
return new glsl_float3(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3", index)));
}
public org.w3c.dom.Node getStartingfloat3Cursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3" );
}
public org.w3c.dom.Node getAdvancedfloat3Cursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "float3", curNode );
}
public glsl_float3 getfloat3ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new glsl_float3(getDomNodeValue(curNode));
}
public glsl_float3 getfloat3() throws Exception
{
return getfloat3At(0);
}
public void removefloat3At(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3", index);
}
public void removefloat3() {
removefloat3At(0);
}
public org.w3c.dom.Node addfloat3(glsl_float3 value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3", value.toString());
}
public org.w3c.dom.Node addfloat3(String value) throws Exception {
return addfloat3(new glsl_float3(value));
}
public void insertfloat3At(glsl_float3 value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3", index, value.toString());
}
public void insertfloat3At(String value, int index) throws Exception {
insertfloat3At(new glsl_float3(value), index);
}
public void replacefloat3At(glsl_float3 value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float3", index, value.toString());
}
public void replacefloat3At(String value, int index) throws Exception {
replacefloat3At(new glsl_float3(value), index);
}
public static int getfloat4MinCount() {
return 1;
}
public static int getfloat4MaxCount() {
return 1;
}
public int getfloat4Count() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4");
}
public boolean hasfloat4() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4");
}
public glsl_float4 newfloat4() {
return new glsl_float4();
}
public glsl_float4 getfloat4At(int index) throws Exception {
return new glsl_float4(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4", index)));
}
public org.w3c.dom.Node getStartingfloat4Cursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4" );
}
public org.w3c.dom.Node getAdvancedfloat4Cursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "float4", curNode );
}
public glsl_float4 getfloat4ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new glsl_float4(getDomNodeValue(curNode));
}
public glsl_float4 getfloat4() throws Exception
{
return getfloat4At(0);
}
public void removefloat4At(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4", index);
}
public void removefloat4() {
removefloat4At(0);
}
public org.w3c.dom.Node addfloat4(glsl_float4 value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4", value.toString());
}
public org.w3c.dom.Node addfloat4(String value) throws Exception {
return addfloat4(new glsl_float4(value));
}
public void insertfloat4At(glsl_float4 value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4", index, value.toString());
}
public void insertfloat4At(String value, int index) throws Exception {
insertfloat4At(new glsl_float4(value), index);
}
public void replacefloat4At(glsl_float4 value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "float4", index, value.toString());
}
public void replacefloat4At(String value, int index) throws Exception {
replacefloat4At(new glsl_float4(value), index);
}
public static int getfloat2x2MinCount() {
return 1;
}
public static int getfloat2x2MaxCount() {
return 1;
}
public int getfloat2x2Count() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "float2x2");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?