Class TrajectoryIteratorTransform3D_fPtr


  • public class TrajectoryIteratorTransform3D_fPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TrajectoryIteratorTransform3D_f __ref__()
      Dereferencing operator.
      void addAssign​(double dt)
      This function can be used to increase the iterator position.
      The position can be increased no longer than the length of the
      complete trajectory.

      TrajectoryIteratorTransform3D_fCPtr cptr()  
      Transform3Df ddx()
      Extracts a point of the double derivative of the trajectory at the
      current position in the trajectory

      void dec()
      Method for decreasing the position of the iterator a fixed amount

      The decrement is equal to the dt specified in the constructor.
      void dec​(double dt)
      Method for decreasing the position of the iterator a fixed amount

      void delete()  
      TrajectoryIteratorTransform3D_f deref()
      The pointer stored in the object.
      Transform3Df dx()
      Extracts a point of the derivative of the trajectory
      at the current position in the trajectory

      boolean equals​(TrajectoryIteratorTransform3D_f p)  
      static long getCPtr​(TrajectoryIteratorTransform3D_fPtr obj)  
      TrajectoryIteratorTransform3D_f getDeref()
      Member access operator.
      double getTime()
      Returns the current position (time) of the iterator
      void inc()
      Method for increasing the position of the iterator a fixed amount

      The increment is equal to the dt specified in the constructor.
      void inc​(double dt)
      Method for increasing the position of the iterator by dt

      boolean isBegin()
      Test if the beginning of the trajectory is reached.

      boolean isEnd()
      Test if the end of the trajectory is reached.

      boolean isNull()
      checks if the pointer is null
      boolean isShared()
      check if this Ptr has shared ownership or none
      ownership
      TrajectoryIteratorTransform3D_f next()
      Operator overloading ++ for increasing the position of the iterator.

      Usage: ++iterator

      The increment is equal to the dt specified in the constructor.
      void next​(int arg0)
      Operator overloading ++ for increasing the position of the iterator.

      Usage: iterator++

      The increment is equal to the dt specified in the constructor.
      Transform3Df point()
      Extracts a point at the current position in the trajectory.

      TrajectoryIteratorTransform3D_f prev()
      Operator overloading -- for decreasing the position of the iterator.

      Usage: --iterator;

      The decrement is equal to the dt specified in the constructor.
      void prev​(int arg0)
      Operator overloading -- for decreasing the position of the iterator.

      Usage: iterator--;

      The decrement is equal to the dt specified in the constructor.
      void subtractAssign​(double dt)
      This function can be used to decrease the iterator position.
      The position can be decreased no longer than to time equals 0.

      Transform3Df x()
      Extracts a point at the current position in the trajectory.

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrajectoryIteratorTransform3D_fPtr

        public TrajectoryIteratorTransform3D_fPtr​(long cPtr,
                                                  boolean cMemoryOwn)
      • TrajectoryIteratorTransform3D_fPtr

        public TrajectoryIteratorTransform3D_fPtr()
        Default constructor yielding a NULL-pointer.
      • TrajectoryIteratorTransform3D_fPtr

        public TrajectoryIteratorTransform3D_fPtr​(TrajectoryIteratorTransform3D_f ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • getTime

        public double getTime()
        Returns the current position (time) of the iterator
        Returns:
        The current time.
      • inc

        public void inc()
        Method for increasing the position of the iterator a fixed amount

        The increment is equal to the dt specified in the constructor.
      • inc

        public void inc​(double dt)
        Method for increasing the position of the iterator by dt

        Parameters:
        dt - [in] Amount to increase. A positive value is expected.
      • dec

        public void dec()
        Method for decreasing the position of the iterator a fixed amount

        The decrement is equal to the dt specified in the constructor.
      • dec

        public void dec​(double dt)
        Method for decreasing the position of the iterator a fixed amount

        Parameters:
        dt - [in] Amount to decrease. A positive value is expected
      • subtractAssign

        public void subtractAssign​(double dt)
        This function can be used to decrease the iterator position.
        The position can be decreased no longer than to time equals 0.

        Parameters:
        dt - [in] a double that describes how much to decrease the
        iterator position
      • addAssign

        public void addAssign​(double dt)
        This function can be used to increase the iterator position.
        The position can be increased no longer than the length of the
        complete trajectory.

        Parameters:
        dt - [in] a double that describes how much to increase the
        iterator position
      • next

        public TrajectoryIteratorTransform3D_f next()
        Operator overloading ++ for increasing the position of the iterator.

        Usage: ++iterator

        The increment is equal to the dt specified in the constructor.
        Returns:
        Reference to the TrajectoryIterator
      • next

        public void next​(int arg0)
        Operator overloading ++ for increasing the position of the iterator.

        Usage: iterator++

        The increment is equal to the dt specified in the constructor.
      • prev

        public TrajectoryIteratorTransform3D_f prev()
        Operator overloading -- for decreasing the position of the iterator.

        Usage: --iterator;

        The decrement is equal to the dt specified in the constructor.
        Returns:
        Reference to the TrajectoryIterator
      • prev

        public void prev​(int arg0)
        Operator overloading -- for decreasing the position of the iterator.

        Usage: iterator--;

        The decrement is equal to the dt specified in the constructor.
      • isEnd

        public boolean isEnd()
        Test if the end of the trajectory is reached.

        Returns:
        true if the iterator has reached the end of the trajectory false
        otherwise.
      • isBegin

        public boolean isBegin()
        Test if the beginning of the trajectory is reached.

        Returns:
        true if the iterator has reached the beginning of the trajectory
        false otherwise.
      • point

        public Transform3Df point()
        Extracts a point at the current position in the trajectory.

        Returns:
        the point at the current position in the trajectory.
      • x

        public Transform3Df x()
        Extracts a point at the current position in the trajectory.

        Returns:
        the point at the current position in the trajectory.
      • dx

        public Transform3Df dx()
        Extracts a point of the derivative of the trajectory
        at the current position in the trajectory

        Returns:
        the derived point at the current position in the trajectory.
      • ddx

        public Transform3Df ddx()
        Extracts a point of the double derivative of the trajectory at the
        current position in the trajectory

        Returns:
        the double derived point at the current position in the trajectory.