当前位置: 首页>>代码示例>>Java>>正文


Java TextureType类代码示例

本文整理汇总了Java中org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType的典型用法代码示例。如果您正苦于以下问题:Java TextureType类的具体用法?Java TextureType怎么用?Java TextureType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TextureType类属于org.fxyz.shapes.primitives.helper.TriangleMeshHelper包,在下文中一共展示了TextureType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: TexturedMesh

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
protected TexturedMesh(){
    sectionType.set(SectionType.CIRCLE);
    textureType.set(TextureType.NONE);
    textureType.addListener((ob,o,o1)->{
        if(mesh!=null){
            updateTexture();
            updateTextureOnFaces();
        }
    });
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:11,代码来源:TexturedMesh.java

示例2: setTextureModeNone

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureModeNone(Color color) {
    if(color!=null){
        helper.setTextureType(TextureType.NONE);
        setMaterial(helper.getMaterialWithColor(color));
    }
    setTextureType(helper.getTextureType());
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:8,代码来源:TexturedMesh.java

示例3: setTextureModeImage

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureModeImage(String image) {
    if(image!=null && !image.isEmpty()){
        helper.setTextureType(TextureType.IMAGE);
        setMaterial(helper.getMaterialWithImage(image));
        setTextureType(helper.getTextureType());
    }
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:8,代码来源:TexturedMesh.java

示例4: setTextureModeVertices3D

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureModeVertices3D(int colors, DensityFunction<Point3D> dens, double min, double max) {
    helper.setTextureType(TextureType.COLORED_VERTICES_3D);
    setMinGlobal(min);
    setMaxGlobal(max);
    setColors(colors);
    setDensity(dens);
    setTextureType(helper.getTextureType());
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:9,代码来源:TexturedMesh.java

示例5: setTextureModeVertices1D

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureModeVertices1D(int colors, DensityFunction<Double> function, double min, double max) {
    helper.setTextureType(TextureType.COLORED_VERTICES_1D);
    setMinGlobal(min);
    setMaxGlobal(max);
    setColors(colors);
    setFunction(function);
    setTextureType(helper.getTextureType());
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:9,代码来源:TexturedMesh.java

示例6: setTextureColors

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureColors(int numColors){
    if(numColors>0){
        defaultTexture=TextureType.COLORED_VERTICES_3D;
        Palette palette=new Palette(numColors);
        palette.createPalette(true);
        diffuseMap="palette_"+numColors+".png";
    }
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:9,代码来源:OBJWriter.java

示例7: setTextureModeNone

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
@Override
public void setTextureModeNone(Color color) {
    if(color!=null){
        helper.setTextureType(TextureType.NONE);
        helper.getMaterialWithColor(color);
    }
    setTextureType(helper.getTextureType());
}
 
开发者ID:lyrachord,项目名称:FX3DAndroid,代码行数:9,代码来源:TexturedMesh.java

示例8: setTextureModeImage

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
@Override
public void setTextureModeImage(String image) {
    if(image!=null && !image.isEmpty()){
        helper.setTextureType(TextureType.IMAGE);
        helper.getMaterialWithImage(image);
        setTextureType(helper.getTextureType());
    }
}
 
开发者ID:lyrachord,项目名称:FX3DAndroid,代码行数:9,代码来源:TexturedMesh.java

示例9: setTextureModePattern

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
@Override
public void setTextureModePattern(CarbonPatterns pattern, double scale) {
    helper.setTextureType(TextureType.PATTERN);
    patternScale.set(scale);
    carbonPatterns.set(pattern);
    helper.getMaterialWithPattern(pattern);
    setTextureType(helper.getTextureType());
}
 
开发者ID:lyrachord,项目名称:FX3DAndroid,代码行数:9,代码来源:TexturedMesh.java

示例10: setTextureModeVertices3D

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
@Override
public void setTextureModeVertices3D(int colors, Function<Point3D, Number> dens) {
    helper.setTextureType(TextureType.COLORED_VERTICES_3D);
    setColors(colors);
    createPalette(getColors());
    setDensity(dens);
    helper.setDensity(dens);
    setTextureType(helper.getTextureType());
}
 
开发者ID:lyrachord,项目名称:FX3DAndroid,代码行数:10,代码来源:TexturedMesh.java

示例11: setTextureModeVertices1D

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
@Override
public void setTextureModeVertices1D(int colors, Function<Number, Number> function) {
    helper.setTextureType(TextureType.COLORED_VERTICES_1D);
    setColors(colors);
    createPalette(getColors());
    setFunction(function);
    helper.setFunction(function);
    setTextureType(helper.getTextureType());
}
 
开发者ID:lyrachord,项目名称:FX3DAndroid,代码行数:10,代码来源:TexturedMesh.java

示例12: setTextureModeFaces

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
@Override
public void setTextureModeFaces(int colors) {
    helper.setTextureType(TextureType.COLORED_FACES);
    setColors(colors);
    createPalette(getColors());
    setTextureType(helper.getTextureType());
}
 
开发者ID:lyrachord,项目名称:FX3DAndroid,代码行数:8,代码来源:TexturedMesh.java

示例13: setTextureModePattern

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureModePattern(double scale) {
    helper.setTextureType(TextureType.PATTERN);
    patternScale.set(scale);
    setMaterial(helper.getMaterialWithPattern());
    setTextureType(helper.getTextureType());
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:7,代码来源:TexturedMesh.java

示例14: setTextureModeFaces

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public void setTextureModeFaces(int colors) {
    helper.setTextureType(TextureType.COLORED_FACES);
    setColors(colors);
    setTextureType(helper.getTextureType());
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:6,代码来源:TexturedMesh.java

示例15: getTextureType

import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public TextureType getTextureType() {
    return textureType.get();
}
 
开发者ID:FXyz,项目名称:FXyzLib,代码行数:4,代码来源:TexturedMesh.java


注:本文中的org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。