def __init__(self, parent, name=None, offset=None): """ Construct point trajectory. @param parent: Parent L{Joint} in the body model hierarchy. @param name: Name of the point. @param offset: Offset of the point in the parent joint co-ordinate frame. """ Point.__init__(self, parent, name, offset) OffsetTrajectory.__init__(self, parent, offset)
def __init__(self, parent, name=None, offset=None): """ Initialise sampled joint. @param parent: Parent L{Joint} in the body model hierarchy. @param name: Name of the joint. @param offset: Offset of the joint in the parent joint co-ordinate frame. """ Joint.__init__(self, parent, name, offset) OffsetTrajectory.__init__(self, parent, offset) SampledRotationTrajectory.__init__(self)
def __init__(self, parent, sampled, **kwargs): """ Initialise splined joint. @param sampled: the L{SampledJoint} from which to generate splined trajectories @param parent: the parent joint in the body model hierarchy """ Joint.__init__(self, parent, sampled.name, sampled.positionOffset) OffsetTrajectory.__init__(self, parent, sampled.positionOffset) SplinedRotationTrajectory.__init__(self, sampled, **kwargs) self.children = [ (SplinedJoint(self, child, **kwargs) if child.isJoint else PointTrajectory(self, child.name, child.positionOffset)) for child in sampled.children]
def __init__(self, parent, sampled, **kwargs): """ Initialise splined joint. @param sampled: the L{SampledJoint} from which to generate splined trajectories @param parent: the parent joint in the body model hierarchy """ Joint.__init__(self, parent, sampled.name, sampled.positionOffset) OffsetTrajectory.__init__(self, parent, sampled.positionOffset) SplinedRotationTrajectory.__init__(self, sampled, **kwargs) self.children = [ (SplinedJoint(self, child, **kwargs) if child.isJoint else PointTrajectory(self, child.name, child.positionOffset)) for child in sampled.children ]