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


Java HandPlane类代码示例

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


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

示例1: generateOlhar

import br.usp.libras.sign.symbol.HandPlane; //导入依赖的package包/类
private Sign generateOlhar() {
	
	HandMovement mov = new HandMovement();
	mov.addSegment(Direction.PARA_FRENTE);
	Hand hand = new Hand();
	hand.setShape(HandShape.MAO_2);
	hand.setOrientation(HandOrientation.BLACK);
	hand.setPlane(HandPlane.VERTICAL);
	hand.setMovement(mov);
	Symbol symbol = new Symbol();
	symbol.setRightHand(hand);
	Sign sign = new Sign();
	sign.setName("OLHAR");
	sign.setVerbType(VerbType.CONCORDA_COM_SUJEITO_E_OBJETO);
	sign.addSymbol(symbol);
	return sign;
}
 
开发者ID:poli-libras,项目名称:poli-libras,代码行数:18,代码来源:ContextualiserTest.java

示例2: convert

import br.usp.libras.sign.symbol.HandPlane; //导入依赖的package包/类
public static Hand convert(br.usp.wikilibras.ws.Hand wlhand) {

        if (wlhand == null)
            return null;

        Hand hand = new Hand();

        // TODO: if's pra todos os enums
        FingersMovement fing = null;
        if (wlhand.getFingers() != null)
            fing = FingersMovement.valueOf(wlhand.getFingers().toString());
        HandOrientation ori = HandOrientation.valueOf(wlhand.getOrientation().toString());
        HandRotation rot = HandRotation.valueOf(wlhand.getRotation().toString());
        HandPlane plane = HandPlane.valueOf(wlhand.getPlane().toString());
        HandShape shape = HandShape.valueOf(wlhand.getShape().toString());
        HandSide side = HandSide.valueOf(wlhand.getSide().toString());

        hand.setFingers(fing);
        hand.setOrientation(ori);
        hand.setRotation(rot);
        hand.setPlane(plane);
        hand.setShape(shape);
        hand.setSide(side);
        
        // movimento da mão
        HandMovement mov = convert(wlhand.getMovement());
        hand.setMovement(mov);

        return hand;
    }
 
开发者ID:poli-libras,项目名称:poli-libras,代码行数:31,代码来源:ClassConverter.java


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