本文整理汇总了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;
}
示例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;
}