holoedit.opengl
Class RoomIndex

java.lang.Object
  extended by holoedit.opengl.RoomIndex

public class RoomIndex
extends java.lang.Object

utility class indexing picked objects on a 32 bit signed integer GLUint : 32bits ___________________________________________________________________________________________ | TYPE | TK | SEQ | PT | |----------------- |-------------------- |------------------------ |------------------------ | | 2 (0-1) | 6 (0-63) | 10 (0-1023) | 14 (0-16383) | |----------------- |-------------------- |------------------------ |------------------------ | | 0 = point | track number | seq number | point number | |----------------- |-------------------- |------------------------ |------------------------ | | 1 = line | track number | seq number | point number | |----------------- |-------------------- |------------------------ |------------------------ | | 2 = speaker | ¿ | ¿ | speaker number | |----------------- |-------------------- |------------------------ |------------------------ | | 3 = other | ¿ | 0 : scroll | 0 : h_scroll | | | | | 1 : h_scroll_left | | | | | 2 : v_scroll_right | | | | | 3 : v_scroll | | | | | 4 : v_scroll_left | | | | | 5 : v_scroll_right | | | ¿ | 1 : timescale | 0 : timescale | | | | | 1 : timescale_bloc | | | | | 2 : timescale_beg | | | | | 3 : timescale_end | | | | | 4 : timescale_back | | | | | 5 : timescale_forw | |----------------- |-------------------- |------------------------ |------------------------ | | 3 | 63 | 1023 | 16383 | << NULL |_________________ |____________________ |________________________ |________________________ |


Field Summary
static int MASK_PT_TYPE
           
static int MASK_SEQ_NUM
           
static int MASK_TRACK_NUM
           
static int NBBIT_PT
           
static int NBBIT_SEQ
           
static int NBBIT_TRACK
           
static int NBBIT_TYPE
           
static int NULL
           
static int pt
           
static int SCROLL
           
static int SCROLL_H
           
static int SCROLL_H_IND
           
static int SCROLL_H_LEFT
           
static int SCROLL_H_RIGHT
           
static int SCROLL_HL_IND
           
static int SCROLL_HR_IND
           
static int SCROLL_V
           
static int SCROLL_V_IND
           
static int SCROLL_V_LEFT
           
static int SCROLL_V_RIGHT
           
static int SCROLL_VL_IND
           
static int SCROLL_VR_IND
           
static int seq
           
static int SIZE_PT
           
static int SIZE_SEQ
           
static int SIZE_TRACK
           
static int SIZE_TYPE
           
static int TIMESCALE
           
static int TIMESCALE_BACK
           
static int TIMESCALE_BACK_IND
           
static int TIMESCALE_BEG
           
static int TIMESCALE_BEG_IND
           
static int TIMESCALE_BG
           
static int TIMESCALE_BG_IND
           
static int TIMESCALE_BLOC
           
static int TIMESCALE_BLOC_IND
           
static int TIMESCALE_END
           
static int TIMESCALE_END_IND
           
static int TIMESCALE_FORW
           
static int TIMESCALE_FORW_IND
           
static int tk
           
static int type
           
static int TYPE_LINE
           
static int TYPE_OT
           
static int TYPE_PT
           
static int TYPE_SPEAKER
           
 
Constructor Summary
RoomIndex()
           
 
Method Summary
static int[] decode(int code)
           
static int encode(int _type, int tkNum, int seqNum, int ptNum)
           
static int getNull()
           
static int getPt()
           
static int getSeq()
           
static int getTrack()
           
static boolean isLine()
           
static boolean isNull(int index)
           
static boolean isPoint()
           
static boolean isScroll()
           
static boolean isScrollH()
           
static boolean isScrollHLeft()
           
static boolean isScrollHRight()
           
static boolean isScrollV()
           
static boolean isScrollVLeft()
           
static boolean isScrollVRight()
           
static boolean isSpeaker()
           
static boolean isTimeScaleBack()
           
static boolean isTimeScaleBeg()
           
static boolean isTimeScaleBg()
           
static boolean isTimeScaleBloc()
           
static boolean isTimeScaleEnd()
           
static boolean isTimeScaleForw()
           
static java.lang.String toStr()
           
static java.lang.String toStr2()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE_TYPE

public static final int SIZE_TYPE
See Also:
Constant Field Values

SIZE_TRACK

public static final int SIZE_TRACK
See Also:
Constant Field Values

SIZE_SEQ

public static final int SIZE_SEQ
See Also:
Constant Field Values

SIZE_PT

public static final int SIZE_PT
See Also:
Constant Field Values

