Class AbstractVertexView

java.lang.Object
dev.engine_room.flywheel.lib.vertex.AbstractVertexView
All Implemented Interfaces:
MutableVertexList, VertexList, VertexView
Direct Known Subclasses:
FullVertexView, NoOverlayVertexView, PosTexNormalVertexView, PosVertexView

public abstract class AbstractVertexView extends Object implements VertexView
  • Field Details

    • ptr

      protected long ptr
    • vertexCount

      protected int vertexCount
  • Constructor Details

    • AbstractVertexView

      public AbstractVertexView()
  • Method Details

    • ptr

      public long ptr()
      Specified by:
      ptr in interface VertexView
    • ptr

      public void ptr(long ptr)
      Specified by:
      ptr in interface VertexView
    • vertexCount

      public int vertexCount()
      Specified by:
      vertexCount in interface VertexList
    • vertexCount

      public void vertexCount(int vertexCount)
      Specified by:
      vertexCount in interface VertexView
    • nativeMemoryOwner

      @Nullable public final @Nullable Object nativeMemoryOwner()
      Specified by:
      nativeMemoryOwner in interface VertexView
    • nativeMemoryOwner

      public final void nativeMemoryOwner(@Nullable @Nullable Object owner)
      Description copied from interface: VertexView
      The memory referenced by this vertex view's pointer may be owned by another object, such that the memory is automatically freed when the other object becomes phantom reachable or is garbage collected. Use this method to ensure this vertex view retains a strong reference to the memory owner so this vertex view's pointer remains valid even when no other references to the memory owner are retained.
      Specified by:
      nativeMemoryOwner in interface VertexView