Package net.br410bury.motion

Examples of net.br410bury.motion.Bone


 
 
  protected void recursiveSegment(int frame, Bone bone, Joint node, GraphicsMatrix global)
  {
    GraphicsMatrix local;
    Bone localbone = new Bone();
   
    local = global.times(node.getTransformation(frame, motion));
    localbone.setStart(local.times(matrixToPoint));
    bone.addEnd(localbone);
    for(Joint child : node.getChildren())
    {
      if(!child.isEndSite()) recursiveSegment(frame, localbone, child, local);
    }
View Full Code Here


    GraphicsMatrix global;
   
    if(rootbone == null) rootbone = new Bone[motion.getFrames()];
    if(rootbone[frame] == null)
    {
      rootbone[frame] = new Bone();

      global = root.getTransformation(frame, motion);
      rootbone[frame].setStart(global.times(matrixToPoint));
      for(Joint child : root.getChildren())
      {
View Full Code Here

    return eye;
  }
 
  protected void drawMotion()
  {
    Bone boneframe;
    GraphicsPoint min;
    GraphicsPoint max;
    GraphicsPoint eye;
    GraphicsPoint center;
    GraphicsPoint up;
   
    if(file.isRead())
    {
      file.segment(frame);
     
      boneframe = file.getSkeleton(frame);
      min = boneframe.getMins();
      max = boneframe.getMaxes();
     
      center = GraphicsPoint.center(min, max);
      eye = calcEye(min, max, center);
      up = new GraphicsPoint(0, 1, 0);
     
View Full Code Here

TOP

Related Classes of net.br410bury.motion.Bone

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.