NBBIT_TYPE

public static final int NBBIT_TYPE

NBBIT_TRACK

public static final int NBBIT_TRACK

NBBIT_SEQ

public static final int NBBIT_SEQ

NBBIT_PT

public static final int NBBIT_PT

MASK_PT_TYPE

public static final int MASK_PT_TYPE

MASK_SEQ_NUM

public static final int MASK_SEQ_NUM

MASK_TRACK_NUM

public static final int MASK_TRACK_NUM

TYPE_PT

public static final int TYPE_PT
See Also:
Constant Field Values

TYPE_LINE

public static final int TYPE_LINE
See Also:
Constant Field Values

TYPE_SPEAKER

public static final int TYPE_SPEAKER
See Also:
Constant Field Values

TYPE_OT

public static final int TYPE_OT
See Also:
Constant Field Values

SCROLL

public static final int SCROLL
See Also:
Constant Field Values

SCROLL_H

public static final int SCROLL_H
See Also:
Constant Field Values

SCROLL_H_LEFT

public static final int SCROLL_H_LEFT
See Also:
Constant Field Values

SCROLL_H_RIGHT

public static final int SCROLL_H_RIGHT
See Also:
Constant Field Values

SCROLL_V

public static final int SCROLL_V
See Also:
Constant Field Values

SCROLL_V_LEFT

public static final int SCROLL_V_LEFT
See Also:
Constant Field Values

SCROLL_V_RIGHT

public static final int SCROLL_V_RIGHT
See Also:
Constant Field Values

TIMESCALE

public static final int TIMESCALE
See Also:
Constant Field Values

TIMESCALE_BG

public static final int TIMESCALE_BG
See Also:
Constant Field Values

TIMESCALE_BLOC

public static final int TIMESCALE_BLOC
See Also:
Constant Field Values

TIMESCALE_BEG

public static final int TIMESCALE_BEG
See Also:
Constant Field Values

TIMESCALE_END

public static final int TIMESCALE_END
See Also:
Constant Field Values

TIMESCALE_BACK

public static final int TIMESCALE_BACK
See Also:
Constant Field Values

TIMESCALE_FORW

public static final int TIMESCALE_FORW
See Also:
Constant Field Values

NULL

public static final int NULL

SCROLL_H_IND

public static final int SCROLL_H_IND

SCROLL_HL_IND

public static final int SCROLL_HL_IND

SCROLL_HR_IND

public static final int SCROLL_HR_IND

SCROLL_V_IND

public static final int SCROLL_V_IND

SCROLL_VL_IND

public static final int SCROLL_VL_IND

SCROLL_VR_IND

public static final int SCROLL_VR_IND

TIMESCALE_BG_IND

public static final int TIMESCALE_BG_IND

TIMESCALE_BLOC_IND

public static final int TIMESCALE_BLOC_IND

TIMESCALE_BEG_IND

public static final int TIMESCALE_BEG_IND

TIMESCALE_END_IND

public static final int TIMESCALE_END_IND

TIMESCALE_BACK_IND

public static final int TIMESCALE_BACK_IND

TIMESCALE_FORW_IND

public static final int TIMESCALE_FORW_IND

type

public static int type

tk

public static int tk

seq

public static int seq

pt

public static int pt
Constructor Detail

RoomIndex

public RoomIndex()
Method Detail

getNull

public static int getNull()

isNull

public static boolean isNull(int index)

encode

public static int encode(int _type,
                         int tkNum,
                         int seqNum,
                         int ptNum)

decode

public static int[] decode(int code)

toStr

public static java.lang.String toStr()

toStr2

public static java.lang.String toStr2()

isPoint

public static boolean isPoint()

isLine

public static boolean isLine()

isSpeaker

public static boolean isSpeaker()

getTrack

public static int getTrack()

getSeq

public static int getSeq()

getPt

public static int getPt()

isScroll

public static boolean isScroll()

isScrollH

public static boolean isScrollH()

isScrollV

public static boolean isScrollV()

isScrollHLeft

public static boolean isScrollHLeft()

isScrollHRight

public static boolean isScrollHRight()

isScrollVLeft

public static boolean isScrollVLeft()

isScrollVRight

public static boolean isScrollVRight()

isTimeScaleBeg

public static boolean isTimeScaleBeg()

isTimeScaleEnd

public static boolean isTimeScaleEnd()

isTimeScaleBack

public static boolean isTimeScaleBack()

isTimeScaleForw

public static boolean isTimeScaleForw()

isTimeScaleBloc

public static boolean isTimeScaleBloc()

isTimeScaleBg

public static boolean isTimeScaleBg()