de.grogra.mtg
public class MTGNode extends F
F.Pattern, F.Pattern2, F.Pattern3Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NTypecolor, color$FIELD, diameter, diameter$FIELD, length, length$FIELDlocalRegisters$FIELDSCALE_V_MASK, scaleV$FIELD, USED_BITSINFINITE_MASK, interior, interior$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELDtransform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELDADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
MTGNode() |
| Modifier and Type | Method and Description |
|---|---|
MTGNode |
compoFather()
Returns compositional father of this node
|
MTGNode[] |
compoSons()
Return compositional sons of this node
|
java.lang.Integer |
compoSonsCount()
Get number of compositional sons.
|
int[] |
compoSonsIds()
Get the list of composition sons of this MTGNode.
|
static void |
copyStdAttributes(MTGNode oldNode,
MTGNode newNode) |
MTGNode |
findAdjacentMTG(boolean out,
int edgeBits,
java.lang.String entityClass,
int entityIndex)
Find an adjacent node n to this one.
|
double |
getLength()
Gets the length attribute value of the node.
|
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
int |
getOrder()
Gets the order attribute value of the node.
|
Node.NType |
getType() |
boolean |
hasAA() |
boolean |
hasAlpha() |
boolean |
hasAzimut() |
boolean |
hasBB() |
boolean |
hasBotDia() |
boolean |
hasCategory() |
boolean |
hasCC() |
boolean |
hasDAB() |
boolean |
hasDAC() |
boolean |
hasDBC() |
boolean |
hasDirectionPrimary() |
boolean |
hasL1() |
boolean |
hasL2() |
boolean |
hasL3() |
boolean |
hasLength() |
boolean |
hasOrder() |
boolean |
hasPosition() |
boolean |
hasStdAtt(int mask) |
boolean |
hasTopDia() |
boolean |
hasXX() |
boolean |
hasYY() |
boolean |
hasZZ() |
int |
height(MTGNode endNode)
Number of successor or branch edges from this node to an end node.
|
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
int |
order(MTGNode endNode)
Number of branch edges from this node to an end node.
|
void |
setDirectoryPrimary(Vector3d dirp) |
void |
setStdAttFlagOff(int mask) |
void |
setStdAttFlagOn(int mask) |
MTGNode[] |
topoSonNodes(int edgeType)
Get the list of topological sons with specified edge type connection of this MTGNode.
|
int[] |
topoSons(int edgeType)
Get the list of topological sons with specified edge type connection of this MTGNode.
|
getFloat, getInt, getLength, getSurfaceArea, getVolumeexecute, getBoolean, getLocalRegisters, getObject, getSymbolColor, getVertexTransformation, setLocalRegistersgetDouble, postTransformgetInterior, getShader, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setShader, setShaders, setTreatedAsInfinitegetLocalTransformation, getTransform, getTranslation, isTransforming, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getGraph, getId, getIndex, getInstantiator, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
public double AA
public static final Node.NType.Field AA$FIELD
public double Alpha
public static final Node.NType.Field Alpha$FIELD
public double Azimut
public static final Node.NType.Field Azimut$FIELD
public double BB
public static final Node.NType.Field BB$FIELD
public double BotDia
public static final Node.NType.Field BotDia$FIELD
public int Category
public static final Node.NType.Field Category$FIELD
public double CC
public static final Node.NType.Field CC$FIELD
public double DAB
public static final Node.NType.Field DAB$FIELD
public double DAC
public static final Node.NType.Field DAC$FIELD
public int dataFlag
public static final Node.NType.Field dataFlag$FIELD
public double DBC
public static final Node.NType.Field DBC$FIELD
public Vector3d DirectionPrimary
public static final Node.NType.Field DirectionPrimary$FIELD
public double L1
public static final Node.NType.Field L1$FIELD
public double L2
public static final Node.NType.Field L2$FIELD
public double L3
public static final Node.NType.Field L3$FIELD
public double Length
public static final Node.NType.Field Length$FIELD
public java.lang.String mtgClass
public static final Node.NType.Field mtgClass$FIELD
public int mtgClassID
public static final Node.NType.Field mtgClassID$FIELD
public int mtgID
public static final Node.NType.Field mtgID$FIELD
public int mtgScale
public static final Node.NType.Field mtgScale$FIELD
public int Order
public static final Node.NType.Field Order$FIELD
public double Position
public static final Node.NType.Field Position$FIELD
public int stdAttFlag
public static final Node.NType.Field stdAttFlag$FIELD
public double TopDia
public static final Node.NType.Field TopDia$FIELD
public double XX
public static final Node.NType.Field XX$FIELD
public double YY
public static final Node.NType.Field YY$FIELD
public double ZZ
public static final Node.NType.Field ZZ$FIELD
public MTGNode compoFather()
public MTGNode[] compoSons()
public java.lang.Integer compoSonsCount()
public int[] compoSonsIds()
public MTGNode findAdjacentMTG(boolean out, int edgeBits, java.lang.String entityClass, int entityIndex)
Edge.testEdgeBits(int)).
If out is true and this node is the source or if in is true and this node
is the target, n is returned. Thus, if in and out is true, any adjacent
node where the connecting edge matches the edgeBits is considered.in - true if edges incoming to this node should be consideredout - true if edges outgoing from this node should be considerededgeBits - the type/types of edges to considerpublic double getLength()
protected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class Fpublic int getOrder()
public Node.NType getType()
public boolean hasAA()
public boolean hasAlpha()
public boolean hasAzimut()
public boolean hasBB()
public boolean hasBotDia()
public boolean hasCategory()
public boolean hasCC()
public boolean hasDAB()
public boolean hasDAC()
public boolean hasDBC()
public boolean hasDirectionPrimary()
public boolean hasL1()
public boolean hasL2()
public boolean hasL3()
public boolean hasLength()
public boolean hasOrder()
public boolean hasPosition()
public boolean hasStdAtt(int mask)
public boolean hasTopDia()
public boolean hasXX()
public boolean hasYY()
public boolean hasZZ()
public int height(MTGNode endNode) throws MTGError.MTGPlantFrameException
endNodeId - MTGError.MTGPlantFrameExceptionprotected Node newInstance()
NodenewInstance in class Fpublic int order(MTGNode endNode) throws MTGError.MTGPlantFrameException
endNodeId - MTGError.MTGPlantFrameExceptionpublic void setDirectoryPrimary(Vector3d dirp)
public void setStdAttFlagOff(int mask)
public void setStdAttFlagOn(int mask)
public MTGNode[] topoSonNodes(int edgeType)
public int[] topoSons(int edgeType)