Class Model3DPtr


  • public class Model3DPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • Model3DPtr

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

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

        public Model3DPtr​(Model3D ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(Model3DPtr obj)
      • delete

        public void delete()
      • deref

        public Model3D deref()
        The pointer stored in the object.
      • __ref__

        public Model3D __ref__()
        Dereferencing operator.
      • getDeref

        public Model3D getDeref()
        Member access operator.
      • equals

        public boolean equals​(Model3D p)
      • 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
      • hasMaterial

        public boolean hasMaterial​(java.lang.String matid)
      • removeObject

        public void removeObject​(java.lang.String name)
      • setTransform

        public void setTransform​(Transform3Dd t3d)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getMask

        public int getMask()
      • setMask

        public void setMask​(int mask)
      • isDynamic

        public boolean isDynamic()
      • setDynamic

        public void setDynamic​(boolean dynamic)