Class GeometryCPtr


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

      • GeometryCPtr

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

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

        public GeometryCPtr​(Geometry ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(GeometryCPtr obj)
      • delete

        public void delete()
      • deref

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

        public Geometry __ref__()
        Dereferencing operator.
      • getDeref

        public Geometry getDeref()
        Member access operator.
      • equals

        public boolean equals​(Geometry 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
      • getScale

        public double getScale()
        gets the scaling factor applied when using this geometry
        Returns:
        the scale as double
      • getTransform

        public Transform3D getTransform()
        get transformation
        Returns:
        the Current transform
      • getName

        public java.lang.String getName()
        get name of this geometry
        Returns:
        name as string
      • getFilePath

        public java.lang.String getFilePath()
        get file path of this geometry
        Returns:
        the file path as string
      • getId

        public java.lang.String getId()
        get identifier of this geometry
        Returns:
        the id of the geometry