|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.piece.VEFDS.Attribute
protected class VEFDS.Attribute
Internal attribute representation.
| Field Summary | |
|---|---|
int |
context
Handle of the context ( NULL for shared attributes). |
java.lang.Object |
data
The data[-array] itself. |
int |
handle
Attribute's handle (inverse mapping for VEFDS.attributes). |
java.lang.String |
ident
Identifier (w/o the context-suffix). |
int |
itemSize
Size of one data-array item. |
int |
size
Actual size of the data[-array] in items ( -1 for scalar attributes). |
int |
type
Attribute type ( ATTR_*). |
int |
where
Entity which the attribute is associated with. |
| Constructor Summary | |
|---|---|
VEFDS.Attribute(int _where,
int _context,
java.lang.String _ident,
int _type,
int _size)
Initializing constructor - allocates data object. |
|
VEFDS.Attribute(VEFDS.Attribute _from,
int _context,
java.lang.String _ident)
Initializing constructor - copies data from the given Attribute instance. |
|
| Method Summary | |
|---|---|
protected void |
assertDataSize(int _size)
Allocates data[-array] of the given size. |
void |
copyCoordinates(VEFDS.Attribute from,
java.util.BitSet set)
Copies coordinate data from the Attribute object to another one. |
void |
deepCopy(VEFDS.Attribute from)
Deep-copy of attribute data from another Attribute instance. |
int |
hashCode()
Returns a hash code value for the object. |
void |
roundCoordinates(VEFDS.Attribute from,
TrMatrix tr,
java.util.BitSet set)
Rounds coordinate data from the Attribute object to another one. |
void |
transformCoordinates(VEFDS.Attribute from,
TrMatrix tr,
java.util.BitSet set)
Transforms coordinate data from the Attribute object to another one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int handle
VEFDS.attributes).
public int where
public int context
NULL for shared attributes).
public java.lang.String ident
public int type
ATTR_*).
Brep.ATTR_OBJECTpublic int itemSize
size * itemSize.
size,
data,
assertDataSize(int)public int size
-1 for scalar attributes).
Allocation: size * itemSize.
itemSize,
data,
assertDataSize(int)public java.lang.Object data
size * itemSize.
itemSize,
size,
assertDataSize(int)| Constructor Detail |
|---|
public VEFDS.Attribute(int _where,
int _context,
java.lang.String _ident,
int _type,
int _size)
_where - Entity which the attribute is associated with._context - Handle of the context (NULL for shared attributes)._ident - Identifier (w/o the context-suffix)._type - Attribute type._size - Array length (0 for no allocation, -1 for
scalar value).VEFDS.Attribute(VEFDS.Attribute,int,String),
assertDataSize(int)
public VEFDS.Attribute(VEFDS.Attribute _from,
int _context,
java.lang.String _ident)
Attribute instance.
_from - Instance data shall be copied from._context - Handle of the context (NULL for shared attributes)._ident - Identifier (w/o the context-suffix).VEFDS.Attribute(int,int,String,int,int),
assertDataSize(int)| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectprotected void assertDataSize(int _size)
_size = 0 will de-allocate the data[-array].
_size - Required data size (0 will cause array de-allocation).size,
itemSize,
datapublic void deepCopy(VEFDS.Attribute from)
Attribute instance.
from - The Attribute which data will be copied from.
public void copyCoordinates(VEFDS.Attribute from,
java.util.BitSet set)
Attribute object to another one.
Performs rounding and/or homo => Euclid conversions.
from - Source Attribute object.set - Bit-set of handles to be copied (null for
"copy all").roundCoordinates(cz.cuni.jagrlib.piece.VEFDS.Attribute, cz.cuni.jagrlib.TrMatrix, java.util.BitSet),
transformCoordinates(cz.cuni.jagrlib.piece.VEFDS.Attribute, cz.cuni.jagrlib.TrMatrix, java.util.BitSet)
public void roundCoordinates(VEFDS.Attribute from,
TrMatrix tr,
java.util.BitSet set)
Attribute object to another one.
Performs linear planar transformation, rounding and homo => Euclid conversions.
from - Source Attribute object (can be this).tr - Transformation matrix (only the planar part is used).set - Bit-set of handles to be rounded (null for "round
all").copyCoordinates(cz.cuni.jagrlib.piece.VEFDS.Attribute, java.util.BitSet),
transformCoordinates(cz.cuni.jagrlib.piece.VEFDS.Attribute, cz.cuni.jagrlib.TrMatrix, java.util.BitSet)
public void transformCoordinates(VEFDS.Attribute from,
TrMatrix tr,
java.util.BitSet set)
Attribute object to another one.
Performs linear transformation, rounding and/or homo => Euclid conversions.
from - Source Attribute object (can be this).tr - Transformation matrix.set - Bit-set of handles to be transformed (null for
"transform all").copyCoordinates(cz.cuni.jagrlib.piece.VEFDS.Attribute, java.util.BitSet),
roundCoordinates(cz.cuni.jagrlib.piece.VEFDS.Attribute, cz.cuni.jagrlib.TrMatrix, java.util.BitSet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||