本文整理汇总了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();
}
});
}
示例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());
}
示例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());
}
}
示例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());
}
示例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());
}
示例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";
}
}
示例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());
}
示例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());
}
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例15: getTextureType
import org.fxyz.shapes.primitives.helper.TriangleMeshHelper.TextureType; //导入依赖的package包/类
public TextureType getTextureType() {
return textureType.get();
}