com.jogamp.opengl.impl.glu.nurbs
Class CArrayOfQuiltspecs

java.lang.Object
  extended by com.jogamp.opengl.impl.glu.nurbs.CArrayOfQuiltspecs

public class CArrayOfQuiltspecs
extends Object

Class replacing C language pointer

Author:
Tomas Hrasky

Constructor Summary
CArrayOfQuiltspecs(CArrayOfQuiltspecs carray)
          Makes new CArray from other CArray
CArrayOfQuiltspecs(Quiltspec[] array)
          Makes new CArray with pointer set to 0
CArrayOfQuiltspecs(Quiltspec[] array, int pointer)
          Makes new CArray
 
Method Summary
 Quiltspec get()
          Returns element at pointer
 Quiltspec get(int i)
          Returns array element at specified index
 Quiltspec[] getArray()
          Returns underlaying array
 int getPointer()
          Returns pointer value
 void lessenPointerBy(int i)
          Lessens pointer by value
 void mm()
          Lessens ponter by one (--)
 void pp()
          Increases pointer by one (++)
 void raisePointerBy(int i)
          Raises pointer by value
 void set(Quiltspec f)
          Sets element at pointer
 void setArray(Quiltspec[] array)
          Sets underlaying array
 void setPointer(int pointer)
          Sets ponter value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CArrayOfQuiltspecs

public CArrayOfQuiltspecs(Quiltspec[] array,
                          int pointer)
Makes new CArray

Parameters:
array - underlaying array
pointer - pointer (index) to array

CArrayOfQuiltspecs

public CArrayOfQuiltspecs(CArrayOfQuiltspecs carray)
Makes new CArray from other CArray

Parameters:
carray - reference array

CArrayOfQuiltspecs

public CArrayOfQuiltspecs(Quiltspec[] array)
Makes new CArray with pointer set to 0

Parameters:
array - underlaying array
Method Detail

get

public Quiltspec get()
Returns element at pointer

Returns:
element at pointer

pp

public void pp()
Increases pointer by one (++)


set

public void set(Quiltspec f)
Sets element at pointer

Parameters:
f - desired value

get

public Quiltspec get(int i)
Returns array element at specified index

Parameters:
i - array index
Returns:
element at index

lessenPointerBy

public void lessenPointerBy(int i)
Lessens pointer by value

Parameters:
i - lessen by

getPointer

public int getPointer()
Returns pointer value

Returns:
pointer value

setPointer

public void setPointer(int pointer)
Sets ponter value

Parameters:
pointer - pointer value to be set

raisePointerBy

public void raisePointerBy(int i)
Raises pointer by value

Parameters:
i - raise by

mm

public void mm()
Lessens ponter by one (--)


getArray

public Quiltspec[] getArray()
Returns underlaying array

Returns:
underlaying array

setArray

public void setArray(Quiltspec[] array)
Sets underlaying array

Parameters:
array - underlaying array


Copyright 2010 JogAmp Community.