Class TSQDef

java.lang.Object
  extended by TSQDef
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TSQuad

 class TSQDef
extends java.lang.Object
implements java.io.Serializable

.

======================================================================
 Class TSQDef -- Position-independent part of a Quad-structure
 This part of a Quad-structure is used to store the contends of
    a world-file in a position-independand form.
 ##TSQDef (Eyecatcher)
======================================================================
 


Field Summary
protected static java.lang.String IdStr
           
private  int Mde
           
private  int mIdS
           
private  int mIdW
           
private  int mOID
           
private  int mVId
           
private  TSChain Snd
           
private  TSChain Uid
           
private  TSView VId
           
 
Constructor Summary
protected TSQDef()
          .
 
Method Summary
protected  int chg$View(int v)
          .
protected  int chgMde(int v)
          .
protected  TSChain chgSTab(TSChain cS, int id)
          .
protected  TSView chgView(TSView nVS)
          .
protected  TSChain chgWTab(TSChain cW, int id)
          .
protected  TSView fndView(int id)
          .
protected  int getOId()
          .
protected  int getSId()
          .
protected  TSSnd getSnd(boolean mde)
          .
protected  TSUiD getUid(boolean mde)
          .
protected  int getWId()
          .
protected  java.lang.String reSortW(TSWrld cObj)
          .
protected  java.lang.String toStr()
          .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IdStr

protected static final java.lang.String IdStr
See Also:
Constant Field Values

Uid

private TSChain Uid

Snd

private TSChain Snd

VId

private TSView VId

mIdW

private int mIdW

mIdS

private int mIdS

mVId

private int mVId

mOID

private int mOID

Mde

private int Mde
Constructor Detail

TSQDef

protected TSQDef()
.
=====================================================================
 Constructor: (1) Create default-entry
=====================================================================
  

Method Detail

chg$View

protected final int chg$View(int v)
.
=====================================================================
 Method "chg$View"
 'modify' or 'get' current 'maximum viewsphere-ID'
 ATTENTION: Do not modify value if argument is negative. However,
          the value may be cleared by setting it to '0'
 ##chg$View.TSQDef (Eyecatcher)
=====================================================================
  


chgMde

protected final int chgMde(int v)
.
=====================================================================
 Method "chgMde"
 Modify current accessmode of world-file (or return it only).
 ATTENTION: - Do not modify value if argument is negative.
            - The mode-definiton (must) already contains the
                'write-flag', so that can directly be used to
                rewrite the file. 
 ##chgMde.TSQDef (Eyecatcher)
=====================================================================
  


chgSTab

protected final TSChain chgSTab(TSChain cS,
                                int id)
.
=====================================================================
 Method "chgSTab"
 Insert/Return chain of sound-objects
 Modify 'maximum used UID' if requested
 ##chgSTab.TSQDef (Eyecatcher)
=====================================================================
  


chgView

protected final TSView chgView(TSView nVS)
.
=====================================================================
 Method "chgView"
 Modify/Return current viewsphere-definition
 ATTENTION: Do not modify value if argument is 'null'.
            Therefore the viwsphere-reference cannot be cleared and
            'mVId' is used as a flag, if a valid viewsphere-chain
            exists.
 ##chgView.TSQDef (Eyecatcher)
=====================================================================
  


chgWTab

protected final TSChain chgWTab(TSChain cW,
                                int id)
.
=====================================================================
 Method "chgWTab"
 Insert/Return chain of world-objects
 Modify 'maximum used UID' if requested
 ##chgWTab.TSQDef (Eyecatcher)
=====================================================================
  


fndView

protected final TSView fndView(int id)
.
=====================================================================
 Method "fndView"
 Search viewsphere- chain if an entry with specified id exists.
  If it is NOT found or if an error occurred, 'null' is returned.
 ##fndView.TSQDef (Eyecatcher)
=====================================================================
  


getOId

protected final int getOId()
.
=====================================================================
 Method "getOId"
 get next unique object-ID
 ##getOId.TSQDef (Eyecatcher)
=====================================================================
  


getSId

protected final int getSId()
.
=====================================================================
 Method "getSId"
 get next unique ID of a sound-object
 ##getSId.TSQDef (Eyecatcher)
=====================================================================
  


getWId

protected final int getWId()
.
=====================================================================
 Method "getWId"
 get next unique ID of a world-object
 ##getWId.TSQDef (Eyecatcher)
=====================================================================
  


getSnd

protected final TSSnd getSnd(boolean mde)
.
=====================================================================
 Method "getSnd"
 Iterator-Access to elements of the sound-chain
 ATTENTION: This is a Delegation/Wrapper-Method for 'TSChain.next()'
 ##getSnd.TSQDef (Eyecatcher)
=====================================================================
  


getUid

protected final TSUiD getUid(boolean mde)
.
=====================================================================
 Method "getUid"
 Iterator-Access to elements of the world-chain
 ATTENTION: This is a Delegation/Wrapper-Method for 'TSChain.next()'
 ##getUid.TSQDef (Eyecatcher)
=====================================================================
  


reSortW

protected final java.lang.String reSortW(TSWrld cObj)
.
=====================================================================
 Method "reSortW"
 Call 'reSort'-method of current TSChain-Object (Uid)
 ##reSortW.TSQDef (Eyecatcher)
=====================================================================
  


toStr

protected java.lang.String toStr()
.
=====================================================================
 Method "toStr"
 Build a string-representation of all values of this class
 ##toStr.TSQDef (Eyecatcher)
=====================================================================